11 #define DS1302SECONDS 0x81 12 #define DS1302MINUTES 0x83 13 #define DS1302HOURS 0x85 14 #define DS1302DAY 0x87 15 #define DS1302MONTH 0x89 16 #define DS1302WEEKDAY 0x8B 17 #define DS1302YEAR 0x8D 19 #define DS1302BURSTRD 0xBF 20 #define DS1302BURSTMM 0xFF 30 void DS1302_open(
short mosi,
short cs,
short sclk,
short miso);
char * DS1302_getAMPM(void)
get am/pm string
Definition: ds1302.c:85
short DS1302_getSeconds(void)
get seconds
Definition: ds1302.c:37
short DS1302_getMonth(void)
get month
Definition: ds1302.c:100
void DS1302_setHour(short hour)
set hours
Definition: ds1302.c:180
short DS1302_getWeekDay(void)
get day of the week
Definition: ds1302.c:110
void DS1302_setMonth(short month)
set month
Definition: ds1302.c:145
short DS1302_getDay(void)
get day
Definition: ds1302.c:90
void DS1302_setWeekDay(short weekday)
set day of the week
Definition: ds1302.c:165
void DS1302_open(short mosi, short cs, short sclk, short miso)
open connection to clock chip
Definition: ds1302.c:26
void DS1302_setMessage(char *msg)
save message in ram
Definition: ds1302.c:289
void DS1302_setYear(short year)
set year
Definition: ds1302.c:135
void DS1302_setTime(short hours, short minutes, short seconds)
set time
Definition: ds1302.c:173
void DS1302_setDateTime(void)
set propeller date/time This sets the tick value for unix date time functions used in the propeller l...
Definition: ds1302.c:244
char * DS1302_getMessage(void)
get message from ram
Definition: ds1302.c:302
void DS1302_setDate(short year, short month, short day)
set Date
Definition: ds1302.c:128
void DS1302_setMinute(short minutes)
set minutes
Definition: ds1302.c:203
short DS1302_getWriteProtect(void)
get write protect state
Definition: ds1302.c:223
short DS1302_getYear(void)
Get year value.
Definition: ds1302.c:118
void DS1302_setWriteProtect(void)
set write protect state prevents any register from being written to
Definition: ds1302.c:234
short DS1302_getHours(void)
get hours
Definition: ds1302.c:59
void DS1302_set12Hour(short hour, char AmPm)
set 12 hour format
Definition: ds1302.c:190
short DS1302_getMinutes(void)
get minutes
Definition: ds1302.c:48
void DS1302_setDay(short day)
set day
Definition: ds1302.c:155
void DS1302_setSecond(short seconds)
set seconds
Definition: ds1302.c:213
void DS1302_clearWriteProtect(void)
clear write protect state must be called before changing any date/time value or message
Definition: ds1302.c:239