Digital Shift Registers. More...
Digital Shift Registers.
Classes | |
class | daisy::ShiftRegister4021< num_daisychained, num_parallel > |
Device Driver for CD4021 shift register. More... | |
class | daisy::ShiftRegister595 |
Device Driver for 8-bit shift register. CD74HC595 - 8-bit serial to parallel output shift. More... | |
Enumerations | |
enum | daisy::ShiftRegister595::Pins { daisy::ShiftRegister595::PIN_LATCH , daisy::ShiftRegister595::PIN_CLK , daisy::ShiftRegister595::PIN_DATA , daisy::ShiftRegister595::NUM_PINS } |
The following pins correspond to the hardware connections to the 595.
Enumerator | |
---|---|
PIN_LATCH | |
PIN_CLK | LATCH corresonds to Pin 12 "RCLK" |
PIN_DATA | CLK corresponds to Pin 11 "SRCLK" |
NUM_PINS | DATA corresponds to Pin 14 "SER" |
Sets the state of the specified output.
idx | The index starts with QA on the first device and ends with QH on the last device. |
state | A true state will set the output HIGH, while a false state will set the output LOW. |
|
inline |
void daisy::ShiftRegister595::Write | ( | ) |
Writes the states of shift register out to the connected devices.
|
inline |