Basic implementation of Xbus message parsing and generation for embedded processors. The code has no dependencies and should also work for other MCU architectures than ARM provided a C99 compiler is available.

Dependents:   MTi-1_example_LPC1768 MTi-1_rikbeun MTi-1_example MTi-1_example ... more

Embed: (wiki syntax)

« Back to documentation index

XbusMessage Struct Reference

XbusMessage Struct Reference

An Xbus message structure with optional payload. More...

#include <xbusmessage.h>

Data Fields

enum XsMessageId mid
 The message ID of the message.
uint16_t length
 The length of the payload.
void * data
 Pointer to the payload data.

Detailed Description

An Xbus message structure with optional payload.

Definition at line 79 of file xbusmessage.h.


Field Documentation

void* data

Pointer to the payload data.

Definition at line 92 of file xbusmessage.h.

uint16_t length

The length of the payload.

Note:
The meaning of the length is message dependent. For example, for XMID_OutputConfig messages it is the number of OutputConfiguration elements in the configuration array.

Definition at line 90 of file xbusmessage.h.

The message ID of the message.

Definition at line 82 of file xbusmessage.h.