Skip to content

Class daisy::GateIn

ClassList > daisy > GateIn

Generic Class for handling gate inputs through GPIO .More...

  • #include <gatein.h>

Public Functions

Type Name
GateIn ()
void Init (Pin pin, bool invert=true)
Initializes the gate input with specified hardware pin.
bool State ()
bool Trig ()
~GateIn ()

Detailed Description

Author:

Stephen Hensley

Date:

March 2020

Public Functions Documentation

function GateIn

inline daisy::GateIn::GateIn () 

GateIn Constructor


function Init

Initializes the gate input with specified hardware pin.

void daisy::GateIn::Init (
    Pin pin,
    bool invert=true
) 

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 State

inline bool daisy::GateIn::State () 

Checks current state of gate input (no state required) read function is inverted because of suggested BJT input circuit


function Trig

bool daisy::GateIn::Trig () 

Checks current state of gate input.

Returns:

True if the GPIO just transitioned.


function ~GateIn

inline daisy::GateIn::~GateIn () 

GateIn Destructor



The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/gatein.h