summaryrefslogtreecommitdiff
path: root/Inc/devices.h
diff options
context:
space:
mode:
authorAditya Naik2020-04-07 00:22:19 -0400
committerAditya Naik2020-04-07 00:22:19 -0400
commit88e041cb910f5d238cd5775921a339f529cbc3b1 (patch)
tree35a205422bc7aa573ff25bc452aed1d75053a6bc /Inc/devices.h
parent3a725dcadf2de4eb3de0634fd82ce27daafa20d7 (diff)
Working on MDR decoding in main-hs
Diffstat (limited to 'Inc/devices.h')
-rw-r--r--Inc/devices.h8
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