spandsp 0.0.6
|
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "spandsp/telephony.h"
#include "spandsp/async.h"
#include "spandsp/private/async.h"
Functions | |
const char * | signal_status_to_str (int status) |
Convert a signal status to a short text description. More... | |
async_rx_state_t * | async_rx_init (async_rx_state_t *s, int data_bits, int parity, int stop_bits, int use_v14, put_byte_func_t put_byte, void *user_data) |
Initialise an asynchronous data receiver context. More... | |
int | async_rx_release (async_rx_state_t *s) |
int | async_rx_free (async_rx_state_t *s) |
void | async_rx_put_bit (void *user_data, int bit) |
async_tx_state_t * | async_tx_init (async_tx_state_t *s, int data_bits, int parity, int stop_bits, int use_v14, get_byte_func_t get_byte, void *user_data) |
Initialise an asynchronous data transmit context. More... | |
int | async_tx_release (async_tx_state_t *s) |
int | async_tx_free (async_tx_state_t *s) |
int | async_tx_get_bit (void *user_data) |
async_rx_state_t * async_rx_init | ( | async_rx_state_t * | s, |
int | data_bits, | ||
int | parity_bits, | ||
int | stop_bits, | ||
int | use_v14, | ||
put_byte_func_t | put_byte, | ||
void * | user_data | ||
) |
Initialise an asynchronous data receiver context.
Initialise an asynchronous data receiver context.
s | The receiver context. |
data_bits | The number of data bits. |
parity_bits | The type of parity. |
stop_bits | The number of stop bits. |
use_v14 | TRUE if V.14 rate adaption processing should be used. |
put_byte | The callback routine used to put the received data. |
user_data | An opaque pointer. |
async_tx_state_t * async_tx_init | ( | async_tx_state_t * | s, |
int | data_bits, | ||
int | parity_bits, | ||
int | stop_bits, | ||
int | use_v14, | ||
get_byte_func_t | get_byte, | ||
void * | user_data | ||
) |
Initialise an asynchronous data transmit context.
Initialise an asynchronous data transmit context.
s | The transmitter context. |
data_bits | The number of data bit. |
parity_bits | The type of parity. |
stop_bits | The number of stop bits. |
use_v14 | TRUE if V.14 rate adaption processing should be used. |
get_byte | The callback routine used to get the data to be transmitted. |
user_data | An opaque pointer. |
const char * signal_status_to_str | ( | int | status | ) |
Convert a signal status to a short text description.
Convert a signal status to a short text description.
status | The modem signal status. |
References SIG_STATUS_ABORT, SIG_STATUS_BREAK, SIG_STATUS_CARRIER_DOWN, SIG_STATUS_CARRIER_UP, SIG_STATUS_END_OF_DATA, SIG_STATUS_FRAMING_OK, SIG_STATUS_LINK_CONNECTED, SIG_STATUS_LINK_DISCONNECTED, SIG_STATUS_LINK_ERROR, SIG_STATUS_MODEM_RETRAIN_OCCURRED, SIG_STATUS_OCTET_REPORT, SIG_STATUS_POOR_SIGNAL_QUALITY, SIG_STATUS_SHUTDOWN_COMPLETE, SIG_STATUS_TRAINING_FAILED, SIG_STATUS_TRAINING_IN_PROGRESS, and SIG_STATUS_TRAINING_SUCCEEDED.