BL4S200 User’s Manual
201
rn_rst_status
int rn_rst_status(int handle, char *retdata);
FUNCTION DESCRIPTION
Reads the status of which reset occurred and whether any watchdogs are enabled.
PARAMETERS
handle
address index to device information. Use
rn_device()
or
rn_find()
to establish the handle.
retdata
pointer to the return address of the communication byte. A set bit
indicates which error occurred. This register is cleared when read.
7—HW reset has occurred
6—SW reset has occurred
5—HW watchdog enabled
4—SW watchdog enabled
3,2,1,0—Reserved
RETURN VALUE
The status byte from the previous command.