FreeCalypso > hg > ice1-trau-tester
annotate abis/submux.h @ 35:499d065ee591
new program itt-pcm-br (PCM bridge)
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Aug 2024 05:00:38 +0000 |
parents | 351bd801cdce |
children |
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; |
33
351bd801cdce
abis: should be complete now
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
19 struct osmo_fsm_inst *sync; |
16
4ffe22f5b4b5
ater: initial osmo_i460 framework
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 int nr; |
33
351bd801cdce
abis: should be complete now
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
21 bool got_sync; |
351bd801cdce
abis: should be complete now
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
22 uint8_t frame_type; |
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); |