|
| enum | State { kStart
, kTransmitting
, kStop
, kIdle
} |
|
Pins | pins |
|
State | state = kStop |
|
std::vector< bool > | data |
|
bool | pinModeSet = false |
|
bool | notified = true |
◆ dataReceived()
| bool ShiftRegisterIn::dataReceived |
( |
| ) |
|
Check whether there is data that has been shifted in and the transmission has completed.
- Returns
- true if the last transmission has completed and the data is ready to be accessed via getData().
◆ getData()
| const std::vector< bool > & ShiftRegisterIn::getData |
( |
| ) |
|
Get the data that has been shifted in. This is only guaranteed to contain the complete content of a transmission if it is called in the same frame as dataReceived() returns true.
- Returns
- the incoming data.
◆ process()
| void ShiftRegisterIn::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