Loading...
Searching...
No Matches
abis_nm.h
Go to the documentation of this file.
#pragma once
#include <osmocom/gsm/tlv.h>
#include <osmocom/gsm/gsm_utils.h>
#include <osmocom/gsm/protocol/gsm_12_21.h>
extern const char abis_nm_ipa_magic[13];
extern const char abis_nm_osmo_magic[12];
enum abis_nm_msgtype;
enum gsm_phys_chan_config;
extern const enum abis_nm_msgtype abis_nm_reports[4];
extern const enum abis_nm_msgtype abis_nm_no_ack_nack[3];
extern const enum abis_nm_msgtype abis_nm_sw_load_msgs[9];
extern const enum abis_nm_msgtype abis_nm_nacks[33];
extern const struct value_string abis_nm_msg_disc_names[];
extern const struct value_string abis_nm_obj_class_names[];
extern const struct value_string abis_nm_adm_state_names[];
const char *abis_nm_nack_cause_name(uint8_t cause);
const char *abis_nm_nack_name(uint8_t nack);
const char *abis_nm_event_type_name(uint8_t cause);
const char *abis_nm_severity_name(uint8_t cause);
extern const struct tlv_definition abis_nm_att_tlvdef;
const char *abis_nm_opstate_name(uint8_t os);
const char *abis_nm_avail_name(uint8_t avail);
const char *abis_nm_test_name(uint8_t test);
static inline const char *abis_nm_admin_name(uint8_t admin)
{
return get_value_string(abis_nm_adm_state_names, admin);
}
extern const struct tlv_definition abis_nm_osmo_att_tlvdef;
extern const struct tlv_definition abis_nm_att_tlvdef_ipa;
const char *abis_nm_dump_foh(const struct abis_om_fom_hdr *foh);
char *abis_nm_dump_foh_buf(char *buf, size_t buf_len, const struct abis_om_fom_hdr *foh);
char *abis_nm_dump_foh_c(void *ctx, const struct abis_om_fom_hdr *foh);
#define abis_nm_debugp_foh(ss, foh) \
DEBUGP(ss, "%s ", abis_nm_dump_foh(foh))
int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan);
enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb);
abis_nm_obj_class_names
const struct value_string abis_nm_obj_class_names[]
Human-readable strings for A-bis OML Object Class.
Definition abis_nm.c:607
abis_nm_ipa_magic
const char abis_nm_ipa_magic[13]
Definition abis_nm.c:40
abis_nm_msg_disc_names
const struct value_string abis_nm_msg_disc_names[]
Human-readable strings for A-bis OML Object Class.
Definition abis_nm.c:598
abis_nm_nack_name
const char * abis_nm_nack_name(uint8_t nack)
Get human-readable string for OML NACK message type.
Definition abis_nm.c:148
abis_nm_att_tlvdef
const struct tlv_definition abis_nm_att_tlvdef
GSM A-bis OML TLV parser definition.
Definition abis_nm.c:519
abis_nm_avail_name
const char * abis_nm_avail_name(uint8_t avail)
Get human-readable string for OML Availability State.
Definition abis_nm.c:662
abis_nm_test_name
const char * abis_nm_test_name(uint8_t test)
Get human-readable string for OML test.
Definition abis_nm.c:680
abis_nm_pchan4chcomb
enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb)
Obtain physical channel config for OML Channel Combination.
Definition abis_nm.c:1020
abis_nm_no_ack_nack
enum abis_nm_msgtype abis_nm_no_ack_nack[3]
messages without ACK/NACK
Definition abis_nm.c:52
abis_nm_dump_foh
const char * abis_nm_dump_foh(const struct abis_om_fom_hdr *foh)
Definition abis_nm.c:1039
abis_nm_dump_foh_c
char * abis_nm_dump_foh_c(void *ctx, const struct abis_om_fom_hdr *foh)
Definition abis_nm.c:1045
abis_nm_dump_foh_buf
char * abis_nm_dump_foh_buf(char *buf, size_t buf_len, const struct abis_om_fom_hdr *foh)
Definition abis_nm.c:1030
abis_nm_att_tlvdef_ipa
const struct tlv_definition abis_nm_att_tlvdef_ipa
GSM A-bis OML IPA TLV parser definition.
Definition abis_nm.c:470
abis_nm_reports
enum abis_nm_msgtype abis_nm_reports[4]
unidirectional messages from BTS to BSC
Definition abis_nm.c:44
abis_nm_msgtype
abis_nm_msgtype
OML Message Type (Section 9.1)
Definition gsm_12_21.h:82
abis_nm_nacks
enum abis_nm_msgtype abis_nm_nacks[33]
All NACKs (negative acknowledgements.
Definition abis_nm.c:73
abis_nm_sw_load_msgs
enum abis_nm_msgtype abis_nm_sw_load_msgs[9]
messages related to software load
Definition abis_nm.c:59
abis_nm_nack_cause_name
const char * abis_nm_nack_cause_name(uint8_t cause)
Get human-readable string for NACK cause.
Definition abis_nm.c:217
abis_nm_admin_name
static const char * abis_nm_admin_name(uint8_t admin)
Get human-readable string for OML administrative state.
Definition abis_nm.h:36
abis_nm_osmo_att_tlvdef
const struct tlv_definition abis_nm_osmo_att_tlvdef
org.osmocom GSM A-bis OML TLV parser definition
Definition abis_nm.c:590
abis_nm_chcomb4pchan
int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan)
Obtain OML Channel Combination for phnsical channel config.
Definition abis_nm.c:1011
abis_nm_opstate_name
const char * abis_nm_opstate_name(uint8_t os)
Get human-readable string for OML Operational State.
Definition abis_nm.c:633
abis_nm_severity_name
const char * abis_nm_severity_name(uint8_t cause)
Get human-readable string for perceived OML severity.
Definition abis_nm.c:250
abis_nm_osmo_magic
const char abis_nm_osmo_magic[12]
Definition abis_nm.c:41
abis_nm_adm_state_names
const struct value_string abis_nm_adm_state_names[]
Human-readable names for OML administrative state.
Definition abis_nm.c:686
abis_nm_event_type_name
const char * abis_nm_event_type_name(uint8_t cause)
Get human-readable string for OML event type.
Definition abis_nm.c:233
get_value_string
const char * get_value_string(const struct value_string *vs, uint32_t val)
cause
uint8_t cause
Definition gsm_04_08.h:2
gsm_12_21.h
gsm_utils.h
GSM utility functions, e.g.
gsm_phys_chan_config
gsm_phys_chan_config
Definition gsm_utils.h:217
abis_om_fom_hdr
OML FOM header.
Definition gsm_12_21.h:71
tlv_definition
Definition of All 256 IE / TLV.
Definition tlv.h:527
value_string
tlv.h