| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * @file nbus_structs.h
- *
- * @date: Mar 7, 2025
- * @author: Juraj Dudak
- */
- #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_ */
|