28 #include "intermcu_msg.h"
33 #if RADIO_CONTROL_NB_CHANNEL > 8
34 #undef RADIO_CONTROL_NB_CHANNEL
35 #define RADIO_CONTROL_NB_CHANNEL 8
36 #warning "INTERMCU UART WILL ONLY SEND 8 RADIO CHANNELS"
80 case DL_IMCU_COMMANDS: {
84 for (i = 0; i < size; i++) {
90 commands_frame_handler();
static struct link_device * intermcu_device
void intermcu_send_status(uint8_t mode)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile bool_t msg_received
message received flag
#define INTERMCU_LOST_CNT
void InterMcuEvent(void(*frame_handler)(void))
Generic reception transport header.
pprz_t intermcu_commands[COMMANDS_NB]
uint8_t payload[TRANSPORT_PAYLOAD_LEN]
payload buffer
static void parse_pprz(struct pprz_transport *t, uint8_t c)
enum intermcu_status status
Building and parsing Paparazzi frames.
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
void * periph
pointer to parent implementation
Rotorcraft Inter-MCU on FlyByWire.
void pprz_transport_init(struct pprz_transport *t)
struct transport_tx trans_tx
struct intermcu_t inter_mcu
get_byte_t get_byte
get a new char
struct RadioControl radio_control
static struct pprz_transport intermcu_transport
void intermcu_on_rc_frame(void)
#define RADIO_CONTROL_NB_CHANNEL
static void intermcu_parse_msg(struct transport_rx *trans, void(*commands_frame_handler)(void))
uint8_t time_since_last_frame
struct transport_rx trans_rx
char_available_t char_available
check if a new character is available
void intermcu_periodic(void)