42 const ubit_t *bits,
unsigned int num_bits);
44 const uint8_t *bytes,
unsigned int num_bytes);
uint8_t msg[0]
Definition: gsm_08_08.h:8
int osmo_i460_mux_out(struct osmo_i460_timeslot *ts, uint8_t *out, size_t out_len)
Data from E1 timeslot into de-multiplexer.
Definition: i460_mux.c:275
void osmo_i460_subchan_del(struct osmo_i460_subchan *schan)
Definition: i460_mux.c:388
void(* out_cb_bytes_t)(struct osmo_i460_subchan *schan, void *user_data, const uint8_t *bytes, unsigned int num_bytes)
Definition: i460_mux.h:43
void osmo_i460_demux_in(struct osmo_i460_timeslot *ts, const uint8_t *data, size_t data_len)
Data from E1 timeslot into de-multiplexer.
Definition: i460_mux.c:131
void osmo_i460_ts_init(struct osmo_i460_timeslot *ts)
initialize an I.460 timeslot
Definition: i460_mux.c:341
struct osmo_i460_subchan * osmo_i460_subchan_add(void *ctx, struct osmo_i460_timeslot *ts, const struct osmo_i460_schan_desc *chd)
add a new sub-channel to the given timeslot
Definition: i460_mux.c:358
void osmo_i460_mux_enqueue(struct osmo_i460_subchan *schan, struct msgb *msg)
enqueue a to-be-transmitted message buffer containing unpacked bits
Definition: i460_mux.c:166
void(* out_cb_bits_t)(struct osmo_i460_subchan *schan, void *user_data, const ubit_t *bits, unsigned int num_bits)
Definition: i460_mux.h:41
osmo_i460_rate
Definition: i460_mux.h:31
@ OSMO_I460_RATE_NONE
Definition: i460_mux.h:32
@ OSMO_I460_RATE_16k
Definition: i460_mux.h:35
@ OSMO_I460_RATE_32k
Definition: i460_mux.h:34
@ OSMO_I460_RATE_8k
Definition: i460_mux.h:36
@ OSMO_I460_RATE_64k
Definition: i460_mux.h:33
void(* in_cb_queue_empty_t)(struct osmo_i460_subchan *schan, void *user_data)
Definition: i460_mux.h:59
description of a sub-channel; passed by caller
Definition: i460_mux.h:81
enum osmo_i460_rate rate
Definition: i460_mux.h:82
size_t num_bits
Definition: i460_mux.h:86
struct osmo_i460_schan_desc::@10 mux
out_cb_bits_t out_cb_bits
call-back function called whenever we received num_bits
Definition: i460_mux.h:88
void * user_data
Definition: i460_mux.h:97
struct osmo_i460_schan_desc::@9 demux
in_cb_queue_empty_t in_cb_queue_empty
Definition: i460_mux.h:103
out_cb_bytes_t out_cb_bytes
out_cb_bytes call-back function called whenever we received num_bits.
Definition: i460_mux.h:95
uint8_t bit_offset
Definition: i460_mux.h:83
Definition: i460_mux.h:46
out_cb_bits_t out_cb_bits
callback to be called once we have received out_bitbuf_size bits
Definition: i460_mux.h:54
out_cb_bytes_t out_cb_bytes
Definition: i460_mux.h:55
uint8_t * out_bitbuf
bit-buffer for output bits
Definition: i460_mux.h:48
unsigned int out_idx
offset of next bit to be written in out_bitbuf
Definition: i460_mux.h:52
unsigned int out_bitbuf_size
size of out_bitbuf in bytes
Definition: i460_mux.h:50
void * user_data
Definition: i460_mux.h:56
Definition: i460_mux.h:61
in_cb_queue_empty_t in_cb_queue_empty
Definition: i460_mux.h:64
struct llist_head tx_queue
list of to-be-transmitted message buffers
Definition: i460_mux.h:63
void * user_data
Definition: i460_mux.h:65
Definition: i460_mux.h:68
struct osmo_i460_timeslot * ts
Definition: i460_mux.h:69
struct osmo_i460_subchan_demux demux
Definition: i460_mux.h:72
uint8_t bit_offset
Definition: i460_mux.h:71
enum osmo_i460_rate rate
Definition: i460_mux.h:70
struct osmo_i460_subchan_mux mux
Definition: i460_mux.h:73
Definition: i460_mux.h:76
struct osmo_i460_subchan schan[8]
Definition: i460_mux.h:77