BL4S200 User’s Manual
202
rn_comm_status
int rn_comm_status(int handle, char *retdata);
FUNCTION DESCRIPTION
If the communication error bit is set in the status byte, use this function call to determine
the error.
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—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.