window that allow the user to view all data going through the memory bus.
More...
#include <MemoryBusDebug.hpp>
window that allow the user to view all data going through the memory bus.
◆ MemoryBusDebug() [1/2]
◆ MemoryBusDebug() [2/2]
| ComSquare::Debugger::MemoryBusDebug::MemoryBusDebug |
( |
const MemoryBusDebug & |
| ) |
|
|
delete |
◆ ~MemoryBusDebug()
| ComSquare::Debugger::MemoryBusDebug::~MemoryBusDebug |
( |
| ) |
|
|
overridedefault |
◆ focus()
| void ComSquare::Debugger::MemoryBusDebug::focus |
( |
| ) |
|
Focus the debugger's window.
◆ getAccessor()
Helper function to get the components that is responsible of read/write at an address.
- Parameters
-
| addr | The address you want to look for. |
- Returns
- The components responsible for the address param or nullptr if none was found.
Implements ComSquare::Memory::IMemoryBus.
◆ operator=()
◆ peek()
| std::optional< uint8_t > ComSquare::Debugger::MemoryBusDebug::peek |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
This as the same purpose as a read but it does not change the open bus and won't throw an exception.
- Parameters
-
| addr | The address to read from. |
- Returns
- The value that the component returned for this address. If the address was mapped to ram, it simply returned the value. If the address was mapped to a register the component returned the register.
Implements ComSquare::Memory::IMemoryBus.
◆ peek_v()
| uint8_t ComSquare::Debugger::MemoryBusDebug::peek_v |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
This as the same purpose as a read but it does not change the open bus and won't throw an exception.
- Parameters
-
| addr | The address to read from. |
- Returns
- The value that the component returned for this address. If the address was mapped to ram, it simply returned the value. If the address was mapped to a register the component returned the register.
- Note
- If the value address is not mapped, 0 is returned instead of nullopt.
Implements ComSquare::Memory::IMemoryBus.
◆ read()
| uint8_t ComSquare::Debugger::MemoryBusDebug::read |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
Read data at a global address. This form allow read to be silenced.
- Parameters
-
| addr | The address to read from. |
- Exceptions
-
| InvalidAddress | If the address is not mapped to the bus, this exception is thrown. |
- Returns
- The value that the component returned for this address. If the address was mapped to ram, it simply returned the value. If the address was mapped to a register the component returned the register.
Implements ComSquare::Memory::IMemoryBus.
◆ write()
| void ComSquare::Debugger::MemoryBusDebug::write |
( |
uint24_t |
addr, |
|
|
uint8_t |
data |
|
) |
| |
|
overridevirtual |
◆ _bus
A reference to the underlying bus..
◆ _model
| BusLogModel ComSquare::Debugger::MemoryBusDebug::_model |
|
private |
The Log visualizer model for QT.
◆ _proxy
A QT proxy to filter the logs.
◆ _ui
| Ui::BusView ComSquare::Debugger::MemoryBusDebug::_ui |
|
private |
A widget that contain the whole UI.
◆ _window
The QT window for this debugger.
The documentation for this class was generated from the following files: