20260324
This commit is contained in:
27
RTX5_20220316/Driver/DS3231/DS3231.h
Normal file
27
RTX5_20220316/Driver/DS3231/DS3231.h
Normal file
@ -0,0 +1,27 @@
|
||||
#include "sys.h"
|
||||
#ifndef __DS3231_H__
|
||||
#define __DS3231_H__
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 hour;
|
||||
u8 min;
|
||||
u8 sec;
|
||||
u32 w_year;
|
||||
u8 w_month;
|
||||
u8 w_date;
|
||||
u8 week;
|
||||
}_calendar_obj;
|
||||
extern _calendar_obj calendar; //<2F><><EFBFBD><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
||||
|
||||
extern u8 const mon_table[12]; //<2F>·<EFBFBD><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD>
|
||||
u8 I2cByteRead(u8 addr);
|
||||
void I2cByteWrite(u8 addr,u8 bytedata);
|
||||
void DS3231_Init(void);
|
||||
void get_show_time(void);
|
||||
//u8 RTC_Get_Week(u16 year,u8 month,u8 day);
|
||||
void DS3231_Set(u8 syear,u8 smon,u8 sday,u8 hour,u8 min,u8 sec);//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
void DS3231_Get(void);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user