mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-w25qxxx.git
synced 2025-08-02 12:31:54 +00:00
Updated logger
This commit is contained in:
parent
8f6eb72ab4
commit
fde868c9db
@ -15,9 +15,9 @@ namespace sta
|
|||||||
/**
|
/**
|
||||||
* @brief Construct a new Logger object
|
* @brief Construct a new Logger object
|
||||||
*
|
*
|
||||||
* @param flash
|
* @param flash The flash chip to use for logging.
|
||||||
* @param startAddr
|
* @param startSector The index of the start sector (4096 bytes).
|
||||||
* @param endAddr
|
* @param endAddr The index of the end sector (4096 bytes).
|
||||||
*/
|
*/
|
||||||
Logger(W25Qxx * flash, uint32_t startSector, uint32_t endSector);
|
Logger(W25Qxx * flash, uint32_t startSector, uint32_t endSector);
|
||||||
|
|
||||||
@ -56,6 +56,12 @@ namespace sta
|
|||||||
*/
|
*/
|
||||||
size_t length();
|
size_t length();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Allows reading a single data point from the segment.
|
||||||
|
*
|
||||||
|
* @param idx The index of the segement.
|
||||||
|
* @return const T& The read data value.
|
||||||
|
*/
|
||||||
const T& operator[](std::size_t idx);
|
const T& operator[](std::size_t idx);
|
||||||
private:
|
private:
|
||||||
W25Qxx * flash_;
|
W25Qxx * flash_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user