|
enum | State { kStart,
kTransmitting,
kStop,
kIdle
} |
|
Pins | pins |
|
State | state = kStop |
|
std::vector< bool > | data |
|
bool | pinModeSet = false |
|
bool | notified = true |
|
void ShiftRegisterOut::setClockPeriod |
( |
unsigned int |
period | ) |
|
Set the period of the clock expressed in samples. The minimum value is 2.
void ShiftRegisterOut::setData |
( |
const std::vector< bool > & |
dataBuf | ) |
|
Set new data bits to be shifted out. Data willl be shifted out during the subsequent calls to process(), until dataSent() returns true
. If the size of the data passed in is larger than maxSize
was, the internal buffer holding a copy of the data will be reallocated, which is not a real-time safe operation.
- Parameters
-
dataBuf | the data to be shifted out. |
- Examples:
- Sensors/shift-register-out/render.cpp.
void ShiftRegisterOut::setData |
( |
const bool * |
dataBuf, |
|
|
unsigned int |
length |
|
) |
| |
- Parameters
-
length | the length of the data. |
void ShiftRegisterOut::process |
( |
BelaContext * |
context | ) |
|
void ShiftRegisterOut::process |
( |
BelaContext * |
context, |
|
|
unsigned int |
n |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files:
- libraries/ShiftRegister/ShiftRegister.h
- libraries/ShiftRegister/ShiftRegister.cpp