36template <
size_t num_daisychained = 1,
size_t num_parallel = 1>
70 for(
size_t i = 0;
i < kTotalStates;
i++)
106 inline bool State(
int index)
const {
return states_[index]; }
113 bool states_[kTotalStates];
General Purpose I/O control.
Definition gpio.h:22
void Write(bool state)
Changes the state of the GPIO hardware when configured as an OUTPUT.
bool Read()
Reads the state of the GPIO.
void Init()
Initialize the GPIO using the internal Config struct.
Definition leddriver.h:33
Device Driver for CD4021 shift register.
Definition sr_4021.h:38
const Config & GetConfig() const
Definition sr_4021.h:108
ShiftRegister4021()
Definition sr_4021.h:55
~ShiftRegister4021()
Definition sr_4021.h:56
bool State(int index) const
Definition sr_4021.h:106
void Update()
Definition sr_4021.h:77
void Init(const Config &cfg)
Definition sr_4021.h:59
static void DelayTicks(uint32_t delay_ticks)
Hardware defines and helpers for daisy field platform.
Definition index.h:2
representation of hardware port/pin combination
Definition daisy_core.h:193
Pin data[num_parallel]
Definition sr_4021.h:45
Pin latch
Definition sr_4021.h:44
uint32_t delay_ticks
Definition sr_4021.h:52
Pin clk
Definition sr_4021.h:43