DeviceLib/ShiftRegister.h
Michael Mandl 9f8ad33723 Added a 74HC595 shift register
A abstract base class for 74HC595 shift registers without reset and
output-enable functionality.
2017-02-19 12:17:54 +01:00

18 lines
294 B
C++

#pragma once
#include <stdint.h>
class ShiftRegister
{
public:
void set(uint8_t value);
private:
virtual void setSerialPin(bool value) = 0;
virtual void setShiftPin(bool value) = 0;
virtual void setStoragePin(bool value) = 0;
void pulseShiftPin();
void pulseStoragePin();
};