The following scalar data types are supported and can be used in read, typedef, and var elements. read and var also support arrays based on scalar data types.
Table with supported scalar types:
Data Type | Description |
---|---|
uint8_t | unsigned char (8-bit) |
int8_t | signed char (8-bit) |
uint16_t | unsigned short (16-bit) |
int16_t | signed short (16-bit) |
uint32_t | unsigned int (32-bit) |
int32_t | signed int (32-bit) |
uint64_t | unsigned long long (64-bit) |
int64_t | signed long long (64-bit) |
float | single precision floating number (32-bit) |
double | double precision floating number (64-bit) |
Code Example
Complex data types are defined using a typedef element and can be used in read, readlist, and var elements.
var and read define a single variable or array based on a data type.
readlist defines a list of variables or arrays. The first instance of <readlist name="var">
will define 'var', the following use of <readlist name="var">
will use the definition.