63 for (i = 0; i < len; i++) {
70 uint8_t byte,
const char *name __attribute__((unused)))
103 struct link_device *dev __attribute__((unused)),
uint8_t bytes __attribute__((unused)))
static void overrun(struct pprzlog_transport *trans, struct link_device *dev)
put_byte_t put_byte
put one byte
TransportDataFormat
Data format (scalar or array)
end_message_t end_message
transport trailer
check_free_space_t check_free_space
check if transmit buffer is not full
static void put_bytes(struct pprzlog_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t len, const void *bytes)
static void count_bytes(struct pprzlog_transport *trans, struct link_device *dev, uint8_t bytes)
uint8_t(* size_of_t)(void *, uint8_t)
Function pointers definition.
void(* end_message_t)(void *, struct link_device *)
static int check_available_space(struct pprzlog_transport *trans, struct link_device *dev, uint8_t bytes)
size_of_t size_of
get size of payload with transport header and trailer
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
static uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void pprzlog_transport_init(void)
void(* start_message_t)(void *, struct link_device *, uint8_t)
struct pprzlog_transport pprzlog_tp
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
Protocol for on-board data logger with timestamp.
static const struct usb_device_descriptor dev
static void end_message(struct pprzlog_transport *trans, struct link_device *dev)
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 uint8_t size_of(struct pprzlog_transport *trans, uint8_t len)
static void put_named_byte(struct pprzlog_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t byte, const char *name)
check_available_space_t check_available_space
check if transmit buffer is not full
put_bytes_t put_bytes
send bytes
void(* count_bytes_t)(void *, struct link_device *, uint8_t)
struct transport_tx trans_tx
send_message_t send_message
send completed buffer
static void put_1byte(struct pprzlog_transport *trans, struct link_device *dev, const uint8_t byte)
static void start_message(struct pprzlog_transport *trans, struct link_device *dev, uint8_t payload_len)