System Basic Functions.
More...
System Basic Functions.
int SU_Base_DisableAlarm |
( |
void |
| ) |
|
Disable Alarm.
- Parameters
-
- Return values
-
- Attention
- None.
int SU_Base_EnableAlarm |
( |
void |
| ) |
|
Enable Alarm.
- Parameters
-
- Return values
-
- Attention
- If alarm time before the current system time ,this function will return failure.
int SU_Base_GetAlarm |
( |
SUTime * |
time | ) |
|
Get the current Alarm time.
- Parameters
-
- Return values
-
- Attention
- None.
int SU_Base_GetDevID |
( |
SUDevID * |
devID | ) |
|
Get device ID.
- Parameters
-
[out] | devID | Device ID structure pointer. |
- Return values
-
- Attention
- None.
int SU_Base_GetModelNumber |
( |
SUModelNum * |
modelNum | ) |
|
Get device model.
- Parameters
-
[out] | modelNum | Device model structure pointer. |
- Return values
-
- Attention
- None.
int SU_Base_GetTime |
( |
SUTime * |
time | ) |
|
Get system time.
- Parameters
-
[in] | time | System time structure pointer. |
- Return values
-
- Attention
- None.
int SU_Base_GetVersion |
( |
SUVersion * |
version | ) |
|
Get device version.
- Parameters
-
[out] | version | Device version structure pointer. |
- Return values
-
- Attention
- None.
int SU_Base_PollingAlarm |
( |
uint32_t |
timeoutMsec | ) |
|
Wait Alarm.
- Parameters
-
- Return values
-
- Attention
- None.
int SU_Base_Raw2SUTime |
( |
uint32_t * |
rawTime, |
|
|
SUTime * |
suTime |
|
) |
| |
Converts the time of the Raw time in seconds to SUTime type.
- Parameters
-
[in] | rawTime | Raw time(Count from time 1970-01-01 00:00:00). |
[out] | suTime | System time structure pointer. |
- Return values
-
- Attention
- None.
int SU_Base_Reboot |
( |
void |
| ) |
|
Reboot device.
- Parameters
-
- Return values
-
- Attention
- Before calling this function make sure that all files have been saved.
int SU_Base_SetAlarm |
( |
SUTime * |
time | ) |
|
Set Alarm time.
- Parameters
-
[in] | time | System time structure pointer. |
- Return values
-
- Attention
- System time structure parameters should be in a reasonable time Range, otherwise the function call Failure.
int SU_Base_SetTime |
( |
SUTime * |
time | ) |
|
Set system time.
- Parameters
-
[out] | time | System time structure pointer. |
- Return values
-
- Attention
- System time parameters should be in a reasonable range, otherwise the function will call failure.
int SU_Base_Shutdown |
( |
void |
| ) |
|
Shutdown device.
- Parameters
-
- Return values
-
- Attention
- Before calling this function make sure that all files have been saved.
int SU_Base_Suspend |
( |
void |
| ) |
|
Suspend device.
- Parameters
-
- Return values
-
- Attention
- None.
int SU_Base_SUTime2Raw |
( |
SUTime * |
suTime, |
|
|
uint32_t * |
rawTime |
|
) |
| |
Converts the time of the SUTime type to Raw time in seconds.
- Parameters
-
[in] | suTime | System time structure pointer. |
[out] | rawTime | Raw time(Count from the date 1970-01-01 00:00:00). |
- Return values
-
- Attention
- None.