summaryrefslogtreecommitdiff
path: root/Inc
diff options
context:
space:
mode:
authorAditya Naik2020-04-09 00:47:16 -0400
committerAditya Naik2020-04-09 00:47:16 -0400
commit5956d085d12ffe1ffdbd41ce40fddd52a77cb555 (patch)
treec022b13734a47529b0b2760f59ca34fd7f1a7afd /Inc
parenta970436bb8e930e7edbdafa9cc4c512fcdc9bdec (diff)
Older changes
Diffstat (limited to 'Inc')
-rw-r--r--Inc/devices.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Inc/devices.h b/Inc/devices.h
index 58bc5b7..ef4e65b 100644
--- a/Inc/devices.h
+++ b/Inc/devices.h
@@ -30,11 +30,12 @@ typedef enum hs_status {
} 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 */
- FAILED = 3, /* Handshake failed */
- NO_DATA = 4 /* ??? */
+ NO_HS = 0, /* Initial state: handshake not attempted yet */
+ OFFLINE = 1, /* Device not found on bus */
+ CONNECTED = 2, /* Device found on bus but handshake not completed */
+ REGISTERED = 3, /* Completed handshake; ready for action */
+ FAILED = 4, /* Handshake failed */
+ NO_DATA = 5 /* ??? */
} state_t;
/* Handshake message size definitions */