This commit is contained in:
2024-05-27 10:53:44 +03:00
parent 2147bf0788
commit e8e2cd60c2
6 changed files with 60 additions and 42 deletions

View File

@ -44,9 +44,9 @@ msg type:
#define IR_MSG_BACK 0U // | 000...... | = Задний сигнал машинки
#define IR_MSG_ACCEPT 1U // | 001..... | = подтверждение
#define IR_MSG_REQUEST 2U // | 010..... | = запрос
#define IR_MSG_ 3U // | 011..... | = ??
// #define IR_MSG_ 3U // | 011..... | = ??
#define IR_MSG_BACK_TO 4U // | 100..... | = Задний сигнал машинки c адресацией
#define IR_MSG_ 5U // | 101..... | = ??
// #define IR_MSG_ 5U // | 101..... | = ??
#define IR_MSG_DATA_NOACCEPT 6U // | 110..... | = данные, не требующие подтверждения
#define IR_MSG_DATA_ACCEPT 7U // | 111..... | = данные требующие подтверждения
; /*   // ----------
@ -187,7 +187,7 @@ public:
protected:
uint16_t id;
uint8_t pin;
GPIO_TypeDef *port;
// GPIO_TypeDef *port;
uint16_t mask;
ErrorsStruct errors;
uint8_t crc8(uint8_t *data, uint8_t start, uint8_t end, uint8_t poly);