Gabriel Delgado / Mbed 2 deprecated MTi-1_uart

Dependencies:   mbed mbed-rtos Xbus

Revision:
22:3eab999c5076
Parent:
21:6015b8be3a00
Child:
30:27ff4335edec
diff -r 6015b8be3a00 -r 3eab999c5076 xbus/xbusmessage.h
--- a/xbus/xbusmessage.h	Tue May 19 16:59:11 2015 +0200
+++ b/xbus/xbusmessage.h	Tue May 19 16:59:53 2015 +0200
@@ -32,7 +32,10 @@
 	XMID_GotoConfigAck      = 0x31,
 	XMID_GotoMeasurement    = 0x10,
 	XMID_GotoMeasurementAck = 0x11,
-	XMID_MtData2            = 0x36
+	XMID_MtData2            = 0x36,
+	XMID_ReqOutputConfig    = 0xC0,
+	XMID_SetOutputConfig    = 0xC0,
+	XMID_OutputConfig       = 0xC1,
 };
 
 enum XsDataIdentifier
@@ -55,6 +58,12 @@
 	void* data;
 };
 
+struct OutputConfiguration
+{
+	enum XsDataIdentifier dtype;
+	uint16_t freq;
+};
+
 size_t XbusMessage_format(uint8_t* raw, struct XbusMessage const* message);
 bool XbusMessage_getDataItem(void* item, enum XsDataIdentifier id, struct XbusMessage const* message);
 char const* XbusMessage_dataDescription(enum XsDataIdentifier id);