Firmware-defined input numbers in the range [0,63] or unspecified.
More...
#include <SimWheelTypes.hpp>
|
| static void | bookAll () |
| | Book all input numbers as in use (for testing)
|
| |
| static bool | booked (InputNumber inputNumber) |
| | Check if an input number is booked.
|
| |
| static bool | booked (uint8_t inputNumber) |
| | Check if an input number is booked.
|
| |
| static uint64_t | booked () |
| | Get a bitmap of all booked input numbers.
|
| |
Firmware-defined input numbers in the range [0,63] or unspecified.
Definition at line 251 of file SimWheelTypes.hpp.
◆ InputNumber() [1/4]
| InputNumber::InputNumber |
( |
| ) |
|
|
inline |
◆ InputNumber() [2/4]
| InputNumber::InputNumber |
( |
uint8_t | value | ) |
|
|
inline |
Cast an integer to a input number.
- Parameters
-
| value | Input number in the range [0,63] |
Definition at line 265 of file SimWheelTypes.hpp.
◆ InputNumber() [3/4]
Assign an unspecified value.
- Parameters
-
| value | The unspecified value |
Definition at line 277 of file SimWheelTypes.hpp.
◆ InputNumber() [4/4]
Copy an input number.
- Parameters
-
| number | Input number to be copied |
Definition at line 287 of file SimWheelTypes.hpp.
◆ book()
| void InputNumber::book |
( |
| ) |
const |
|
inline |
◆ bookAll()
| static void InputNumber::bookAll |
( |
| ) |
|
|
inlinestatic |
◆ booked() [1/3]
| static uint64_t InputNumber::booked |
( |
| ) |
|
|
inlinestatic |
Get a bitmap of all booked input numbers.
- Returns
- uint64_t A bitmap
Definition at line 420 of file SimWheelTypes.hpp.
◆ booked() [2/3]
| static bool InputNumber::booked |
( |
InputNumber | inputNumber | ) |
|
|
inlinestatic |
Check if an input number is booked.
- Parameters
-
| inputNumber | Input number to check |
- Returns
- true If booked
-
false If not booked
Definition at line 394 of file SimWheelTypes.hpp.
◆ booked() [3/3]
| static bool InputNumber::booked |
( |
uint8_t | inputNumber | ) |
|
|
inlinestatic |
Check if an input number is booked.
- Parameters
-
| inputNumber | Input number to check |
- Returns
- true If booked
-
false If not booked
Definition at line 406 of file SimWheelTypes.hpp.
◆ operator uint64_t()
| InputNumber::operator uint64_t |
( |
| ) |
const |
|
inlineexplicit |
Typecast this input number to a 64-bit bitmap.
- Returns
- A bitmap
Definition at line 297 of file SimWheelTypes.hpp.
◆ operator uint8_t()
| InputNumber::operator uint8_t |
( |
| ) |
const |
|
inline |
Typecast this input number to an unsigned int.
- Returns
- uint8_t Input number
Definition at line 310 of file SimWheelTypes.hpp.
◆ operator!=()
| bool InputNumber::operator!= |
( |
const UNSPECIFIED | value | ) |
const |
|
inline |
Check if this input number was specified.
- Parameters
-
- Returns
- true If specified
-
false otherwise
Definition at line 334 of file SimWheelTypes.hpp.
◆ operator==()
| bool InputNumber::operator== |
( |
const UNSPECIFIED | value | ) |
const |
|
inline |
Check if this input number is unspecified.
- Parameters
-
- Returns
- true If unspecified
-
false otherwise
Definition at line 325 of file SimWheelTypes.hpp.
◆ unbook()
| void InputNumber::unbook |
( |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following file: