radio_tool 0.2.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
radio_tool::flash::FlashSector Class Reference
Collaboration diagram for radio_tool::flash::FlashSector:
Collaboration graph

Public Member Functions

 FlashSector (const uint16_t &idx, const uint32_t &sector_start, const uint32_t &sector_size)
 
constexpr auto End () const -> uint32_t
 
constexpr auto InSector (const uint32_t &addr) const -> bool
 
auto ToString () const -> const std::string
 

Public Attributes

const uint16_t index
 
const uint32_t start
 
const uint32_t size
 

Detailed Description

Definition at line 30 of file flash.hpp.

Constructor & Destructor Documentation

◆ FlashSector()

radio_tool::flash::FlashSector::FlashSector ( const uint16_t &  idx,
const uint32_t &  sector_start,
const uint32_t &  sector_size 
)
inline

Definition at line 33 of file flash.hpp.

Member Function Documentation

◆ End()

constexpr auto radio_tool::flash::FlashSector::End ( ) const -> uint32_t
inlineconstexpr

End address of this flash sector

Definition at line 54 of file flash.hpp.

Here is the caller graph for this function:

◆ InSector()

constexpr auto radio_tool::flash::FlashSector::InSector ( const uint32_t &  addr) const -> bool
inlineconstexpr

If this addr is inside this sector

Definition at line 62 of file flash.hpp.

Here is the call graph for this function:

◆ ToString()

auto radio_tool::flash::FlashSector::ToString ( ) const -> const std::string
inline

Get a string describing this sector

Definition at line 70 of file flash.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ index

const uint16_t radio_tool::flash::FlashSector::index

Flash sector index (0-N usually)

Definition at line 39 of file flash.hpp.

◆ size

const uint32_t radio_tool::flash::FlashSector::size

Size of this flash sector

Definition at line 49 of file flash.hpp.

◆ start

const uint32_t radio_tool::flash::FlashSector::start

Start address of this flash sector

Definition at line 44 of file flash.hpp.


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