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