telemetry.h File Reference
#include "ipc/pubsub.h"
#include "telemetry/config.h"
#include "telemetry/types.h"
#include <csp/arch/csp_thread.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
CSP_DEFINE_TASK (telemetry_rx_task) | |
Task used to receive incoming data from telemetry publishers. More... | |
void | telemetry_init (void) |
Performs basic telemetry connection and thread initialization. More... | |
void | telemetry_cleanup (void) |
Performs cleanup on telemetry resources & threads. More... | |
pubsub_conn * | telemetry_connect (void) |
Connects to the telemetry system - thread safe version. More... | |
pubsub_conn * | kprv_telemetry_connect (void) |
Internal connect function - not thread safe. More... | |
bool | telemetry_subscribe (const pubsub_conn *conn, uint16_t topic_id) |
Subscribes the pubsub_conn to the specified topic. More... | |
bool | telemetry_disconnect (pubsub_conn *conn) |
Disconnects from the telemetry system. More... | |
bool | telemetry_unsubscribe (const pubsub_conn *conn, uint16_t topic_id) |
Unsubscribes a connection from a specific topic. More... | |
bool | telemetry_read (const pubsub_conn *conn, telemetry_packet *packet) |
Reads a telemetry packet from the telemetry server. More... | |
bool | telemetry_publish (telemetry_packet packet) |
Public facing telemetry input interface. More... | |
int | telemetry_num_subscribers (void) |
bool | telemetry_is_subscribed (const pubsub_conn *client_conn, uint16_t topic_id) |
Checks if a telemetry client is subscribed to a topic. More... | |