Base types
Types are used throughout the communication database. They convey how the data can be serialized to binary data and how that binary can be parsed back to its original value. They also define the size of the data in the binary format.
The database allows to define complex combined and nested types, but they must all define a base typ. These are the base type and their attributes currently supported:
Name |
Binary Size [Byte] |
Min Value |
Max Value |
C Type |
Python Type |
Description |
---|---|---|---|---|---|---|
int8 |
|
|
|
|
|
This is the mapping of the C type for small numbers. |
uint8 |
|
|
|
|
|
This is the mapping of the C type for small unsigned numbers. |
bool |
|
|
|
This is a type, that has only two values: |
||
int16 |
|
|
|
|
|
This is the mapping of the C type for small numbers. |
uint16 |
|
|
|
|
|
This is the mapping of the C type for small unsigned numbers. |
int32 |
|
|
|
|
|
This is the mapping of the C type for numbers. |
uint32 |
|
|
|
|
|
This is the mapping of the C type for unsigned numbers. |
int64 |
|
|
|
|
|
This is the mapping of the C type for large numbers. |
uint64 |
|
|
|
|
|
This is the mapping of the C type for large unsigned numbers. |
float |
|
|
|
|
|
A type for small floating point values. WARNING: This type does not have a standard size in C. If the size is not |
double |
|
|
|
|
|
A type for larger floating point values with higher precision. WARNING: This type does not have a standard size in C. If the size is not |
char |
|
|
|
This type represents a character. It is usually used as an array to represent a string. |
||
bytes |
|
|
|
This type is similar to the |