Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Building and Paparazzi frames with timestamp for data logger. More...
Go to the source code of this file.
Macros | |
#define | STX_LOG 0x99 |
Functions | |
static void | put_1byte (struct pprzlog_transport *trans, struct link_device *dev, const uint8_t byte) |
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 | put_named_byte (struct pprzlog_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t byte, const char *name) |
static uint8_t | size_of (struct pprzlog_transport *trans, uint8_t len) |
static void | start_message (struct pprzlog_transport *trans, struct link_device *dev, uint8_t payload_len) |
static void | end_message (struct pprzlog_transport *trans, struct link_device *dev) |
static void | overrun (struct pprzlog_transport *trans, struct link_device *dev) |
static void | count_bytes (struct pprzlog_transport *trans, struct link_device *dev, uint8_t bytes) |
static int | check_available_space (struct pprzlog_transport *trans, struct link_device *dev, uint8_t bytes) |
void | pprzlog_transport_init (void) |
Variables | |
struct pprzlog_transport | pprzlog_tp |
Building and Paparazzi frames with timestamp for data logger.
LOG-message: ABCDEFGHxxxxxxxI A PPRZ_STX (0x99) B LENGTH (H->H) C SOURCE (0=uart0, 1=uart1, 2=i2c0, ...) D TIMESTAMP_LSB (100 microsec raster) E TIMESTAMP F TIMESTAMP G TIMESTAMP_MSB H PPRZ_DATA 0 SENDER_ID 1 MSG_ID 2 MSG_PAYLOAD . DATA (messages.xml) I CHECKSUM (sum[B->H])
Definition in file pprzlog_transport.c.
#define STX_LOG 0x99 |
Definition at line 49 of file pprzlog_transport.c.
Referenced by start_message().
|
static |
Definition at line 107 of file pprzlog_transport.c.
References link_device::check_free_space, and link_device::periph.
Referenced by pprzlog_transport_init().
|
static |
Definition at line 102 of file pprzlog_transport.c.
Referenced by pprzlog_transport_init().
|
static |
Definition at line 91 of file pprzlog_transport.c.
References pprzlog_transport::ck, link_device::periph, link_device::put_byte, and link_device::send_message.
Referenced by pprzlog_transport_init().
|
static |
Definition at line 97 of file pprzlog_transport.c.
Referenced by pprzlog_transport_init().
void pprzlog_transport_init | ( | void | ) |
Definition at line 113 of file pprzlog_transport.c.
References transport_tx::check_available_space, check_available_space(), transport_tx::count_bytes, count_bytes(), end_message(), transport_tx::end_message, transport_tx::impl, transport_tx::overrun, overrun(), pprzlog_tp, put_bytes(), transport_tx::put_bytes, put_named_byte(), transport_tx::put_named_byte, size_of(), transport_tx::size_of, start_message(), transport_tx::start_message, and pprzlog_transport::trans_tx.
Referenced by downlink_init(), and sdlogger_spi_direct_init().
|
static |
Definition at line 51 of file pprzlog_transport.c.
References pprzlog_transport::ck, link_device::periph, and link_device::put_byte.
Referenced by put_bytes(), put_named_byte(), and start_message().
|
static |
Definition at line 57 of file pprzlog_transport.c.
References put_1byte().
Referenced by pprzlog_transport_init(), and start_message().
|
static |
Definition at line 68 of file pprzlog_transport.c.
References put_1byte().
Referenced by pprzlog_transport_init().
|
static |
Definition at line 75 of file pprzlog_transport.c.
Referenced by pprzlog_transport_init(), and start_message().
|
static |
Definition at line 80 of file pprzlog_transport.c.
References pprzlog_transport::ck, DL_FORMAT_SCALAR, DL_TYPE_TIMESTAMP, get_sys_time_usec(), link_device::periph, put_1byte(), link_device::put_byte, put_bytes(), size_of(), and STX_LOG.
Referenced by pprzlog_transport_init().
struct pprzlog_transport pprzlog_tp |
Definition at line 47 of file pprzlog_transport.c.
Referenced by flight_recorder_periodic(), mf_daq_send_report(), parse_mf_daq_msg(), pprzlog_transport_init(), and sdlogger_spi_direct_periodic().