|
20-101-1051 Datasheet, PDF (157/165 Pages) List of Unclassifed Manufacturers – C-Programmable Core Module with NAND Flash Mass Storage and Ethernet | |||
|
◁ |
int rn_rst_status(int handle, char *retdata);
Reads the status of which reset occurred and whether any watchdogs are enabled.
PARAMETERS
handle is an address index to device information. Use rn_device() or rn_find() to establish the
handle.
retdata is a 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.
int rn_comm_status(int handle, char *retdata);
PARAMETERS
handle is an address index to device information. Use rn_device() or rn_find() to establish the
handle.
retdata is a pointer to the return address of the communication byte. A set bit indicates which error
occurred. This register is cleared when read.
7âData available and waiting to be processed MOSI (master out, slave in)
6âWrite collision MISO (master in, slave out)
5âOverrun MOSI (master out, slave in)
4âMode fault, device detected hardware fault
3âData compare error detected by device
2,1,0âReserved
RETURN VALUE
The status byte from the previous command.
Userâs Manual
151
|
▷ |