74 unsigned long val_ms);
osmo_v110_local_flow_ctrl_mode
V.110 5.4.1 Local flow control (DTE-DCE or TE-TA) mode.
Definition: v110_ta.h:14
int osmo_v110_ta_desync_ind(struct osmo_v110_ta *ta)
Indicate a synchronization loss event.
Definition: v110_ta.c:813
static const char * osmo_v110_ta_circuit_name(enum osmo_v110_ta_circuit circuit)
Get a short name of the given TA's circuit (format: NNN[/ABBR]).
Definition: v110_ta.h:98
void * priv
Opaque application-private data; passed to call-backs.
Definition: v110_ta.h:37
const char * get_value_string(const struct value_string *vs, uint32_t val)
7.1.5 Loss of frame synchronization: sync recovery timer.
Definition: v110_ta.h:65
const struct value_string osmo_v110_ta_circuit_names[]
Definition: v110_ta.c:58
Configuration for a V.110 TA instance.
Definition: v110_ta.h:22
unsigned int osmo_v110_ta_get_status(const struct osmo_v110_ta *ta)
Get the V.24 status bit-mask of the given TA instance.
Definition: v110_ta.c:821
int osmo_v110_ta_sync_ind(struct osmo_v110_ta *ta)
Indicate a synchronization establishment event.
Definition: v110_ta.c:801
struct osmo_v110_ta_cfg * cfg
Definition: v110_ta.c:148
void osmo_v110_ta_free(struct osmo_v110_ta *ta)
Release memory taken by the given V.110 TA instance.
Definition: v110_ta.c:726
enum osmo_v100_sync_ra1_rate rate
Synchronous user rate.
Definition: v110_ta.h:26
void(* tx_cb)(void *priv, ubit_t *buf, size_t buf_size)
Transmit call-back of the application.
Definition: v110_ta.h:49
const struct value_string osmo_v110_ta_circuit_descs[]
Definition: v110_ta.c:68
bool end_to_end
End-to-end (TA-to-TA) flow control state.
Definition: v110_ta.h:33
int osmo_v110_ta_frame_out(struct osmo_v110_ta *ta, struct osmo_v110_decoded_frame *out)
Pull a [decoded] V.110 frame out of the given TA instance.
Definition: v110_ta.c:789
DTE->DCE | Ready for receiving.
Definition: v110_ta.h:91
void(* status_update_cb)(void *priv, unsigned int status)
Modem status line update call-back (optional).
Definition: v110_ta.h:54
struct osmo_v110_ta_cfg::@4 flow_ctrl
Flow control configuration.
enum osmo_v110_local_flow_ctrl_mode local
Local TA-TE (DTE-DCE) flow control mode.
Definition: v110_ta.h:31
int osmo_v110_ta_frame_in(struct osmo_v110_ta *ta, const struct osmo_v110_decoded_frame *in)
Feed a [decoded] V.110 frame into the given TA instance.
Definition: v110_ta.c:765
osmo_v110_ta_timer
Various timers for a V.110 TA instance.
Definition: v110_ta.h:62
int osmo_v110_ta_set_circuit(struct osmo_v110_ta *ta, enum osmo_v110_ta_circuit circuit, bool active)
Activate/deactivate a V.24 circuit of the given TA instance.
Definition: v110_ta.c:857
const char * name
Definition: v110_ta.c:145
5.4.1.1 133/106 operation
Definition: v110_ta.h:16
No local flow control.
Definition: v110_ta.h:15
osmo_v110_ta_circuit
ITU-T Table 9 "Interchange circuit" (see also ITU-T V.24 Chapter 3).
Definition: v110_ta.h:85
DTE<-DCE | CTS (Clear to Send)
Definition: v110_ta.h:87
DTE<-DCE | DCD (Data Carrier Detect)
Definition: v110_ta.h:90
static const char * osmo_v110_ta_circuit_desc(enum osmo_v110_ta_circuit circuit)
Get a brief description of the given TA's circuit.
Definition: v110_ta.h:104
DTE->DCE | RTS (Request to Send)
Definition: v110_ta.h:86
7.1.2 Connect TA to line: sync establishment timer
Definition: v110_ta.h:67
5.4.1.3 XON/XOFF operation
Definition: v110_ta.h:18
5.4.1.2 105/106 operation
Definition: v110_ta.h:17
DTE<-DCE | DSR (Data Set Ready)
Definition: v110_ta.h:88
DTE->DCE | DTR (Data Terminal Ready)
Definition: v110_ta.h:89
struct osmo_v110_ta * osmo_v110_ta_alloc(void *ctx, const char *name, const struct osmo_v110_ta_cfg *cfg)
Allocate a V.110 TA (Terminal Adapter) instance.
Definition: v110_ta.c:679
int osmo_v110_ta_set_timer_val_ms(struct osmo_v110_ta *ta, enum osmo_v110_ta_timer timer, unsigned long val_ms)
Configure a timer of the given V.110 TA instance.
Definition: v110_ta.c:740
osmo_v100_sync_ra1_rate
enum for each supported V.110 synchronous RA1 function (one for each user bitrate) ...
Definition: v110.h:26
Definition: v110_ta.c:144
bool osmo_v110_ta_get_circuit(const struct osmo_v110_ta *ta, enum osmo_v110_ta_circuit circuit)
Get state of a V.24 circuit of the given TA instance.
Definition: v110_ta.c:846
7.1.4 Disconnect mode: disconnect confirmation timer
Definition: v110_ta.h:69
unsigned int flags
Configuration flags (behavior switches and quirks)
Definition: v110_ta.h:24
a 'decoded' representation of a single V.110 frame.
Definition: v110.h:12
void(* rx_cb)(void *priv, const ubit_t *buf, size_t buf_size)
Receive call-back of the application.
Definition: v110_ta.h:43