4 constexpr
static uint8_t RQ_DISCARD = 0;
5 constexpr
static uint8_t RQ_TEST = 1;
6 constexpr
static uint8_t RQ_INFO = 2;
7 constexpr
static uint8_t RQ_INT_TEST = 3;
8 constexpr
static uint8_t RQ_SELF_TEST = 4;
9 constexpr
static uint8_t RQ_DIGITAL_WRITE_0 = 5;
10 constexpr
static uint8_t RQ_DIGITAL_WRITE_1 = 6;
11 constexpr
static uint8_t RQ_DIGITAL_READ_0 = 7;
12 constexpr
static uint8_t RQ_DIGITAL_READ_1 = 8;
13 constexpr
static uint8_t RQ_READ_DIP_SWITCH = 9;
14 constexpr
static uint8_t RQ_ANALOG_WRITE_0 = 10;
15 constexpr
static uint8_t RQ_ANALOG_WRITE_1 = 11;
16 constexpr
static uint8_t RQ_ANALOG_READ = 12;
17 constexpr
static uint8_t RQ_ADC_DAC_STROKE = 13;
18 constexpr
static uint8_t RQ_PWM_SET_FREQ = 14;
19 constexpr
static uint8_t RQ_PWM_SET_VALUE = 15;
20 constexpr
static uint8_t RQ_SET_MEM_8 = 16;
21 constexpr
static uint8_t RQ_GET_MEM_8 = 17;
22 constexpr
static uint8_t RQ_SET_MEM_16 = 18;
23 constexpr
static uint8_t RQ_GET_MEM_16 = 19;
24 constexpr
static uint8_t RQ_COUNTER_OFFSET = 20;
25 constexpr
static uint8_t RQ_SERVO_ENABLE = 21;
26 constexpr
static uint8_t RQ_SERVO_DISABLE = 22;
27 constexpr
static uint8_t RQ_SERVO_SET_POS = 23;
29 uint8_t
const rq_len[] =
44 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 ,