00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00024 #ifndef HELPERS_H
00025 #define HELPERS_H
00026
00027
00028 #include <time.h>
00029 #include "fap.h"
00030
00031
00032
00034
00037 int fapint_parse_header(fap_packet_t* packet, short const is_ax25);
00038
00039
00041
00045 int fapint_parse_mice(fap_packet_t* packet, char const* input, unsigned int const input_len);
00046
00047
00049
00052 time_t fapint_parse_timestamp(char const* input);
00053
00054
00056
00060 int fapint_parse_compressed(fap_packet_t* packet, char const* input);
00061
00062
00064
00068 int fapint_parse_normal(fap_packet_t* packet, char const* input);
00069
00070
00072
00075 void fapint_parse_comment(fap_packet_t* packet, char const* input, unsigned int const input_len);
00076
00077
00079
00082 int fapint_parse_nmea(fap_packet_t* packet, char const* input, unsigned int const input_len);
00083
00084
00086
00089 int fapint_parse_object(fap_packet_t* packet, char const* input, unsigned int const input_len);
00090
00091
00093
00096 int fapint_parse_item(fap_packet_t* packet, char const* input, unsigned int const input_len);
00097
00098
00100
00103 int fapint_parse_message(fap_packet_t* packet, char const* input, unsigned int const input_len);
00104
00105
00107
00110 int fapint_parse_capabilities(fap_packet_t* packet, char const* input, unsigned int const input_len);
00111
00112
00114
00117 int fapint_parse_status(fap_packet_t* packet, char const* input, unsigned int const input_len);
00118
00119
00121
00124 int fapint_parse_wx(fap_packet_t* packet, char const* input, unsigned int const input_len);
00125
00126
00128
00131 int fapint_parse_telemetry(fap_packet_t* packet, char const* input);
00132
00133
00135
00138 int fapint_parse_wx_peet_logging(fap_packet_t* packet, char const* input);
00139
00140
00142
00145 int fapint_parse_wx_peet_packet(fap_packet_t* packet, char const* input);
00146
00147
00149
00155 int fapint_parse_dao(fap_packet_t* packet, char input[3]);
00156
00157
00158
00160
00165 char* fapint_check_kiss_callsign(char* input);
00166
00167
00168
00169
00170
00171
00173 fap_packet_t* fapint_create_packet();
00174
00175
00177 char* fapint_remove_part(char const* input, unsigned int const input_len,
00178 unsigned int const part_so, unsigned int const part_eo,
00179 unsigned int* result_len);
00180
00181
00182
00183 #endif // HELPERS_H