27 #define PERIODIC_C_INTERMCU
30 #include "pprzlink/intermcu_msg.h"
31 #include "pprzlink/short_transport.h"
32 #include "generated/periodic_telemetry.h"
36 #ifndef TELEMERTY_INTERMCU_MSG_SIZE
37 #define TELEMERTY_INTERMCU_MSG_SIZE 128
42 struct link_device
dev;
98 for (i = 0; i < len; i++) {
struct link_device dev
Device structure for communication.
uint8_t buf_idx
Index of the buffer.
struct short_transport trans
Transport without any extra encoding.
struct link_device * device
Device used for communication.
static void telemetry_intermcu_put_byte(struct telemetry_intermcu_t *p, long fd, uint8_t data)
Periodic telemetry system header (includes downlink utility and generated code).
struct intermcu_t intermcu
Telemetry through InterMCU.
void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t *msg, uint8_t size)
void telemetry_intermcu_init(void)
static struct telemetry_intermcu_t telemetry_intermcu
Rotorcraft Inter-MCU interface.
#define DefaultPeriodic
Set default periodic telemetry.
static void telemetry_intermcu_put_buffer(struct telemetry_intermcu_t *p, long fd, uint8_t *data, uint16_t len)
uint8_t buf[TELEMERTY_INTERMCU_MSG_SIZE]
Buffer for the messages.
struct pprz_transport transport
Transport over communication line (PPRZ)
static void telemetry_intermcu_send_message(struct telemetry_intermcu_t *p, long fd)
void telemetry_intermcu_periodic(void)
static bool telemetry_intermcu_check_free_space(struct telemetry_intermcu_t *p, long *fd, uint16_t len)
#define TELEMERTY_INTERMCU_MSG_SIZE
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)