#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/queue.h"
#include "spandsp/async.h"
#include "spandsp/dds.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/modem_connect_tones.h"
#include "spandsp/power_meter.h"
#include "spandsp/fsk.h"
#include "spandsp/v8.h"
Defines | |
#define | ms_to_samples(t) (((t)*SAMPLE_RATE)/1000) |
Enumerations | |
enum | { V8_WAIT_1S, V8_CI, V8_CI_ON, V8_CI_OFF, V8_HEARD_ANSAM, V8_CM_ON, V8_CJ_ON, V8_CM_WAIT, V8_SIGC, V8_WAIT_200MS, V8_JM_ON, V8_SIGA, V8_PARKED } |
enum | { V8_SYNC_UNKNOWN = 0, V8_SYNC_CI, V8_SYNC_CM_JM, V8_SYNC_V92 } |
Functions | |
const char * | v8_call_function_to_str (int call_function) |
const char * | v8_modulation_to_str (int modulation_scheme) |
const char * | v8_protocol_to_str (int protocol) |
const char * | v8_pstn_access_to_str (int pstn_access) |
const char * | v8_pcm_modem_availability_to_str (int pcm_modem_availability) |
void | v8_log_supported_modulations (v8_state_t *s, int modulation_schemes) |
Log the list of supported modulations. | |
int | v8_tx (v8_state_t *s, int16_t *amp, int max_len) |
Generate a block of V.8 audio samples. | |
int | v8_rx (v8_state_t *s, const int16_t *amp, int len) |
Process a block of received V.8 audio samples. | |
v8_state_t * | v8_init (v8_state_t *s, int caller, int available_modulations, v8_result_handler_t *result_handler, void *user_data) |
Initialise a V.8 context. | |
int | v8_release (v8_state_t *s) |
Release a V.8 context. | |
Variables | |
struct { | |
const char * name | |
int x_res | |
int y_res | |
int width | |
int length | |
uint8_t code | |
uint8_t bits | |
int frequency | |
float amp | |
float delay | |
} | v8_states_e |
struct { | |
uint16_t code | |
uint16_t mask | |
uint8_t bits | |
int freq | |
float ad [8] | |
} | v8_sync_types_e |
|
Initialise a V.8 context. Initialise a V.8 context.
|
|
Log the list of supported modulations. Log the list of supported modulations.
|
|
Release a V.8 context. Release a V.8 context.
|
|
Process a block of received V.8 audio samples. Process a block of received V.8 audio samples.
|
|
Generate a block of V.8 audio samples. Generate a block of V.8 audio samples.
|