Arduino Helpers
master
Utility library for Arduino
src
AH
Hardware
ExtendedInputOutput
ShiftRegisterOut.hpp
Go to the documentation of this file.
1
/* ✔ */
2
3
#pragma once
4
5
#include "
ShiftRegisterOutBase.hpp
"
6
7
#include <
AH/Arduino-Wrapper.h
>
// MSBFIRST
8
9
BEGIN_AH_NAMESPACE
10
17
template
<u
int
16_t N>
18
class
ShiftRegisterOut
:
public
ShiftRegisterOutBase
<N> {
19
public
:
50
ShiftRegisterOut
(
pin_t
dataPin
,
pin_t
clockPin
,
pin_t
latchPin
,
51
BitOrder_t
bitOrder
= MSBFIRST);
52
58
void
begin
()
override
;
59
63
void
updateBufferedOutputs
()
override
;
64
65
private
:
66
const
pin_t
dataPin
;
67
const
pin_t
clockPin
;
68
};
69
70
END_AH_NAMESPACE
71
72
#include "
ShiftRegisterOut.ipp
"
BitOrder_t
uint8_t BitOrder_t
Definition:
Arduino-Hardware-Types.hpp:26
Arduino-Wrapper.h
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition:
Hardware-Types.hpp:14
END_AH_NAMESPACE
#define END_AH_NAMESPACE
Definition:
NamespaceSettings.hpp:14
BEGIN_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
Definition:
NamespaceSettings.hpp:11
ShiftRegisterOutBase.hpp
ShiftRegisterOut.ipp
ShiftRegisterOutBase
A class for serial-in/parallel-out shift registers, like the 74HC595.
Definition:
ShiftRegisterOutBase.hpp:23
ShiftRegisterOutBase::bitOrder
const BitOrder_t bitOrder
Definition:
ShiftRegisterOutBase.hpp:187
ShiftRegisterOutBase::latchPin
const pin_t latchPin
Definition:
ShiftRegisterOutBase.hpp:186
ShiftRegisterOut
A class for serial-in/parallel-out shift registers, like the 74HC595.
Definition:
ShiftRegisterOut.hpp:18
ShiftRegisterOut::updateBufferedOutputs
void updateBufferedOutputs() override
Write the state buffer to the physical outputs.
Definition:
ShiftRegisterOut.ipp:21
ShiftRegisterOut::clockPin
const pin_t clockPin
Definition:
ShiftRegisterOut.hpp:67
ShiftRegisterOut::dataPin
const pin_t dataPin
Definition:
ShiftRegisterOut.hpp:66
ShiftRegisterOut::ShiftRegisterOut
ShiftRegisterOut(pin_t dataPin, pin_t clockPin, pin_t latchPin, BitOrder_t bitOrder=MSBFIRST)
Create a new ShiftRegisterOut object with a shift register connected to the given pins,...
Definition:
ShiftRegisterOut.ipp:7
ShiftRegisterOut::begin
void begin() override
Initialize the shift register.
Definition:
ShiftRegisterOut.ipp:13
Generated by
1.9.4