FreeCalypso > hg > ice1-trau-tester
diff abis/submux.h @ 30:5dd30224b70a
abis: starting new program
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 13 Aug 2024 21:38:55 +0000 |
parents | ater/submux.h@237687e2be6c |
children | 94f11dc0d474 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/abis/submux.h Tue Aug 13 21:38:55 2024 +0000 @@ -0,0 +1,26 @@ +/* + * 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/isdn/i460_mux.h> + +#define ABIS_SUBSLOTS 4 + +struct abis_subslot { + struct osmo_i460_subchan *schan; + int nr; + bool is_active; + bool is_efr; +}; + +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);