diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2024-01-14 14:24:14 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2024-01-19 18:23:01 +0100 |
commit | 69459b0a03a6937a6b1e76d22a4291042f1e076c (patch) | |
tree | 71647bb6ad7f1af729c0dce131c00755908506dd | |
parent | 8d65c3ff4def5b1373c9ea10fdf7b96b046487f0 (diff) |
Add new protocol command and events for Sa bits and line states
Change-Id: I4c20ec19fa3d9cce82c8199b38d173aa272fb07d
-rw-r--r-- | include/osmocom/e1d/proto.h | 32 | ||||
-rw-r--r-- | src/proto.c | 11 |
2 files changed, 42 insertions, 1 deletions
diff --git a/include/osmocom/e1d/proto.h b/include/osmocom/e1d/proto.h index 005da61..6481b62 100644 --- a/include/osmocom/e1d/proto.h +++ b/include/osmocom/e1d/proto.h @@ -56,6 +56,38 @@ enum osmo_e1dp_msg_type { * + message with the file descriptor */ E1DP_CMD_TS_OPEN = 0x04, + /*! Send Sa bits to line. + * filter: intf (required), line (required), ts n/a; in: uint8_t; */ + E1DP_CMD_SABITS = 0x05, + + /*! Received signal loss from interface. */ + E1DP_EVT_LOS_ON = 0x40, + + /*! Ceased signal loss from interface. */ + E1DP_EVT_LOS_OFF = 0x41, + + /*! Received alarm indication signal from interface. */ + E1DP_EVT_AIS_ON = 0x42, + + /*! Ceased alarm indication signal from interface. */ + E1DP_EVT_AIS_OFF = 0x43, + + /*! Received remote alarm indication from interface. */ + E1DP_EVT_RAI_ON = 0x44, + + /*! Ceased remote alarm indication from interface. */ + E1DP_EVT_RAI_OFF = 0x45, + + /*! Received frame loss from interface. */ + E1DP_EVT_LOF_ON = 0x46, + + /*! Ceased frame loss from interface. */ + E1DP_EVT_LOF_OFF = 0x47, + + /*! Received Sa bits from interface. + * out: uint8_t; */ + E1DP_EVT_SABITS = 0x7f, + /*! Message is an event */ E1DP_EVT_TYPE = 0x40, /*! Message is a response */ diff --git a/src/proto.c b/src/proto.c index 479175a..b7e50bc 100644 --- a/src/proto.c +++ b/src/proto.c @@ -41,7 +41,16 @@ const struct value_string osmo_e1dp_msg_type_names[] = { { E1DP_CMD_LINE_QUERY, "CMD_LINE_QUERY" }, { E1DP_CMD_TS_QUERY, "CMD_TS_QUERY" }, { E1DP_CMD_TS_OPEN, "CMD_TS_OPEN" }, - { E1DP_EVT_TYPE, "EVT_TYPE" }, + { E1DP_CMD_SABITS, "CMD_SABITS" }, + { E1DP_EVT_LOS_ON, "EVT_LOS_ON" }, + { E1DP_EVT_LOS_OFF, "EVT_LOS_OFF" }, + { E1DP_EVT_AIS_ON, "EVT_AIS_ON" }, + { E1DP_EVT_AIS_OFF, "EVT_AIS_OFF" }, + { E1DP_EVT_RAI_ON, "EVT_RAI_ON" }, + { E1DP_EVT_RAI_OFF, "EVT_RAI_OFF" }, + { E1DP_EVT_LOF_ON, "EVT_LOF_ON" }, + { E1DP_EVT_LOF_OFF, "EVT_LOF_OFF" }, + { E1DP_EVT_SABITS, "EVT_SABITS" }, { E1DP_RESP_TYPE, "RESP_TYPE" }, { E1DP_ERR_TYPE, "ERR_TYPE" }, { 0, NULL } |