|
USB EPROM/Flash Programmer
|
Control Bus Class. More...
#include <bus.hpp>
Public Member Functions | |
| CtrlBus () | |
| Constructor. More... | |
| CtrlBus (const CtrlBusConfig &config) | |
| Constructor. More... | |
| ~CtrlBus () | |
| Destructor. More... | |
| void | configure (const CtrlBusConfig &config) |
| Configures the Control Bus. More... | |
| CtrlBusConfig | getConfig () const |
| Gets the current configuration data. More... | |
| void | setCE (bool value=true) |
| Sets the CE pin. More... | |
| void | setOE (bool value=true) |
| Sets the OE pin. More... | |
| void | setWE (bool value=true) |
| Sets the WE pin. More... | |
Control Bus Class.
The purpose of this class is to provide the methods to manipulate a Control Bus Module.
| CtrlBus | ( | ) |
Constructor.
Assumes a default value for the configuration.
|
explicit |
Constructor.
| config | Configuration data. |
| ~CtrlBus | ( | ) |
Destructor.
| void configure | ( | const CtrlBusConfig & | config | ) |
Configures the Control Bus.
| config | Configuration data. |
| CtrlBusConfig getConfig | ( | ) | const |
Gets the current configuration data.
| void setCE | ( | bool | value = true | ) |
Sets the CE pin.
| value | Value to set. |
| void setOE | ( | bool | value = true | ) |
Sets the OE pin.
| value | Value to set. |
| void setWE | ( | bool | value = true | ) |
Sets the WE pin.
| value | Value to set. |