libosmocore  0.9.6.270-38c0
Osmocom core library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
osmo_sercomm_inst Struct Reference

one instance of a sercomm multiplex/demultiplex More...

#include <sercomm.h>

Data Fields

int initialized
 Has this instance been initialized?
 
int uart_id
 UART Identifier.
 
struct {
   struct llist_head   dlci_queues [_SC_DLCI_MAX]
 per-DLC queue of pending transmit msgbs
 
   struct msgb *   msg
 msgb currently being transmitted
 
   int   state
 transmit state
 
   uint8_t *   next_char
 next to-be-transmitted char in msg
 
tx
 transmit side
 
struct {
   dlci_cb_t   dlci_handler [_SC_DLCI_MAX]
 per-DLC handler call-back functions
 
   unsigned int   msg_size
 msgb allocation size for rx msgs
 
   struct msgb *   msg
 currently received msgb
 
   int   state
 receive state
 
   uint8_t   dlci
 DLCI of currently received msgb.
 
   uint8_t   ctrl
 CTRL of currently received msgb.
 
rx
 receive side
 

Detailed Description

one instance of a sercomm multiplex/demultiplex

Field Documentation

struct msgb* osmo_sercomm_inst::msg

msgb currently being transmitted

currently received msgb

Referenced by osmo_sercomm_change_speed(), osmo_sercomm_drv_pull(), osmo_sercomm_drv_rx_char(), and osmo_sercomm_init().

int osmo_sercomm_inst::state

transmit state

receive state

Referenced by osmo_sercomm_drv_pull(), and osmo_sercomm_drv_rx_char().


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