Generic Class for handling gate inputs through GPIO.
More...
Generic Class for handling gate inputs through GPIO.
- Author
- Stephen Hensley
- Date
- March 2020
#include <gatein.h>
◆ GateIn()
daisy::GateIn::GateIn |
( |
| ) |
|
|
inline |
◆ ~GateIn()
daisy::GateIn::~GateIn |
( |
| ) |
|
|
inline |
◆ Init()
Initializes the gate input with specified hardware pin.
- Parameters
-
pin_cfg | pointer to pin to initialize |
invert | True if the pin state is HIGH when 0V is present at the input. False if input signal matches the pin state. |
- Note
- the default for invert is true because it is typical to use an inverting input circuit (e.g. a BJT circuit) for eurorack gate inputs.
◆ State()
bool daisy::GateIn::State |
( |
| ) |
|
|
inline |
Checks current state of gate input (no state required) read function is inverted because of suggested BJT input circuit
◆ Trig()
bool daisy::GateIn::Trig |
( |
| ) |
|
Checks current state of gate input.
- Returns
- True if the GPIO just transitioned.
The documentation for this class was generated from the following file: