daisy::GateIn¶
Module: LIBDAISY / HUMAN_INTERFACE / CONTROLS
Generic Class for handling gate inputs through GPIO. More...
#include <gatein.h>
Public Functions¶
Name | |
---|---|
GateIn() | |
~GateIn() | |
void | Init(Pin pin, bool invert =true) Initializes the gate input with specified hardware pin. |
void | Init(dsy_gpio_pin * pin_cfg, bool invert =true) Initializes the gate input with specified hardware pin. |
bool | Trig() |
bool | State() |
Detailed Description¶
Generic Class for handling gate inputs through GPIO.
Author: Stephen Hensley
Date: March 2020
Public Functions Documentation¶
function GateIn¶
GateIn Constructor
function ~GateIn¶
GateIn Destructor
function 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.
function 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.
- deprectated - this function still works, but will eventually be removed. It uses the old style dsy_gpio_pin in a way that it is not compatible with the the new Pin class.
function Trig¶
Return: True if the GPIO just transitioned.
Checks current state of gate input.
function State¶
Checks current state of gate input (no state required) read function is inverted because of suggested BJT input circuit
---¶
Updated on 2024-01-03 at 19:41:01 +0000