Firmware-defined input numbers in the range [0,127] 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 uint128_t | booked () |
| | Get a bitmap of all booked input numbers.
|
| |
| static void | unbook (uint8_t inputNumber) |
| | Book an input number as in use.
|
| |
| static void | book (uint8_t inputNumber) |
| | Unbook.
|
| |
Firmware-defined input numbers in the range [0,127] or unspecified.
Definition at line 497 of file SimWheelTypes.hpp.
◆ InputNumber() [1/5]
| InputNumber::InputNumber |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ InputNumber() [2/5]
| InputNumber::InputNumber |
( |
uint8_t | value | ) |
|
|
inlineconstexpr |
Cast an integer to a input number.
- Parameters
-
| value | Input number in the range [0,127] |
Definition at line 511 of file SimWheelTypes.hpp.
◆ InputNumber() [3/5]
Assign an unspecified value.
- Parameters
-
| value | The unspecified value |
Definition at line 523 of file SimWheelTypes.hpp.
◆ InputNumber() [4/5]
Copy constructor (default)
- Parameters
-
| number | Input number to be copied |
◆ InputNumber() [5/5]
Move constructor (default)
- Parameters
-
| number | Input number to be moved |
◆ book() [1/2]
| void InputNumber::book |
( |
| ) |
const |
|
inline |
◆ book() [2/2]
| static void InputNumber::book |
( |
uint8_t | inputNumber | ) |
|
|
inlinestatic |
◆ bookAll()
| static void InputNumber::bookAll |
( |
| ) |
|
|
inlinestatic |
◆ booked() [1/3]
◆ 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 664 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 676 of file SimWheelTypes.hpp.
◆ operator uint128_t()
◆ operator uint8_t()
| InputNumber::operator uint8_t |
( |
| ) |
const |
|
inlineconstexpr |
Typecast this input number to an unsigned int.
- Returns
- uint8_t Input number
Definition at line 572 of file SimWheelTypes.hpp.
◆ operator!=()
| bool constexpr InputNumber::operator!= |
( |
const UNSPECIFIED | value | ) |
const |
|
inlineconstexprnoexcept |
Check if this input number was specified.
- Parameters
-
- Returns
- true If specified
-
false otherwise
Definition at line 596 of file SimWheelTypes.hpp.
◆ operator=() [1/2]
Copy-assignment (default)
- Parameters
-
| number | Input number to be copied |
- Returns
- constexpr InputNumer&
◆ operator=() [2/2]
Move-assignment (default)
- Parameters
-
| number | Input number to be moved |
◆ operator==()
| bool constexpr InputNumber::operator== |
( |
const UNSPECIFIED | value | ) |
const |
|
inlineconstexpr |
Check if this input number is unspecified.
- Parameters
-
- Returns
- true If unspecified
-
false otherwise
Definition at line 584 of file SimWheelTypes.hpp.
◆ unbook() [1/2]
| void InputNumber::unbook |
( |
| ) |
const |
|
inline |
◆ unbook() [2/2]
| static void InputNumber::unbook |
( |
uint8_t | inputNumber | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: