rdz_ttgo_sonde/libraries/SondeLib/aprs.h

27 wiersze
593 B
C
Czysty Zwykły widok Historia

2019-04-10 22:00:19 +00:00
#ifndef _aprs_h
#define _aprs_h
2019-04-15 18:28:50 +00:00
enum IDTYPE { ID_DFMDXL, ID_DFMGRAW, ID_DFMAUTO };
2019-04-12 15:57:03 +00:00
2019-04-28 14:04:11 +00:00
struct st_feedinfo {
2019-04-12 15:57:03 +00:00
bool active;
int type; // 0:UDP(axudp), 1:TCP(aprs.fi)
2019-04-15 18:28:50 +00:00
char host[64];
2019-04-12 15:57:03 +00:00
int port;
2019-04-16 14:52:16 +00:00
char symbol[3];
2019-04-15 18:28:50 +00:00
int lowrate;
int highrate;
int lowlimit;
2019-04-12 15:57:03 +00:00
int idformat; // 0: dxl 1: real 2: auto
2019-04-15 18:28:50 +00:00
};
#define APRS_MAXLEN 201
2019-04-10 22:00:19 +00:00
void aprs_gencrctab(void);
int aprsstr_mon2raw(const char *mon, char raw[], int raw_len);
char * aprs_senddata(float lat, float lon, float alt, float speed, float dir, float climb, const char *type, const char *objname, const char *usercall, const char *sym);
2019-04-10 22:00:19 +00:00
#endif