FreeCalypso > hg > e1-fake-trau
annotate ft16/submux.h @ 6:3ab5e2e17da2 default tip
add README
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 29 Aug 2024 14:56:30 +0000 |
parents | 5c18cd38c8ad |
children |
rev | line source |
---|---|
2
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * The structures and functions defined in this header file deal with |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * submultiplexing on the Abis interface. |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #pragma once |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 #include <stdint.h> |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include <stdbool.h> |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #include <osmocom/core/bits.h> |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #include <osmocom/core/fsm.h> |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 #include <osmocom/isdn/i460_mux.h> |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #define ABIS_SUBSLOTS 4 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 struct abis_subslot { |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 struct osmo_i460_subchan *schan; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 struct osmo_fsm_inst *sync; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 int nr; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 bool got_sync; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 uint8_t frame_type; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 }; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 extern struct abis_subslot subslots[ABIS_SUBSLOTS]; |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data, |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 const ubit_t *bits, unsigned int num_bits); |
5c18cd38c8ad
ft16: import from ice1-trau-tester/abis
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 void sync_rx_func(void *user_data, const ubit_t *bits, unsigned int num_bits); |