[M] Change in osmo-e1d[master]: Add new protocol command and events for Sa bits and line states
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/35557?usp=email ) ( 3 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: Add new protocol command and events for Sa bits and line states ...................................................................... Add new protocol command and events for Sa bits and line states Change-Id: I4c20ec19fa3d9cce82c8199b38d173aa272fb07d --- M include/osmocom/e1d/proto.h M src/proto.c 2 files changed, 51 insertions(+), 1 deletion(-) Approvals: laforge: Looks good to me, approved tnt: Looks good to me, but someone else must approve Jenkins Builder: Verified 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 @@ * + 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 @@ { 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 } -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/35557?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I4c20ec19fa3d9cce82c8199b38d173aa272fb07d Gerrit-Change-Number: 35557 Gerrit-PatchSet: 4 Gerrit-Owner: jolly <andreas@eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: tnt <tnt@246tNt.com> Gerrit-MessageType: merged
participants (1)
-
laforge