|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
37 #include "pprzlink/dl_protocol.h"
65 EXTERN bool datalink_enabled;
70 #define DatalinkFillDlBuffer(_buf, _len) { \
72 for (_i = 0; _i < _len; _i++) { \
73 dl_buffer[_i] = _buf[_i]; \
75 dl_msg_available = true; \
79 static inline void DlCheckAndParse(
struct link_device *
dev,
struct transport_tx *trans,
uint8_t *buf,
bool *msg_available,
bool update_dl)
83 if (!datalink_enabled) {
94 *msg_available =
false;
EXTERN bool dl_msg_available
Flag provided to control calls to dl_parse_msg.
EXTERN void firmware_parse_msg(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
Firmware specfic msg handler.
EXTERN 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.
EXTERN uint16_t datalink_nb_msgs
number of datalink/uplink messages received
EXTERN uint16_t datalink_time
time in seconds since last datalink message was received
static const struct usb_device_descriptor dev
EXTERN uint8_t dl_buffer[MSG_SIZE]
static void DlCheckAndParse(struct link_device *dev, struct transport_tx *trans, uint8_t *buf, bool *msg_available, bool update_dl)
Check for new message and parse.