31 #ifndef PIOS_SBUS_PRIV_H
32 #define PIOS_SBUS_PRIV_H
61 #define SBUS_FRAME_LENGTH (1+22+1+1)
62 #define SBUS_SOF_BYTE 0x0f
63 #define SBUS_EOF_BYTE 0x00
64 #define SBUS_FLAG_DC1 0x01
65 #define SBUS_FLAG_DC2 0x02
66 #define SBUS_FLAG_FL 0x04
67 #define SBUS_FLAG_FS 0x08
69 #define SBUS_R7008SB_EOF_COUNTER_MASK 0xCF
70 #define SBUS_R7008SB_EOF_BYTE 0x04
73 #define SBUS_VALUE_MIN 352
74 #define SBUS_VALUE_MAX 1696
92 #ifdef PIOS_INCLUDE_SBUS
93 #if (PIOS_SBUS_NUM_INPUTS != (16+2))
94 #error "S.Bus protocol provides 16 proportional and 2 discrete channels"
Types that are specific to the STM32 peripherals.
Main PiOS header to include all the compiled in PiOS options.
void(* gpio_clk_func)(uint32_t periph, FunctionalState state)
int32_t PIOS_SBus_Init(uintptr_t *sbus_id, const struct pios_com_driver *driver, uintptr_t lower_id)
const struct pios_rcvr_driver pios_sbus_rcvr_driver
USART private definitions.
BitAction gpio_inv_disable
BitAction gpio_inv_enable