aprs.h File Reference

APRS parsing module. More...

#include <stdint.h>
#include "kubos-core/modules/ax25.h"

Go to the source code of this file.

Data Structures

struct  aprs_position_s
 
struct  aprs_telemetry_desc_s
 
struct  aprs_telemetry_s
 

Macros

#define APRS_DIGI_APRS   ax25_addr_init("APRS")
 
#define APRS_DIGI_TCPIP   ax25_addr_init("TCPIP*")
 
#define APRS_NOCALL   ax25_addr_init("N0CALL")
 
#define APRSIS_ADDRS(src_)
 
#define APRSIS_ADDRS_LEN   4
 
#define APRS_POSITION_LEN   43
 
#define APRS_TELEMETRY_LEN   34
 
#define APRS_T_ANALOG_MAXLENS   { 7, 6, 5, 5, 4 }
 
#define APRS_T_DIGITAL_MAXLENS   { 5, 4, 3, 3, 3, 2, 2, 2}
 

Typedefs

typedef struct aprs_position_s aprs_position_t
 
typedef struct aprs_telemetry_desc_s aprs_telemetry_desc_t
 
typedef struct aprs_telemetry_s aprs_telemetry_t
 

Functions

int aprs_position_format (char *dest, aprs_position_t *position)
 
k_buffer_taprs_position_build (aprs_position_t *position)
 
void aprs_telemetry_init (aprs_telemetry_t *telemetry)
 
void aprs_telemetry_add_analog (aprs_telemetry_t *telemetry, int field, char *name, char *unit, uint8_t init_value)
 
void aprs_telemetry_add_digital (aprs_telemetry_t *telemetry, int bit, char *name, char *unit, uint8_t bit_value)
 
int aprs_telemetry_format (char *dest, aprs_telemetry_t *telemetry)
 
k_buffer_taprs_telemetry_build (aprs_telemetry_t *telemetry)
 
int aprs_telemetry_params_format (char *dest, char *callsign, aprs_telemetry_t *telemetry)
 
int aprs_telemetry_units_format (char *dest, char *callsign, aprs_telemetry_t *telemetry)