view abis/submux.h @ 31:cd7448724d74

top Makefile: add abis program subdir
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 13 Aug 2024 21:44:30 +0000
parents 5dd30224b70a
children 94f11dc0d474
line wrap: on
line source

/*
 * 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);