comparison ater/submux.h @ 16:4ffe22f5b4b5

ater: initial osmo_i460 framework
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Jun 2024 07:19:38 +0000
parents
children 1e375472d5a5
comparison
equal deleted inserted replaced
15:98ae717734d6 16:4ffe22f5b4b5
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.
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 4
17
18 struct ater_subslot {
19 struct osmo_i460_subchan *schan;
20 int nr;
21 bool is_active;
22 bool is_efr;
23 struct osmo_trau_frame ul_frame;
24 };
25
26 extern struct ater_subslot subslots[ATER_SUBSLOTS];
27
28 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data,
29 const ubit_t *bits, unsigned int num_bits);