29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
35 struct link_device *
dev;
68 trans->count_bytes(trans->impl, dev, trans->size_of(trans->impl, size + 2 ));
69 trans->start_message(trans->impl, dev, 0, size + 2 );
70 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_SCALAR, &ac_id, 1);
71 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_SCALAR, &msg_id, 1);
72 trans->put_bytes(trans->impl, dev, 0, DL_TYPE_UINT8, DL_FORMAT_ARRAY, (
void *) msg, size);
73 trans->end_message(trans->impl, dev, 0);
struct link_device dev
Device structure for communication.
struct short_transport trans
Transport without any extra encoding.
Periodic telemetry system header (includes downlink utility and generated code).
Telemetry through InterMCU.
struct link_device * dev
Device structure for communication.
static struct telemetry_intermcu_t telemetry_intermcu
void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t *msg, uint8_t size)
void telemetry_intermcu_init(void)
Rotorcraft Inter-MCU interface.
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)