29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
40 struct link_device *
dev;
76 case DL_EMERGENCY_CMD:
102 trans->count_bytes(trans->impl, dev, trans->size_of(trans->impl, size + 2 ));
103 trans->start_message(trans->impl, dev, 0, size + 2 );
104 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_SCALAR, &ac_id, 1);
105 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_SCALAR, &msg_id, 1);
106 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_ARRAY, (
void *) msg, size);
107 trans->end_message(trans->impl, dev, 0);
void telemetry_intermcu_event(void)
struct link_device dev
Device structure for communication.
bool msg_received
Whenever a datalink message is received.
struct short_transport trans
Transport without any extra encoding.
struct link_device * device
Device used for communication.
Periodic telemetry system header (includes downlink utility and generated code).
struct intermcu_t intermcu
Telemetry through InterMCU.
struct link_device * dev
Device structure for communication.
static struct telemetry_intermcu_t telemetry_intermcu
fbw_mode_enum fbw_mode
Fly by wire modes.
void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t *msg, uint8_t size)
uint8_t rx_buffer[MSG_SIZE]
Received bytes from datalink.
void telemetry_intermcu_init(void)
Rotorcraft Inter-MCU interface.
struct pprz_transport transport
Transport over communication line (PPRZ)
static void telemetry_intermcu_repack(struct transport_tx *trans, struct link_device *dev, uint8_t ac_id, uint8_t msg_id, uint8_t *msg, uint8_t size)
static const struct usb_device_descriptor dev
void telemetry_intermcu_periodic(void)
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)