Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
28:0376b97b4b55
Parent:
25:aac250164497
Child:
29:8e7c5c1e9aab
--- a/src/d7a_sys.cpp	Fri Apr 01 10:55:30 2016 +0000
+++ b/src/d7a_sys.cpp	Mon Apr 04 14:00:28 2016 +0000
@@ -35,6 +35,21 @@
     return (evt.status == osEventMessage)? (d7a_com_rx_msg_t*)evt.value.p : NULL;
 }
 
+void d7a_sys_tlev(uint8_t mod, uint16_t lev)
+{
+    FPRINT("\r\n");
+    d7a_com_tx_msg_t msg;
+    uint8_t buf[3];
+    buf[0] = mod;
+    buf[1] = (uint8_t)(lev << 8);
+    buf[2] = (uint8_t)(lev & 0x00FF);
+    msg.id = KAL_COM_FLOW_SYS_TLEV;
+    msg.pbuf = buf;
+    msg.plen = 3;
+    msg.alen = 0;
+    d7a_com_send_msg(&msg);
+}
+
 void d7a_sys_thread(const void *p)
 {
     FPRINT("\r\n");