Module RTC_DS1307
[hide private]
[frames] | no frames]

Module RTC_DS1307

source code

Classes [hide private]
  RTC
Functions [hide private]
 
bcdToInt(bcd)
Converts byte interpreted as two digit bcd to integer (e.g.
source code
 
intToBcd(n)
Converts integer 0..99 to byte interpreted in two digit bcd format.
source code
Function Details [hide private]

bcdToInt(bcd)

source code 

Converts byte interpreted as two digit bcd to integer (e.g. 88 = b01011000->bcd0101'1000 = 58)

intToBcd(n)

source code 

Converts integer 0..99 to byte interpreted in two digit bcd format. (e.g. 58 = bcd0101'1000->b01011000 = 88)