|
Classes |
struct | async_tx_state_t |
struct | async_rx_state_t |
Defines |
#define | _SPANDSP_ASYNC_H_ |
#define | ASYNC_PARITY_NONE 0 |
#define | ASYNC_PARITY_EVEN 1 |
#define | ASYNC_PARITY_ODD 2 |
Typedefs |
typedef void(* | put_msg_func_t )(void *user_data, const uint8_t *msg, int len) |
typedef int(* | get_msg_func_t )(void *user_data, uint8_t *msg, int max_len) |
typedef void(* | put_byte_func_t )(void *user_data, int byte) |
typedef int(* | get_byte_func_t )(void *user_data) |
typedef void(* | put_bit_func_t )(void *user_data, int bit) |
typedef int(* | get_bit_func_t )(void *user_data) |
Enumerations |
enum | {
PUTBIT_CARRIER_DOWN = -1,
PUTBIT_CARRIER_UP = -2,
PUTBIT_TRAINING_IN_PROGRESS = -3,
PUTBIT_TRAINING_SUCCEEDED = -4,
PUTBIT_TRAINING_FAILED = -5,
PUTBIT_FRAMING_OK = -6,
PUTBIT_END_OF_DATA = -7,
PUTBIT_ABORT = -8,
PUTBIT_BREAK = -9
} |
Functions |
void | 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.
|
int | async_tx_get_bit (void *user_data) |
| Get the next bit of a transmitted serial bit stream.
|
void | 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.
|
void | async_rx_put_bit (void *user_data, int bit) |
| Accept a bit from a received serial bit stream.
|