jolly has uploaded this change for review.

View Change

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, 43 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/57/35557/1
diff --git a/include/osmocom/e1d/proto.h b/include/osmocom/e1d/proto.h
index 005da61..46e655f 100644
--- a/include/osmocom/e1d/proto.h
+++ b/include/osmocom/e1d/proto.h
@@ -56,6 +56,32 @@
* + 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 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..f178493 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -41,6 +41,14 @@
{ E1DP_CMD_LINE_QUERY, "CMD_LINE_QUERY" },
{ E1DP_CMD_TS_QUERY, "CMD_TS_QUERY" },
{ E1DP_CMD_TS_OPEN, "CMD_TS_OPEN" },
+ { E1DP_CMD_SABITS, "E1DP_CMD_SABITS" },
+ { E1DP_EVT_LOS_ON, "E1DP_EVT_LOS_ON" },
+ { E1DP_EVT_LOS_OFF, "E1DP_EVT_LOS_OFF" },
+ { E1DP_EVT_AIS_ON, "E1DP_EVT_AIS_ON" },
+ { E1DP_EVT_AIS_OFF, "E1DP_EVT_AIS_OFF" },
+ { E1DP_EVT_RAI_ON, "E1DP_EVT_RAI_ON" },
+ { E1DP_EVT_RAI_OFF, "E1DP_EVT_RAI_OFF" },
+ { E1DP_EVT_SABITS, "E1DP_EVT_SABITS" },
{ E1DP_EVT_TYPE, "EVT_TYPE" },
{ E1DP_RESP_TYPE, "RESP_TYPE" },
{ E1DP_ERR_TYPE, "ERR_TYPE" },

To view, visit change 35557. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I4c20ec19fa3d9cce82c8199b38d173aa272fb07d
Gerrit-Change-Number: 35557
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>
Gerrit-MessageType: newchange