firmware  v0.1.2
Chromation Spectrometer Dev-Kit
StatusCodes.h
Go to the documentation of this file.
1 
9 #ifndef _STATUSCODES_H
10 #define _STATUSCODES_H
11 #include "StatusCode.h"
12 
13 status_code OK = 0x00;
14 status_code ERROR = 0x01;
15 status_code INVALID_CMD = 0x02;
16 
17 led_state OFF = 0x00;
18 led_state GREEN = 0x01;
19 led_state RED = 0x02;
20 
21 uint8_t PADDING = 0xFF;
22 
23 #endif // _STATUSCODES_H
See cfg/microspec.json in the Python API repository.
uint8_t const led_state
Indicator LEDs have three possible states: OFF, GREEN, and RED.
Definition: StatusCode.h:48
uint8_t const status_code
Status codes are type status_code.
Definition: StatusCode.h:41
uint8_t PADDING
When status_code is ERROR, pad responses to send expected number of bytes.
Definition: StatusCodes.h:21