sim_memory.h Source File
|
yasimavr
|
Loading...
Searching...
No Matches
sim_memory.h
Go to the documentation of this file.
142 MemorySectionManager(flash_addr_t page_count, flash_addr_t page_size, unsigned int section_count);
251inline uint8_t MemorySectionManager::access_flags(unsigned int section_src, unsigned int section_dst) const
unsigned int current_section() const
Return the section containing the current address.
Definition sim_memory.h:214
flash_addr_t page_size() const
Getter for the page size in bytes. (as given to the constructor)
Definition sim_memory.h:202
bool can_write(flash_addr_t addr) const
Return the write access flag for a given address.
Definition sim_memory.h:269
uint8_t address_access_flags(flash_addr_t addr) const
Return the access flags for a given address.
Definition sim_memory.h:275
uint8_t access_flags(unsigned int section_src, unsigned int section_dst) const
Definition sim_memory.h:251
AccessFlag
Generic Read/Write access flags.
Definition sim_memory.h:129
Signal & signal()
Getter for the signal of the section manager.
Definition sim_memory.h:281
bool can_read(flash_addr_t addr) const
Return the read access flag for a given address.
Definition sim_memory.h:263
unsigned int page_to_section(flash_addr_t page) const
Definition sim_memory.cpp:351
flash_addr_t section_end(unsigned int section) const
Return the section end address.
Definition sim_memory.h:226
flash_addr_t section_size(unsigned int section) const
Return the size in bytes of a section.
Definition sim_memory.h:235
unsigned int address_to_section(flash_addr_t addr) const
Return the section index containing the given memory address.
Definition sim_memory.h:241
flash_addr_t section_start(unsigned int section) const
Return the section start address.
Definition sim_memory.h:220
unsigned int section_count() const
Getter for the number of sections.
Definition sim_memory.h:208
SignalId
SignalID raised by the section manager.
Definition sim_memory.h:135
@ Signal_Leave
Raised when the current address leaves a section. data is set to the section index (integer)
Definition sim_memory.h:137
@ Signal_Enter
Raised when the current address enters a section. data is set to the section index (integer)
Definition sim_memory.h:139
flash_addr_t page_count() const
Getter for the page count. (as given to the constructor)
Definition sim_memory.h:196
Generated by