/* * nbus_structs.h * * Created on: Mar 7, 2025 * Author: juraj */ #ifndef INC_NBUS_STRUCTS_H_ #define INC_NBUS_STRUCTS_H_ #if defined(STM32F401xC) || defined(STM32F401xE) #include "stm32f4xx_hal.h" #endif #if defined (STM32L432xx) #include "stm32l4xx_hal.h" #endif #if defined (STM32L031xx) || defined (STM32L082xx) #include "stm32l0xx_hal.h" #endif typedef enum { FC_FIND = 0, FC_ECHO, FC_STOP, FC_START, FC_PARAM, FC_SENSOR_CNT, FC_SLEEP, FC_WAKEUP, FC_CALIBRATE, FC_RESET, FC_STORE, FC_DATA, FC_SYNC, FC_SENSOR_TYPE, FC_INFO, FC_SENSOR_FORMAT, }Nbus_FC_e; typedef struct { uint8_t ma; uint8_t sa; Nbus_FC_e fc; }Nbus_pdu; #endif /* INC_NBUS_STRUCTS_H_ */