Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Telemetry through InterMCU. More...
#include "telemetry_intermcu.h"
#include "subsystems/intermcu.h"
#include "pprzlink/intermcu_msg.h"
#include "pprzlink/short_transport.h"
#include "generated/periodic_telemetry.h"
#include "subsystems/datalink/telemetry.h"
Go to the source code of this file.
Data Structures | |
struct | telemetry_intermcu_t |
Macros | |
#define | PERIODIC_C_INTERMCU |
#define | TELEMERTY_INTERMCU_MSG_SIZE 128 |
Functions | |
static bool | telemetry_intermcu_check_free_space (struct telemetry_intermcu_t *p, long *fd, uint16_t len) |
static void | telemetry_intermcu_put_byte (struct telemetry_intermcu_t *p, long fd, uint8_t data) |
static void | telemetry_intermcu_put_buffer (struct telemetry_intermcu_t *p, long fd, uint8_t *data, uint16_t len) |
static void | telemetry_intermcu_send_message (struct telemetry_intermcu_t *p, long fd) |
void | telemetry_intermcu_init (void) |
void | telemetry_intermcu_periodic (void) |
void | telemetry_intermcu_on_msg (uint8_t msg_id, uint8_t *msg, uint8_t size) |
Variables | |
static struct telemetry_intermcu_t | telemetry_intermcu |
Telemetry through InterMCU.
Definition in file telemetry_intermcu_ap.c.
struct telemetry_intermcu_t |
Definition at line 41 of file telemetry_intermcu_ap.c.
Data Fields | ||
---|---|---|
uint8_t | buf[TELEMERTY_INTERMCU_MSG_SIZE] | Buffer for the messages. |
uint8_t | buf_idx | Index of the buffer. |
struct link_device * | dev | Device structure for communication. |
struct link_device | dev | Device structure for communication. |
struct pprz_transport | trans | Transport without any extra encoding. |
struct short_transport | trans | Transport without any extra encoding. |
#define PERIODIC_C_INTERMCU |
Definition at line 27 of file telemetry_intermcu_ap.c.
#define TELEMERTY_INTERMCU_MSG_SIZE 128 |
Definition at line 37 of file telemetry_intermcu_ap.c.
Referenced by telemetry_intermcu_check_free_space(), and telemetry_intermcu_put_byte().
|
static |
Definition at line 82 of file telemetry_intermcu_ap.c.
References telemetry_intermcu_t::buf_idx, and TELEMERTY_INTERMCU_MSG_SIZE.
Referenced by telemetry_intermcu_init().
void telemetry_intermcu_init | ( | void | ) |
Definition at line 58 of file telemetry_intermcu_ap.c.
References telemetry_intermcu_t::dev, telemetry_intermcu, telemetry_intermcu_check_free_space(), telemetry_intermcu_put_buffer(), telemetry_intermcu_put_byte(), telemetry_intermcu_send_message(), and telemetry_intermcu_t::trans.
Definition at line 77 of file telemetry_intermcu_ap.c.
void telemetry_intermcu_periodic | ( | void | ) |
Definition at line 72 of file telemetry_intermcu_ap.c.
References DefaultPeriodic, telemetry_intermcu_t::dev, telemetry_intermcu, and telemetry_intermcu_t::trans.
|
static |
Definition at line 95 of file telemetry_intermcu_ap.c.
References telemetry_intermcu_t::buf, and telemetry_intermcu_t::buf_idx.
Referenced by telemetry_intermcu_init().
|
static |
Definition at line 87 of file telemetry_intermcu_ap.c.
References telemetry_intermcu_t::buf, telemetry_intermcu_t::buf_idx, and TELEMERTY_INTERMCU_MSG_SIZE.
Referenced by telemetry_intermcu_init().
|
static |
Definition at line 103 of file telemetry_intermcu_ap.c.
References telemetry_intermcu_t::buf, telemetry_intermcu_t::buf_idx, intermcu_t::device, intermcu, INTERMCU_AP, and intermcu_t::transport.
Referenced by telemetry_intermcu_init().
|
static |
Definition at line 49 of file telemetry_intermcu_ap.c.
Referenced by telemetry_intermcu_init(), and telemetry_intermcu_periodic().