Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos Xbus
Diff: xbus/xbusmessage.h
- Revision:
- 22:3eab999c5076
- Parent:
- 21:6015b8be3a00
- Child:
- 30:27ff4335edec
--- 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);