diff ater/submux.h @ 16:4ffe22f5b4b5

ater: initial osmo_i460 framework
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Jun 2024 07:19:38 +0000
parents
children 1e375472d5a5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ater/submux.h	Mon Jun 24 07:19:38 2024 +0000
@@ -0,0 +1,29 @@
+/*
+ * The structures and functions defined in this header file deal with
+ * interfacing to the Submultiplexer part of Nokia's Transcoder and
+ * Submultiplexer.
+ */
+
+#pragma once
+
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <osmocom/core/bits.h>
+#include <osmocom/isdn/i460_mux.h>
+#include <osmocom/trau/trau_frame.h>
+
+#define	ATER_SUBSLOTS	4
+
+struct ater_subslot {
+	struct osmo_i460_subchan *schan;
+	int nr;
+	bool is_active;
+	bool is_efr;
+	struct osmo_trau_frame ul_frame;
+};
+
+extern struct ater_subslot subslots[ATER_SUBSLOTS];
+
+void i460_rx_func(struct osmo_i460_subchan *schan, void *user_data,
+		  const ubit_t *bits, unsigned int num_bits);