FreeCalypso > hg > e1-fake-trau
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ft16/submux.h Thu Aug 29 13:07:16 2024 +0000 @@ -0,0 +1,29 @@ +/* + * The structures and functions defined in this header file deal with + * submultiplexing on the Abis interface. + */ + +#pragma once + +#include <stdint.h> +#include <stdbool.h> + +#include <osmocom/core/bits.h> +#include <osmocom/core/fsm.h> +#include <osmocom/isdn/i460_mux.h> + +#define ABIS_SUBSLOTS 4 + +struct abis_subslot { + struct osmo_i460_subchan *schan; + struct osmo_fsm_inst *sync; + int nr; + bool got_sync; + uint8_t frame_type; +}; + +extern struct abis_subslot subslots[ABIS_SUBSLOTS]; + +void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data, + const ubit_t *bits, unsigned int num_bits); +void sync_rx_func(void *user_data, const ubit_t *bits, unsigned int num_bits);