|
| enum | State { kStart
, kTransmitting
, kStop
, kIdle
} |
|
Pins | pins |
|
State | state = kStop |
|
std::vector< bool > | data |
|
bool | pinModeSet = false |
|
bool | notified = true |
◆ setClockPeriod()
| void ShiftRegisterOut::setClockPeriod |
( |
unsigned int | period | ) |
|
Set the period of the clock expressed in samples. The minimum value is 2.
◆ setData() [1/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. |
◆ setData() [2/2]
| void ShiftRegisterOut::setData |
( |
const bool * | dataBuf, |
|
|
unsigned int | length ) |
- Parameters
-
| length | the length of the data. |
◆ process() [1/2]
| void ShiftRegisterOut::process |
( |
BelaContext * | context | ) |
|
Shift I/O data for all the digital frames in context.
◆ process() [2/2]
| 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