84
K
A
DAK
AMX Timing Control
Time/Date StructureThe Time/Date Manager provides time and date in the following form. C structure
amxtds is defined in the AMX header file AMX831SD.H. Assembler structure AMXTDS is
defined in the AMX definition file AMX831SD.DEF.The C and assembler structure definitions are shown below.
/* AMX Time/Date Structure */
struct amxtds {
unsigned char amtdsec; /* seconds (0-59) */
unsigned char amtdmin; /* minutes (0-59) */
unsigned char amtdhr; /* hours (0-23) */
unsigned char amtddy; /* day (1-31) */
unsigned char amtdmn; /* month (1-12) */
unsigned char amtdyr; /* year (0-99) */
unsigned char amtdow; /* day of week (Mon=1 to Sun=7) */
unsigned char amtdcen; /* 0 if time/date is incorrect */
/* century if time/date is correct */
};
; AMX Time/Date Structure
;
AMXTDS STRUC
;
AMTDSEC DB ? ;seconds (0-59)
AMTDMIN DB ? ;minutes (0-59)
AMTDHR DB ? ;hours (0-23)
AMTDDY DB ? ;day (1-31)
AMTDMN DB ? ;month (1-12)
AMTDYR DB ? ;year (0-99)
AMTDOW DB ? ;day of week (Mon=1 to Sun=7)
AMTDCEN DB ? ;0 if time/date is incorrect
; ;century if time/date is correct
;
AMXTDS ENDS
;