Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::VirtualMemorySpace::DataElement Struct Reference

We keep one of these for each variable that was declared. More...

Public Member Functions

 DataElement (address_t address, address_t size, ReadFunction read_f, WriteFunction write_f)
 

Public Attributes

address_t address_
 Base offset of this variable (first repeat only).
 
address_t size_
 Size of this variable.
 
WriteFunction writeImpl_
 Function that will be called for writes.
 
ReadFunction readImpl_
 Function that will be called for reads.
 

Detailed Description

We keep one of these for each variable that was declared.

Definition at line 334 of file VirtualMemorySpace.hxx.

Constructor & Destructor Documentation

◆ DataElement()

openlcb::VirtualMemorySpace::DataElement::DataElement ( address_t  address,
address_t  size,
ReadFunction  read_f,
WriteFunction  write_f 
)
inline

Definition at line 336 of file VirtualMemorySpace.hxx.

Member Data Documentation

◆ address_

address_t openlcb::VirtualMemorySpace::DataElement::address_

Base offset of this variable (first repeat only).

Definition at line 345 of file VirtualMemorySpace.hxx.

◆ readImpl_

ReadFunction openlcb::VirtualMemorySpace::DataElement::readImpl_

Function that will be called for reads.

Definition at line 352 of file VirtualMemorySpace.hxx.

◆ size_

address_t openlcb::VirtualMemorySpace::DataElement::size_

Size of this variable.

This is how many bytes of address space this variable occupies.

Definition at line 348 of file VirtualMemorySpace.hxx.

◆ writeImpl_

WriteFunction openlcb::VirtualMemorySpace::DataElement::writeImpl_

Function that will be called for writes.

Definition at line 350 of file VirtualMemorySpace.hxx.


The documentation for this struct was generated from the following file: