![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Abstract base class for the target address or range of data. More...
#include <DataTarget.h>
Inheritance diagram for elftosb::DataTarget:
Collaboration diagram for elftosb::DataTarget:Classes | |
| struct | AddressRange |
| Simple structure that describes an addressed region of memory. More... | |
Public Member Functions | |
| DataTarget () | |
| Default constructor. | |
| virtual | ~DataTarget () |
| Destructor. | |
| virtual bool | isBounded () |
| Whether the target is just a single address or has an end to it. | |
| virtual uint32_t | getBeginAddress () |
| virtual uint32_t | getEndAddress () |
| virtual DataTarget::AddressRange | getRangeForSegment (DataSource &source, DataSource::Segment &segment)=0 |
| Return the address range for a segment of a data source. | |
| void | setSource (DataSource *source) |
| DataSource * | getSource () const |
Protected Attributes | |
| DataSource * | m_source |
| Corresponding data source for this target. | |
Abstract base class for the target address or range of data.
Targets at the most basic level have a single address, and potentially an address range. Unbounded targets have a beginning address but no specific end address, while bounded targets do have an end address.
Users of a data target can access the begin and end addresses directly. However, the most powerful way to use a target is with the getRangeForSegment() method. This method returns the target address range for a segment of a data source. The value of the resulting range can be completely dependent upon the segment's properties, those of its data source, and the type of data target.
| struct elftosb::DataTarget::AddressRange |