diff options
Diffstat (limited to 'Inc/devices.h')
| -rw-r--r-- | Inc/devices.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Inc/devices.h b/Inc/devices.h index 3b54580..396ae2d 100644 --- a/Inc/devices.h +++ b/Inc/devices.h @@ -29,5 +29,13 @@ typedef enum hs_status { HS_FAILED = 5 } hs_status_t; +typedef enum state { + OFFLINE = 0, /* Device not found on bus */ + CONNECTED = 1, /* Device found on bus but handshake not completed */ + REGISTERED = 2, /* Completed handshake; ready for action */ + HS_FAILED = 3, /* Handshake failed */ + NO_DATA = 4 /* ??? */ +} state_t; + /* Handshake message size definitions */ #define MDR_req_buf_len 2 |
