Beschreibung

This commit is contained in:
Tristan Krause 2019-06-25 11:02:08 +02:00
parent aa5aeff9d1
commit c09e5b5b48
5 changed files with 94 additions and 6 deletions

View file

@ -21,6 +21,7 @@ constexpr static uint8_t RQ_SET_MEM_8 = 16;
constexpr static uint8_t RQ_GET_MEM_8 = 17;
constexpr static uint8_t RQ_SET_MEM_16 = 18;
constexpr static uint8_t RQ_GET_MEM_16 = 19;
constexpr static uint8_t RQ_COUNTER_OFFSET = 20;
uint8_t const rq_len[] = {
1 /* RQ_DISCARD */,
@ -43,6 +44,7 @@ uint8_t const rq_len[] = {
1 /* RQ_GET_MEM_8 */ + 1 /* memory address low */ + 1 /* memory address high */,
1 /* RQ_SET_MEM_16 */ + 1 /* memory address low */ + 1 /* memory address high */ + 1 /* memory value low */ + 1 /* memory value high */,
1 /* RQ_GET_MEM_16 */ + 1 /* memory address low */ + 1 /* memory address high */,
1 /* RQ_COUNTER_OFFSET */,
};
#endif // REQUESTS_H