avr-classes
|
#include <shiftregister74hc164.h>
Public Member Functions | |
ShiftRegister74HC164 (OutputPin *pinDataA, OutputPin *pinDataB, OutputPin *pinClock, OutputPin *pinClear) | |
virtual void | setData (bool value) override |
void | setDataA (bool value) |
void | setDataB (bool value) |
virtual void | clock (void) override |
virtual void | clear (void) override |
Implementation of the 74HC164 serial in/parallel out shift register with two data inputs, clock and clear function. Each input of the hardware device can be connected using a OutputPin instance. For functions that are not required it is safe to pass a null pointer.
Pinout of device:
|
inline |
Constructor. Pins that are not used can be passed as null pointer.
pinDataA | Pin to be used for Data A input. |
pinDataB | Pin to be used for Data B input. |
pinClock | Pin to be used for clocking data into device. |
pinClear | Pin to be used to clear device. |
|
inlineoverridevirtual |
Toggle clear input.
Implements IntegratedCircuit::hasClear.
|
inlineoverridevirtual |
Toggle clock input.
Implements IntegratedCircuit::isClocked.
|
inlineoverridevirtual |
Sets data input of shift register to specified value.
value | Value of data input, true for HIGH level and false for LOW level. |
Implements OutputShiftRegister.
|
inline |
Sets data A input to specified value.
value | Value of data input, true for HIGH level and false for LOW level. |
|
inline |
Sets data B input to specified value.
value | Value of data input, true for HIGH level and false for LOW level. |