libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config Struct Reference

Detailed Description

template<size_t num_daisychained = 1, size_t num_parallel = 1>
struct daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config

Configuration Structure for handling the pin setting of the device

#include <sr_4021.h>

Public Attributes

Pin clk
 
Pin latch
 
Pin data [num_parallel]
 
uint32_t delay_ticks = 10
 

Member Data Documentation

◆ clk

template<size_t num_daisychained = 1, size_t num_parallel = 1>
Pin daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config::clk

Clock pin to attach to pin 10 of device(s)

◆ data

template<size_t num_daisychained = 1, size_t num_parallel = 1>
Pin daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config::data[num_parallel]

Data Pin(s)

◆ delay_ticks

template<size_t num_daisychained = 1, size_t num_parallel = 1>
uint32_t daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config::delay_ticks = 10

DelayTicks between these actions helps to ensure stable timing for the connected device(s). Each tick is approx. 4.16ns at CPUFreq 480MHz

◆ latch

template<size_t num_daisychained = 1, size_t num_parallel = 1>
Pin daisy::ShiftRegister4021< num_daisychained, num_parallel >::Config::latch

Latch pin to attach to pin 9 of device(s)


The documentation for this struct was generated from the following file: