FreeCalypso > hg > ice1-trau-tester
view ater8/submux.h @ 42:ff94d7fc5891
new program itt-ater-8
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 30 Aug 2024 19:02:42 +0000 |
parents | ater/submux.h@237687e2be6c |
children | 3cc26391d24d |
line wrap: on
line source
/* * The structures and functions defined in this header file deal with * interfacing to the Submultiplexer part of Nokia's Transcoder and * Submultiplexer - the 8 kbit/s version. */ #pragma once #include <stdint.h> #include <stdbool.h> #include <osmocom/core/bits.h> #include <osmocom/isdn/i460_mux.h> #include <osmocom/trau/trau_frame.h> #define ATER_SUBSLOTS 8 struct ater_subslot { struct osmo_i460_subchan *schan; int nr; bool is_active; bool frame_has_taf; struct osmo_trau_frame ul_frame; unsigned mfrm_count; int16_t *play_buffer; unsigned play_buf_total; unsigned play_buf_ptr; bool play_wait_align; }; extern struct ater_subslot subslots[ATER_SUBSLOTS]; void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data, const ubit_t *bits, unsigned int num_bits); void init_trau_ul_frame(int nr);