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