Watchdog, Power subsystem – Acrosser AIV-HM76V1FL User Manual
Page 57
AIV-HM76V1FL Series User Manual
57
5.2.2.2. Watchdog
Syntax:
u8 getWtdTimer(void)
Description:
This function read the value of the watchdog time counter
and returns it to the caller.
Parameters:
None.
Return Value:
This function returns the value of the time counter and
returns it to the caller as an unsigned character.
Syntax:
void setWtdTimer(u8 val)
Description:
This function sets the watchdog timer register to the value
‘val’ and starts to count down. The value could be 0 ~ 255.
The unit is second. Setting the timer register to 0 disables
the watchdog function and stops the countdown.
Parameters:
The parameter ‘val’ is the value to set to watchdog timer
register. The range is 0 ~ 255.
Return Value:
None.
5.2.3. Power Subsystem
Syntax:
i32 getPwrFwVer(struct PicInfo *ver)
Description:
This function gets the version information of the firmware
of the Power Subsystem.
Parameters:
The definition of struct ‘PicInfo’ is:
struct PicInfo {
u8 info[12];
}
This API returns the version information and store the
information in the memory which is pointed at by the
pointer ‘ver’.
Return Value:
None.