libosmogsm 1.13.1.1-afb4 Osmocom GSM library

abis_nm.h
Go to the documentation of this file.
1#pragma once
2
3#include <osmocom/gsm/tlv.h>
4#include <osmocom/gsm/gsm_utils.h>
5#include <osmocom/gsm/protocol/gsm_12_21.h>
6
11 extern const char abis_nm_ipa_magic[13];
12 extern const char abis_nm_osmo_magic[12];
13
14 enum abis_nm_msgtype;
15 enum gsm_phys_chan_config;
16
17 extern const enum abis_nm_msgtype abis_nm_reports[4];
18 extern const enum abis_nm_msgtype abis_nm_no_ack_nack[3];
19 extern const enum abis_nm_msgtype abis_nm_sw_load_msgs[9];
20 extern const enum abis_nm_msgtype abis_nm_nacks[33];
21
22 extern const struct value_string abis_nm_msg_disc_names[];
23 extern const struct value_string abis_nm_obj_class_names[];
24 extern const struct value_string abis_nm_adm_state_names[];
25
26 const char *abis_nm_nack_cause_name(uint8_t cause);
27 const char *abis_nm_nack_name(uint8_t nack);
28 const char *abis_nm_event_type_name(uint8_t cause);
29 const char *abis_nm_severity_name(uint8_t cause);
30 extern const struct tlv_definition abis_nm_att_tlvdef;
31
32 const char *abis_nm_opstate_name(uint8_t os);
33 const char *abis_nm_avail_name(uint8_t avail);
34 const char *abis_nm_test_name(uint8_t test);
36 static inline const char *abis_nm_admin_name(uint8_t admin)
37{
38 return get_value_string(abis_nm_adm_state_names, admin);
39}
40
41 extern const struct tlv_definition abis_nm_osmo_att_tlvdef;
42 extern const struct tlv_definition abis_nm_att_tlvdef_ipa;
43
44 const char *abis_nm_dump_foh(const struct abis_om_fom_hdr *foh);
45 char *abis_nm_dump_foh_buf(char *buf, size_t buf_len, const struct abis_om_fom_hdr *foh);
46 char *abis_nm_dump_foh_c(void *ctx, const struct abis_om_fom_hdr *foh);
47
52#define abis_nm_debugp_foh(ss, foh) \
53 DEBUGP(ss, "%s ", abis_nm_dump_foh(foh))
54
55 int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan);
56 enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb);
57
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