ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
Data Structures | Macros | Functions
su_base.h File Reference

Sysutils Basic Functions header files. More...

#include <stdint.h>
Include dependency graph for su_base.h:

Go to the source code of this file.

Data Structures

struct  SUModelNum
 Device Model. More...
 
struct  SUVersion
 Device software version. More...
 
union  SUDevID
 Device ID. More...
 
struct  SUTime
 System time structure. More...
 

Macros

#define DEVICE_ID_MAGIC   "53ef"
 Magic device ID.
 
#define DEVICE_ID_MAGIC_LEN   4
 Length of magic device ID.
 
#define DEVICE_ID_LEN   32
 Length of device ID.
 
#define MAX_INFO_LEN   64
 Maxnum length of Device model,Device ID and Firmware version.
 

Functions

int SU_Base_GetModelNumber (SUModelNum *modelNum)
 Get device model. More...
 
int SU_Base_GetVersion (SUVersion *version)
 Get device version. More...
 
int SU_Base_GetDevID (SUDevID *devID)
 Get device ID. More...
 
int SU_Base_GetTime (SUTime *time)
 Get system time. More...
 
int SU_Base_SetTime (SUTime *time)
 Set system time. More...
 
int SU_Base_SUTime2Raw (SUTime *suTime, uint32_t *rawTime)
 Converts the time of the SUTime type to Raw time in seconds. More...
 
int SU_Base_Raw2SUTime (uint32_t *rawTime, SUTime *suTime)
 Converts the time of the Raw time in seconds to SUTime type. More...
 
int SU_Base_SetAlarm (SUTime *time)
 Set Alarm time. More...
 
int SU_Base_GetAlarm (SUTime *time)
 Get the current Alarm time. More...
 
int SU_Base_EnableAlarm (void)
 Enable Alarm. More...
 
int SU_Base_DisableAlarm (void)
 Disable Alarm. More...
 
int SU_Base_PollingAlarm (uint32_t timeoutMsec)
 Wait Alarm. More...
 
int SU_Base_Shutdown (void)
 Shutdown device. More...
 
int SU_Base_Reboot (void)
 Reboot device. More...
 
int SU_Base_Suspend ()
 Suspend device. More...
 

Detailed Description

Sysutils Basic Functions header files.