43 #ifndef PPRZ_DATALINK_EXPORT
64 for (i = 0; i < len; i++) {
71 uint8_t byte,
const char *name __attribute__((unused)))
put_byte_t put_byte
put one byte
uint32_t nb_bytes
The number of bytes send.
volatile bool_t msg_received
message received flag
TransportDataFormat
Data format (scalar or array)
end_message_t end_message
transport trailer
static void end_message(struct pprz_transport *trans, struct link_device *dev)
check_free_space_t check_free_space
check if transmit buffer is not full
static void put_1byte(struct pprz_transport *trans, struct link_device *dev, const uint8_t byte)
uint8_t(* size_of_t)(void *, uint8_t)
Function pointers definition.
void(* end_message_t)(void *, struct link_device *)
static void put_bytes(struct pprz_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t len, const void *bytes)
size_of_t size_of
get size of payload with transport header and trailer
Building and parsing Paparazzi frames.
void(* overrun_t)(void *, struct link_device *)
TransportDataType
Data type.
void * periph
pointer to parent implementation
count_bytes_t count_bytes
count bytes to send
uint16_t nb_msgs
The number of messages send.
void pprz_transport_init(struct pprz_transport *t)
struct transport_tx trans_tx
void(* start_message_t)(void *, struct link_device *, uint8_t)
static int check_available_space(struct pprz_transport *trans, struct link_device *dev, uint8_t bytes)
void(* put_named_byte_t)(void *, struct link_device *, enum TransportDataType, enum TransportDataFormat, uint8_t, const char *)
start_message_t start_message
transport header
put_named_byte_t put_named_byte
send a single byte or its name
static const struct usb_device_descriptor dev
uint8_t nb_ovrn
The number of overruns.
int(* check_available_space_t)(void *, struct link_device *, uint8_t)
void(* put_bytes_t)(void *, struct link_device *, enum TransportDataType, enum TransportDataFormat, uint8_t, const void *)
void * impl
pointer to parent implementation
static void put_named_byte(struct pprz_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t byte, const char *name)
static void overrun(struct pprz_transport *trans, struct link_device *dev)
struct transport_rx trans_rx
Common code for AP and FBW telemetry.
check_available_space_t check_available_space
check if transmit buffer is not full
static uint8_t size_of(struct pprz_transport *trans, uint8_t len)
put_bytes_t put_bytes
send bytes
static void count_bytes(struct pprz_transport *trans, struct link_device *dev, uint8_t bytes)
void(* count_bytes_t)(void *, struct link_device *, uint8_t)
struct pprz_transport pprz_tp
static void start_message(struct pprz_transport *trans, struct link_device *dev, uint8_t payload_len)
send_message_t send_message
send completed buffer
#define UNINIT
Receiving pprz messages.