38 #define DEVICE_ID_MAGIC "53ef"
43 #define DEVICE_ID_MAGIC_LEN 4
48 #define DEVICE_ID_LEN 32
53 #define MAX_INFO_LEN 64
#define MAX_INFO_LEN
Maxnum length of Device model,Device ID and Firmware version.
Definition: su_base.h:53
System time structure.
Definition: su_base.h:80
int SU_Base_DisableAlarm(void)
Disable Alarm.
Device Model.
Definition: su_base.h:58
int SU_Base_Suspend()
Suspend device.
Device software version.
Definition: su_base.h:65
int SU_Base_PollingAlarm(uint32_t timeoutMsec)
Wait Alarm.
int SU_Base_SetTime(SUTime *time)
Set system time.
Device ID.
Definition: su_base.h:72
int mday
Day,Range:1~31.
Definition: su_base.h:84
int SU_Base_EnableAlarm(void)
Enable Alarm.
int hour
Hour,Range:0~23.
Definition: su_base.h:83
int SU_Base_Shutdown(void)
Shutdown device.
int SU_Base_SetAlarm(SUTime *time)
Set Alarm time.
int SU_Base_GetAlarm(SUTime *time)
Get the current Alarm time.
int min
Minute,Range:0~59.
Definition: su_base.h:82
int SU_Base_SUTime2Raw(SUTime *suTime, uint32_t *rawTime)
Converts the time of the SUTime type to Raw time in seconds.
int SU_Base_Raw2SUTime(uint32_t *rawTime, SUTime *suTime)
Converts the time of the Raw time in seconds to SUTime type.
int year
Year,Range:>1900.
Definition: su_base.h:86
int SU_Base_GetVersion(SUVersion *version)
Get device version.
int sec
Second,Range:0~59.
Definition: su_base.h:81
int SU_Base_GetModelNumber(SUModelNum *modelNum)
Get device model.
int SU_Base_Reboot(void)
Reboot device.
int mon
Month,Range:1~12.
Definition: su_base.h:85
int SU_Base_GetTime(SUTime *time)
Get system time.
int SU_Base_GetDevID(SUDevID *devID)
Get device ID.