#include <stdint.h>
#include <aroarfw/vendor.h>
Go to the source code of this file.
Define Documentation
Value:(((uint16_t)(((rstandard_t)(x)).subm.standardmsb) << (uint16_t)8) | \
((uint16_t)(((rstandard_t)(x)).subm.standardlsb)))
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.
Macro to access the Vendor ID from a standard ID.
- Parameters:
-
- Returns:
- The Vendor ID
Definition at line 74 of file caps.h.
Macro to access the standard version from a standard ID.
- Parameters:
-
- Returns:
- The standard version
Definition at line 79 of file caps.h.
Value:{.subm = { \
.vendor = (uint8_t)(rstdvendor_t)(_vendor), \
.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.