Searched refs:TM_DS1307_Bin2Bcd (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_rtc_maxim_ds1307.c | 97 uint8_t TM_DS1307_Bin2Bcd(uint8_t bin) { in TM_DS1307_Bin2Bcd() function 166 data[DS1307_SECONDS] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->seconds, 0, 59)); in drv_rtc_maxim_ds1307_write() 167 data[DS1307_MINUTES] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->minutes, 0, 59)); in drv_rtc_maxim_ds1307_write() 168 data[DS1307_HOURS] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->hours, 0, 23)); in drv_rtc_maxim_ds1307_write() 169 data[DS1307_DAY] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->day, 1, 7)); in drv_rtc_maxim_ds1307_write() 170 data[DS1307_DATE] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->date, 1, 31)); in drv_rtc_maxim_ds1307_write() 171 data[DS1307_MONTH] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->month, 1, 12)); in drv_rtc_maxim_ds1307_write() 172 data[DS1307_YEAR] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->year, 0, 99)); in drv_rtc_maxim_ds1307_write()
|
Completed in 3 milliseconds