00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00032 #ifndef HELPERS_H
00033 #define HELPERS_H
00034
00035
00036 #include <time.h>
00037 #include "fap.h"
00038
00039
00040
00042
00045 int fapint_parse_header(fap_packet_t* packet, short const is_ax25);
00046
00047
00049
00053 int fapint_parse_mice(fap_packet_t* packet, char const* input, unsigned int const input_len);
00054
00055
00057
00060 time_t fapint_parse_timestamp(char const* input);
00061
00062
00064
00068 int fapint_parse_compressed(fap_packet_t* packet, char const* input);
00069
00070
00072
00076 int fapint_parse_normal(fap_packet_t* packet, char const* input);
00077
00078
00080
00083 void fapint_parse_comment(fap_packet_t* packet, char const* input, unsigned int const input_len);
00084
00085
00087
00090 int fapint_parse_nmea(fap_packet_t* packet, char const* input, unsigned int const input_len);
00091
00092
00094
00097 int fapint_parse_object(fap_packet_t* packet, char const* input, unsigned int const input_len);
00098
00099
00101
00104 int fapint_parse_item(fap_packet_t* packet, char const* input, unsigned int const input_len);
00105
00106
00108
00111 int fapint_parse_message(fap_packet_t* packet, char const* input, unsigned int const input_len);
00112
00113
00115
00118 int fapint_parse_capabilities(fap_packet_t* packet, char const* input, unsigned int const input_len);
00119
00120
00122
00125 int fapint_parse_status(fap_packet_t* packet, char const* input, unsigned int const input_len);
00126
00127
00129
00132 int fapint_parse_wx(fap_packet_t* packet, char const* input, unsigned int const input_len);
00133
00134
00136
00139 int fapint_parse_telemetry(fap_packet_t* packet, char const* input);
00140
00141
00143
00146 int fapint_parse_wx_peet_logging(fap_packet_t* packet, char const* input);
00147
00148
00150
00153 int fapint_parse_wx_peet_packet(fap_packet_t* packet, char const* input);
00154
00155
00157
00163 int fapint_parse_dao(fap_packet_t* packet, char input[3]);
00164
00165
00166
00168
00173 char* fapint_check_kiss_callsign(char* input);
00174
00175
00176
00177
00178
00179
00181 fap_packet_t* fapint_create_packet();
00182
00183
00184
00185 #endif // HELPERS_H