FreeCalypso > hg > ice1-trau-tester
comparison 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 |
comparison
equal
deleted
inserted
replaced
31:cd7448724d74 | 32:94f11dc0d474 |
---|---|
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <stdbool.h> | 9 #include <stdbool.h> |
10 | 10 |
11 #include <osmocom/core/bits.h> | 11 #include <osmocom/core/bits.h> |
12 #include <osmocom/core/fsm.h> | |
12 #include <osmocom/isdn/i460_mux.h> | 13 #include <osmocom/isdn/i460_mux.h> |
13 | 14 |
14 #define ABIS_SUBSLOTS 4 | 15 #define ABIS_SUBSLOTS 4 |
15 | 16 |
16 struct abis_subslot { | 17 struct abis_subslot { |
17 struct osmo_i460_subchan *schan; | 18 struct osmo_i460_subchan *schan; |
18 int nr; | 19 int nr; |
19 bool is_active; | 20 bool is_active; |
20 bool is_efr; | 21 bool is_efr; |
22 struct osmo_fsm_inst *sync; | |
21 }; | 23 }; |
22 | 24 |
23 extern struct abis_subslot subslots[ABIS_SUBSLOTS]; | 25 extern struct abis_subslot subslots[ABIS_SUBSLOTS]; |
24 | 26 |
25 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data, | 27 void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data, |
26 const ubit_t *bits, unsigned int num_bits); | 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); |