spandsp 3.0.0
async_tx_state_s Struct Reference

#include <async.h>

Public Attributes

int16_t data_bits
 The number of data bits per character.
int16_t parity
 The type of parity.
int16_t total_data_bits
 Total number of bits per frame, including any parity bit.
int16_t total_bits
 Total number of bits per frame, including any parity bit and the stop bits.
span_get_byte_func_t get_byte
 A pointer to the callback routine used to get characters to be transmitted.
void * user_data
 An opaque pointer passed when calling get_byte.
int presend_bits
 The minimum number of stop bits to send before character transmission begins.
uint16_t frame_in_progress
 A current, partially transmitted, character with its optional parity bit attached.
int16_t bitpos
 The current bit position within a partially transmitted character.

Detailed Description

Asynchronous data transmit descriptor. This defines the state of a single working instance of a byte to asynchronous serial converter, for use in FSK modems.

Member Data Documentation

◆ bitpos

int16_t async_tx_state_s::bitpos

The current bit position within a partially transmitted character.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ data_bits

int16_t async_tx_state_s::data_bits

The number of data bits per character.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ frame_in_progress

uint16_t async_tx_state_s::frame_in_progress

A current, partially transmitted, character with its optional parity bit attached.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ get_byte

span_get_byte_func_t async_tx_state_s::get_byte

A pointer to the callback routine used to get characters to be transmitted.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ parity

int16_t async_tx_state_s::parity

The type of parity.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ presend_bits

int async_tx_state_s::presend_bits

The minimum number of stop bits to send before character transmission begins.

Referenced by async_tx_get_bit(), async_tx_init(), and async_tx_presend_bits().

◆ total_bits

int16_t async_tx_state_s::total_bits

Total number of bits per frame, including any parity bit and the stop bits.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ total_data_bits

int16_t async_tx_state_s::total_data_bits

Total number of bits per frame, including any parity bit.

Referenced by async_tx_get_bit(), and async_tx_init().

◆ user_data

void* async_tx_state_s::user_data

An opaque pointer passed when calling get_byte.

Referenced by async_tx_get_bit(), and async_tx_init().


The documentation for this struct was generated from the following file: