comparison 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
comparison
equal deleted inserted replaced
41:50a72d4ff498 42:ff94d7fc5891
1 /*
2 * The structures and functions defined in this header file deal with
3 * interfacing to the Submultiplexer part of Nokia's Transcoder and
4 * Submultiplexer - the 8 kbit/s version.
5 */
6
7 #pragma once
8
9 #include <stdint.h>
10 #include <stdbool.h>
11
12 #include <osmocom/core/bits.h>
13 #include <osmocom/isdn/i460_mux.h>
14 #include <osmocom/trau/trau_frame.h>
15
16 #define ATER_SUBSLOTS 8
17
18 struct ater_subslot {
19 struct osmo_i460_subchan *schan;
20 int nr;
21 bool is_active;
22 bool frame_has_taf;
23 struct osmo_trau_frame ul_frame;
24 unsigned mfrm_count;
25 int16_t *play_buffer;
26 unsigned play_buf_total;
27 unsigned play_buf_ptr;
28 bool play_wait_align;
29 };
30
31 extern struct ater_subslot subslots[ATER_SUBSLOTS];
32
33 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data,
34 const ubit_t *bits, unsigned int num_bits);
35
36 void init_trau_ul_frame(int nr);