27 #define PERIODIC_C_INTERMCU
31 #include "pprzlink/intermcu_msg.h"
32 #include "pprzlink/short_transport.h"
33 #include "generated/periodic_telemetry.h"
95 for (i = 0; i < len; i++) {
struct link_device dev
Device structure for communication.
Telemetry through InterMCU.
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.
Handling of messages coming from ground and other A/Cs.
void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t *msg, uint8_t size)
void telemetry_intermcu_init(void)
uint16_t datalink_nb_msgs
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 dl_parse_msg(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
Should be called when chars are available in dl_buffer.
void telemetry_intermcu_periodic(void)
void telemetry_intermcu_event(void)
#define TELEMERTY_INTERMCU_MSG_SIZE
static bool telemetry_intermcu_check_free_space(struct telemetry_intermcu_t *p, long *fd, uint16_t len)
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)