![]() |
GM6000 Digital Heater Controller Build: 20 (Branch = develop)
SDX-1330
|
This concrete class provides a 'null' implementation of the NV Storage interface. More...
This concrete class provides a 'null' implementation of the NV Storage interface.
#include <Null.h>
Public Member Functions | |
| Null (size_t numPages=OPTION_DRIVER_NV_NULL_PAGE_SIZE, size_t bytesPerPage=OPTION_DRIVER_NV_NULL_TOTAL_PAGES) | |
| Constructor. | |
| bool | start () noexcept |
| See Driver::NV::Api. | |
| void | stop () noexcept |
| See Driver::NV::Api. | |
| bool | write (size_t dstOffset, const void *srcData, size_t numBytesToWrite) noexcept |
| See Driver::NV::Api. Always successful. | |
| bool | read (size_t srcOffset, void *dstData, size_t numBytesToRead) noexcept |
| See Driver::NV::Api. Always successful. Sets the returned data to all zeros. | |
| size_t | getNumPages () const noexcept |
| See Driver::NV::Api. | |
| size_t | getPageSize () const noexcept |
| See Driver::NV::Api. | |
Public Member Functions inherited from Driver::NV::Api | |
| virtual size_t | getTotalSize () const noexcept |
| The method that returns the total storage size in bytes. | |
| virtual | ~Api () |
| Virtual destructor. | |
Protected Attributes | |
| size_t | m_numPages |
| Number of pages. | |
| size_t | m_bytesPerPage |
| Bytes per page. | |
|
inline |
Constructor.
|
inlinevirtualnoexcept |
See Driver::NV::Api.
Implements Driver::NV::Api.
|
inlinevirtualnoexcept |
See Driver::NV::Api.
Implements Driver::NV::Api.
|
inlinevirtualnoexcept |
See Driver::NV::Api. Always successful. Sets the returned data to all zeros.
Implements Driver::NV::Api.
|
inlinevirtualnoexcept |
See Driver::NV::Api.
Implements Driver::NV::Api.
|
inlinevirtualnoexcept |
See Driver::NV::Api.
Implements Driver::NV::Api.
|
inlinevirtualnoexcept |
See Driver::NV::Api. Always successful.
Implements Driver::NV::Api.
|
protected |
Bytes per page.
|
protected |
Number of pages.