|
USB EPROM/Flash Programmer
|
Data Bus Class. More...
#include <bus.hpp>
Public Member Functions | |
| DataBus () | |
| Constructor. More... | |
| DataBus (const DataBusConfig &config) | |
| Constructor. More... | |
| ~DataBus () | |
| Destructor. More... | |
| void | configure (const DataBusConfig &config) |
| Configures the Data Bus. More... | |
| DataBusConfig | getConfig () const |
| Gets the current configuration data. More... | |
| bool | writeByte (uint8_t value) |
| Writes a byte to the Data Bus. More... | |
| bool | writeWord (uint16_t value) |
| Writes a word to the Data Bus. More... | |
| uint8_t | readByte (void) |
| Reads a byte from the Data Bus. More... | |
| uint16_t | readWord (void) |
| Reads a word from the Data Bus. More... | |
Data Bus Class.
The purpose of this class is to provide the methods to manipulate a Data Bus Module.
| DataBus | ( | ) |
Constructor.
Assumes a default value for the configuration.
|
explicit |
Constructor.
| config | Configuration data. |
| ~DataBus | ( | ) |
Destructor.
| void configure | ( | const DataBusConfig & | config | ) |
Configures the Data Bus.
| config | Configuration data. |
| DataBusConfig getConfig | ( | ) | const |
Gets the current configuration data.
| bool writeByte | ( | uint8_t | value | ) |
Writes a byte to the Data Bus.
| value | Value to write. |
| bool writeWord | ( | uint16_t | value | ) |
Writes a word to the Data Bus.
| value | Value to write. |
| uint8_t readByte | ( | void | ) |
Reads a byte from the Data Bus.
| uint16_t readWord | ( | void | ) |
Reads a word from the Data Bus.