modm API documentation
modm::accessor::Flash< T > Class Template Reference

#include <modm/architecture/interface/accessor_flash.hpp>

Public Member Functions

 Flash (const T *addr=0)
 
template<typename U >
 Flash (const Flash< U > &rhs)
 
const T operator* () const
 
const T operator[] (size_t index) const
 
Flash & operator++ ()
 
Flash operator++ (int)
 
Flash & operator-- ()
 
Flash & operator-- (int)
 
Flash & operator+= (size_t rhs)
 
Flash & operator-= (size_t rhs)
 
bool isValid () const
 
const T * getPointer () const
 

Friends

template<typename U >
IOStreamoperator<< (IOStream &, const Flash< U > &)
 

Detailed Description

template<typename T>
class modm::accessor::Flash< T >

Pointer to flash memory

This template can mostly be used like a regular pointer, but operates on the flash memory rather than RAM. It will automatically read the data from flash when dereferenced.

Based on a implementation of Rolf Magnus, see http://www.mikrocontroller.net/topic/78610#656695

Author
Fabian Greif

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