49 #define SBUS_FRAME_SIZE 25 50 #define SBUS_BUFFER_SIZE (SBUS_FRAME_SIZE + SBUS_FRAME_SIZE / 2) 75 __EXPORT bool sbus_input(
int sbus_fd, uint16_t *values, uint16_t *num_values,
bool *sbus_failsafe,
76 bool *sbus_frame_drop,
77 uint16_t max_channels);
79 uint16_t *num_values,
bool *sbus_failsafe,
bool *sbus_frame_drop,
unsigned *frame_drops, uint16_t max_channels);
__EXPORT unsigned sbus_dropped_frames(void)
The number of incomplete frames we encountered.
Namespace encapsulating all device framework classes, functions and data.
__EXPORT bool sbus_parse(uint64_t now, uint8_t *frame, unsigned len, uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sbus_frame_drop, unsigned *frame_drops, uint16_t max_channels)
__EXPORT bool sbus_input(int sbus_fd, uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sbus_frame_drop, uint16_t max_channels)
__EXPORT int sbus_init(const char *device, bool singlewire)
__EXPORT void sbus1_set_output_rate_hz(uint16_t rate_hz)
__EXPORT int sbus_config(int sbus_fd, bool singlewire)
Parse serial bytes on the S.BUS bus.
uint8_t sbus_frame_t[SBUS_FRAME_SIZE+(SBUS_FRAME_SIZE/2)]
__EXPORT void sbus2_output(int sbus_fd, uint16_t *values, uint16_t num_values)
__EXPORT void sbus1_output(int sbus_fd, uint16_t *values, uint16_t num_values)