Skip to content

Struct SYN_DipSwitch

ClassList > SYN_DipSwitch

DIP Switch Context.

  • #include <syn_dipswitch.h>

Public Attributes

Type Name
bool active_low
bool changed
uint8_t count
uint32_t current_value
SYN_GPIO_Pin pins
uint32_t previous_value

Public Attributes Documentation

variable active_low

bool SYN_DipSwitch::active_low;

True if switch ON grounds input pin


variable changed

bool SYN_DipSwitch::changed;

True if value changed since last read


variable count

uint8_t SYN_DipSwitch::count;

Number of configured switch pins


variable current_value

uint32_t SYN_DipSwitch::current_value;

Packed binary integer value


variable pins

SYN_GPIO_Pin SYN_DipSwitch::pins[SYN_DIPSWITCH_MAX_PINS];

Array of GPIO pins


variable previous_value

uint32_t SYN_DipSwitch::previous_value;

Previously read value



The documentation for this class was generated from the following file src/syntropic/input/syn_dipswitch.h