#include <stdint.h>
#include <aroarfw/vendor.h>
Go to the source code of this file.
Data Structures |
union | rstandard_t |
| This is the base type for storing of standard IDs. More...
|
Macro Definition Documentation
#define rstandard_getstandard |
( |
|
x | ) |
|
Value:(((uint16_t)(((
rstandard_t)(x)).subm.standardmsb) << (uint16_t)8) | \
Macro to access the standard number from a standard ID in host native format.
- Parameters
-
- Returns
- The standard number
Definition at line 84 of file caps.h.
Macro to convert a standard ID into a host native 32 bit unsigned integer.
- Parameters
-
- Returns
- The Standard ID in native format
Definition at line 90 of file caps.h.
#define rstandard_getvendor |
( |
|
x | ) |
(((rstandard_t)(x)).subm.vendor) |
Macro to access the Vendor ID from a standard ID.
- Parameters
-
- Returns
- The Vendor ID
Definition at line 74 of file caps.h.
#define rstandard_getversion |
( |
|
x | ) |
(((rstandard_t)(x)).subm.version) |
Macro to access the standard version from a standard ID.
- Parameters
-
- Returns
- The standard version
Definition at line 79 of file caps.h.
#define RSTANDARD_INIT |
( |
|
_vendor, |
|
|
|
_standard, |
|
|
|
_version |
|
) |
| |
Value:{.subm = { \
.standardmsb = (uint8_t)(uint16_t)(((_standard) & (uint16_t)0xFF00) >> (uint16_t)8), \
.standardlsb = (uint8_t)(uint16_t)(((_standard) & (uint16_t)0x00FF)), \
.version = (uint8_t)(_version) \
} \
}
Macro to initialize a constant array of standard IDs.
- Parameters
-
_vendor | The Vendor ID (of type rstdvendor_t). |
_standard | The standard number (in native byte order uint16_t) |
_version | The standard version (as uint8_t) |
- Returns
- The Standard ID suitable for array initialization
Definition at line 63 of file caps.h.