#include <stdint.h>
#include <aroarfw/vendor.h>
#include <aroarfw/types.h>
Go to the source code of this file.
◆ rstandard_getstandard
#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 77 of file caps.h.
◆ rstandard_getu32hbo
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 83 of file caps.h.
◆ rstandard_getvendor
#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 67 of file caps.h.
◆ rstandard_getversion
#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 72 of file caps.h.
◆ RSTANDARD_INIT
#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 56 of file caps.h.