58#define TEGMEN_SUCCESS 0
60#define TEGMEN_ERROR_INVALID_MESSAGE -1
62#define TEGMEN_ERROR_ENCODING_FAILED -2
64#define TEGMEN_ERROR_DECODING_FAILED -3
66#define TEGMEN_ERROR_INVALID_PARAMETERS -4
75#define TEGMEN_SAMPLE_RATE 12000
78#define TEGMEN_FT8_MESSAGE_LEN 37
81#define TEGMEN_FT4_MESSAGE_LEN 37
int tegmen_ft8_decode(const int16_t *samples, int nsamples, tegmen_decode_callback_t callback, void *user_data)
Definition tegmen.c:64
int tegmen_ft4_decode(const int16_t *samples, int nsamples, tegmen_decode_callback_t callback, void *user_data)
Decode FT4 signals from audio samples.
Definition tegmen.c:108
int tegmen_ft4_encode(const char *message, float *samples, int *nsamples)
Encode a message into FT4 audio samples.
Definition tegmen.c:100
int tegmen_ft8_encode(const char *message, float *samples, int *nsamples)
Definition tegmen.c:44
void(* tegmen_decode_callback_t)(float sync, int snr, float dt, float freq, const char *decoded, int nap, float qual, void *user_data)
Decode callback function type.
Definition tegmen.h:102