Arduino GPIO implementation of the 3-wire transport.
More...
#include <SegTransport.h>
|
| | SegTransport3WireArduino (uint8_t data, uint8_t write, uint8_t read=-1) |
| | Create Arduino 3-wire transport.
|
| |
| void | set_cs (uint8_t chipselect, bool state) override |
| | Drive chip-select line.
|
| |
| void | write (uint16_t data, uint8_t bitCount) override |
| | Write bits to the 3-wire bus, MSB first.
|
| |
| virtual | ~SegTransport3Wire ()=default |
| |
Arduino GPIO implementation of the 3-wire transport.
◆ SegTransport3WireArduino()
| SegTransport3WireArduino::SegTransport3WireArduino |
( |
uint8_t |
data, |
|
|
uint8_t |
write, |
|
|
uint8_t |
read = -1 |
|
) |
| |
Create Arduino 3-wire transport.
- Parameters
-
| data | DATA pin |
| write | WR/clock pin |
| read | Optional RD pin, unused by current drivers |
◆ set_cs()
| void SegTransport3WireArduino::set_cs |
( |
uint8_t |
chipselect, |
|
|
bool |
state |
|
) |
| |
|
overridevirtual |
Drive chip-select line.
- Parameters
-
| chipselect | CS pin |
| state | Requested CS state |
Implements SegTransport3Wire.
◆ write()
| void SegTransport3WireArduino::write |
( |
uint16_t |
data, |
|
|
uint8_t |
bitCount |
|
) |
| |
|
overridevirtual |
Write bits to the 3-wire bus, MSB first.
- Parameters
-
| data | Value to write |
| bitCount | Number of valid bits in data |
Implements SegTransport3Wire.
◆ _data
| uint8_t SegTransport3WireArduino::_data |
|
private |
◆ _read
| uint8_t SegTransport3WireArduino::_read |
|
private |
◆ _write
| uint8_t SegTransport3WireArduino::_write |
|
private |
The documentation for this class was generated from the following files: