summaryrefslogtreecommitdiff
path: root/hapc_frame.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-11-09 20:01:37 +0100
committerHarald Welte <laforge@gnumonks.org>2015-11-09 20:01:37 +0100
commita915c1c944938f332e70aff8927f19b6e381eeea (patch)
treeeb9301d3b28df8b01d6f208780d9ef827dea688d /hapc_frame.c
initial checkin of some c-language code to parse Sierra Wireless HAPC
Diffstat (limited to 'hapc_frame.c')
-rw-r--r--hapc_frame.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/hapc_frame.c b/hapc_frame.c
new file mode 100644
index 0000000..1469b60
--- /dev/null
+++ b/hapc_frame.c
@@ -0,0 +1,49 @@
+#include <osmocom/core/utils.h>
+
+#include "hapc_frame.h"
+
+const struct value_string hapc_flow_names[30] = {
+ { HAPC_FLOW_STATUS, "status" },
+ { HAPC_FLOW_DEBUG, "debug" },
+ { HAPC_FLOW_INIT, "init" },
+ { HAPC_FLOW_WI2C, "wi2c" },
+ { HAPC_FLOW_TRACE, "trace" },
+ { HAPC_FLOW_RI2C, "ri2c" },
+ { HAPC_FLOW_MSG, "msg" },
+ { HAPC_FLOW_GDB, "gdb" },
+ { HAPC_FLOW_READ, "read" },
+ { HAPC_FLOW_READ_PACK, "read-pack" },
+ { HAPC_FLOW_WRITE, "write" },
+ { HAPC_FLOW_OBJECT, "object" },
+ { HAPC_FLOW_RESET, "reset" },
+ { HAPC_FLOW_PROTOCOL, "protocol" },
+ { HAPC_FLOW_EEPROM, "eeprom" },
+ { HAPC_FLOW_EEPROM2, "eeprom2" },
+ { HAPC_FLOW_FS, "filesystem" },
+ { HAPC_FLOW_MSG2, "msg2" },
+ { HAPC_FLOW_KBD, "kbd" },
+ { HAPC_FLOW_WATCH, "watch" },
+ { HAPC_FLOW_DIAG, "diag" },
+ { HAPC_FLOW_RTK, "rtk" },
+ { HAPC_FLOW_RPC2, "rpc2" },
+ { HAPC_FLOW_PROD, "prod" },
+ { HAPC_FLOW_RADIO, "radio" },
+ { HAPC_FLOW_AT, "at" },
+ { HAPC_FLOW_TRACE_TSTP, "trace" },
+ { HAPC_FLOW_DUMP, "dump" },
+ { HAPC_FLOW_ATENCAP, "atencap" },
+ { 0, NULL }
+};
+
+const struct value_string hapc_obj_status_names[9] = {
+ { HAPC_OBJ_READ_REQ, "read-req" },
+ { HAPC_OBJ_READ_RESP, "read-resp" },
+ { HAPC_OBJ_WRITE_REQ, "write-req" },
+ { HAPC_OBJ_WRITE_RESP, "write-resp" },
+ { HAPC_OBJ_ID_LIST_REQ, "id-list-req" },
+ { HAPC_OBJ_ID_LIST_RESP,"id-list-resp" },
+ { HAPC_OBJ_DEL_REQ, "delete-req" },
+ { HAPC_OBJ_DEL_RESP, "delete-resp" },
+ { 0, NULL }
+};
+
personal git repositories of Harald Welte. Your mileage may vary