User`s manual

160 eDisplay (OP7200)
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.
D.3.1 Status Byte
Unless otherwise specified, functions returning a status byte will have the following format
for each designated bit.
int rn_comm_status(int handle, char *retdata);
7 6 5 4 3 2 1 0
× ×
00 = Reserved
01 = Ready
02 = Busy
03 = Device not connected
×
0 = Device
1 = Hub
× Reserved for devices
× Reserved for devices
× Reserved for devices
×
0 = Last command accepted
1 = Last command unexecuted
×
0 = Not expired
1 = HW or SW watchdog timer
expired
*
* Use the function rn_rst_status() to determine which timer expired.