From e779c364ac7eb1f6bcf42e507972bc3322e6f908 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 29 Jun 2010 20:51:13 +0200 Subject: Add gsmtap utility functions to libosmocore This is imported from OsmocomBB/Layer23 --- include/osmocore/gsmtap_util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/osmocore/gsmtap_util.h (limited to 'include/osmocore/gsmtap_util.h') diff --git a/include/osmocore/gsmtap_util.h b/include/osmocore/gsmtap_util.h new file mode 100644 index 00000000..30fc1267 --- /dev/null +++ b/include/osmocore/gsmtap_util.h @@ -0,0 +1,16 @@ +#ifndef _GSMTAP_UTIL_H +#define _GSMTAP_UTIL_H + +#include + +/* convert RSL channel number to GSMTAP channel type */ +uint8_t chantype_rsl2gsmtap(uint8_t rsl_chantype, uint8_t rsl_link_id); + +/* receive a message from L1/L2 and put it in GSMTAP */ +int gsmtap_sendmsg(uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, + uint32_t fn, int8_t signal_dbm, uint8_t snr, + const uint8_t *data, unsigned int len); + +int gsmtap_init(uint32_t dst_ip); + +#endif /* _GSMTAP_UTIL_H */ -- cgit v1.2.3