#include <libhpsangoma.h>
Collaboration diagram for sangoma_hptdm_chan:
Public Attributes | |
int | init |
int | chan_no |
int | span_no |
void * | span |
hp_tmd_chunk_t | rx_chunk |
hp_tmd_chunk_t | tx_idx [SMG_HP_TDM_CHUNK_IDX_SZ] |
int | tx_idx_in |
int | tx_idx_out |
int(* | push )(struct sangoma_hptdm_chan *, char *data, int len) |
sangoma_hptdm_chan_reg_t | chan_reg |
Definition at line 115 of file libhpsangoma.h.
channel number: starting from 0
Definition at line 121 of file libhpsangoma.h.
Channel registration struct used to store user data, cfg and callbacks
Definition at line 145 of file libhpsangoma.h.
channel init flag used to determine if chan is being used
Definition at line 118 of file libhpsangoma.h.
int(* sangoma_hptdm_chan::push)(struct sangoma_hptdm_chan *, char *data, int len) |
Callback func called by user to push chunk of data into the channel
Rx chunk buffer used to rx data from the span
Definition at line 130 of file libhpsangoma.h.
void* sangoma_hptdm_chan::span |
span object pointer the current channel belongs
Definition at line 127 of file libhpsangoma.h.
span number the current channel belongs to: starting from 0
Definition at line 124 of file libhpsangoma.h.
hp_tmd_chunk_t sangoma_hptdm_chan::tx_idx[SMG_HP_TDM_CHUNK_IDX_SZ] |
Circular buffer of tx data chunks used to tx data to span
Definition at line 133 of file libhpsangoma.h.
Circular buffer index for user to chan tx
Definition at line 136 of file libhpsangoma.h.
Circular buffer index for chan to span tx
Definition at line 139 of file libhpsangoma.h.