|
enum | InputState { STATE_UNCHANGED
, STATE_RISING
, STATE_FALLING
} |
| Enum constants for clk input rising/falling state.
|
|
|
void | Init (uint8_t cv_pin) |
| Initializes a CV Input object.
|
|
void | Process () |
| Read the state of the cv input.
|
|
InputState | State () |
| Get the current input state of the digital input.
|
|
bool | On () |
| Current cv state represented as a bool.
|
|
bool | Read () |
| Read live pin state as a bool.
|
|
◆ Init()
void modulove::DigitalInput::Init |
( |
uint8_t |
cv_pin | ) |
|
|
inline |
Initializes a CV Input object.
- Parameters
-
cv_pin | gpio pin for the cv output. |
◆ On()
bool modulove::DigitalInput::On |
( |
| ) |
|
|
inline |
Current cv state represented as a bool.
- Returns
- true if cv signal went high this loop.
-
false if cv signal went high this loop.
◆ Read()
bool modulove::DigitalInput::Read |
( |
| ) |
|
|
inline |
Read live pin state as a bool.
- Returns
- true if cv signal is high.
-
false if cv signal is low.
◆ State()
Get the current input state of the digital input.
- Returns
- InputState
The documentation for this class was generated from the following file: