#include <stdint.h>
#include "config.h"
Go to the source code of this file.
|
void | CAMERA_IO_Init (void) |
|
void | CAMERA_IO_Write (uint8_t addr, uint8_t reg, uint8_t value) |
|
uint8_t | CAMERA_IO_Read (uint8_t addr, uint8_t reg) |
|
void | CAMERA_Delay (uint32_t delay) |
|
void | CAMERA_IO_WriteBulk (uint8_t addr, uint8_t reg, uint8_t *values, uint16_t nvalues) |
|
void | Sleep (uint32_t) |
|
unsigned char | bcd_to_decimal (unsigned char d) |
|
unsigned char | decimal_to_bcd (unsigned char d) |
|
unsigned char | DS3231_Read (unsigned char address) |
|
void | DS3231_Write (unsigned char address, unsigned char value) |
|
void | DS3231_init () |
|
void | getTime (uint32_t *rtctime, unsigned char *second, short *AMPM, short hour_format) |
|
void | getDate (uint32_t *date) |
|
void | setTime (uint32_t timeSet, unsigned char sSet, short am_pm_state, short hour_format) |
|
void | setDate (uint32_t dateSet) |
|
float | getTemp () |
|
#define _12_hour_format 1 |
#define _24_hour_format 0 |
#define ageoffsetREG 0x10 |
#define alarm1dateREG 0x0A |
#define alarm1minREG 0x08 |
#define alarm1secREG 0x07 |
#define alarm2dateREG 0x0D |
#define alarm2minREG 0x0B |
#define DS3231_Address 0x68 |
unsigned char bcd_to_decimal |
( |
unsigned char |
d | ) |
|
void CAMERA_Delay |
( |
uint32_t |
delay | ) |
|
uint8_t CAMERA_IO_Read |
( |
uint8_t |
addr, |
|
|
uint8_t |
reg |
|
) |
| |
void CAMERA_IO_Write |
( |
uint8_t |
addr, |
|
|
uint8_t |
reg, |
|
|
uint8_t |
value |
|
) |
| |
void CAMERA_IO_WriteBulk |
( |
uint8_t |
addr, |
|
|
uint8_t |
reg, |
|
|
uint8_t * |
values, |
|
|
uint16_t |
nvalues |
|
) |
| |
unsigned char decimal_to_bcd |
( |
unsigned char |
d | ) |
|
unsigned char DS3231_Read |
( |
unsigned char |
address | ) |
|
void DS3231_Write |
( |
unsigned char |
address, |
|
|
unsigned char |
value |
|
) |
| |
void getDate |
( |
uint32_t * |
date | ) |
|
void getTime |
( |
uint32_t * |
rtctime, |
|
|
unsigned char * |
second, |
|
|
short * |
AMPM, |
|
|
short |
hour_format |
|
) |
| |
void setDate |
( |
uint32_t |
dateSet | ) |
|
void setTime |
( |
uint32_t |
timeSet, |
|
|
unsigned char |
sSet, |
|
|
short |
am_pm_state, |
|
|
short |
hour_format |
|
) |
| |