diff options
Diffstat (limited to 'Inc/devices.h')
| -rw-r--r-- | Inc/devices.h | 11 |
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 */ |
