annotate abis/submux.h @ 32:94f11dc0d474

abis: Rx osmo_trau_sync hooked in
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 13 Aug 2024 22:07:49 +0000
parents 5dd30224b70a
children 351bd801cdce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * The structures and functions defined in this header file deal with
30
5dd30224b70a abis: starting new program
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
3 * submultiplexing on the Abis interface.
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #pragma once
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #include <stdint.h>
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include <stdbool.h>
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 #include <osmocom/core/bits.h>
32
94f11dc0d474 abis: Rx osmo_trau_sync hooked in
Mychaela Falconia <falcon@freecalypso.org>
parents: 30
diff changeset
12 #include <osmocom/core/fsm.h>
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 #include <osmocom/isdn/i460_mux.h>
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
30
5dd30224b70a abis: starting new program
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
15 #define ABIS_SUBSLOTS 4
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
30
5dd30224b70a abis: starting new program
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
17 struct abis_subslot {
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 struct osmo_i460_subchan *schan;
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 int nr;
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 bool is_active;
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 bool is_efr;
32
94f11dc0d474 abis: Rx osmo_trau_sync hooked in
Mychaela Falconia <falcon@freecalypso.org>
parents: 30
diff changeset
22 struct osmo_fsm_inst *sync;
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 };
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24
30
5dd30224b70a abis: starting new program
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
25 extern struct abis_subslot subslots[ABIS_SUBSLOTS];
16
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data,
4ffe22f5b4b5 ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 const ubit_t *bits, unsigned int num_bits);
32
94f11dc0d474 abis: Rx osmo_trau_sync hooked in
Mychaela Falconia <falcon@freecalypso.org>
parents: 30
diff changeset
29 void sync_rx_func(void *user_data, const ubit_t *bits, unsigned int num_bits);