|
STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
|
← STM32duino documentation
|
#include <EEPROM.h>
Public Member Functions | |
| EEPtr (const int idx) | |
| Construct a pointer to an EEPROM cell. | |
| operator int () const | |
| Implicit conversion to the index of the pointed EEPROM cell. | |
| EEPtr & | operator= (int in) |
| Set the index of the pointed EEPROM cell. | |
| bool | operator!= (const EEPtr &ptr) |
| Compare the index of this pointer with another pointer. | |
| EERef | operator* () |
| Dereference the pointer. | |
| EEPtr & | operator++ () |
| Prefix increment, move the pointer to the next EEPROM cell. | |
| EEPtr & | operator-- () |
| Prefix decrement, move the pointer to the previous EEPROM cell. | |
| EEPtr | operator++ (int) |
| Postfix increment, move the pointer to the next EEPROM cell. | |
| EEPtr | operator-- (int) |
| Postfix decrement, move the pointer to the previous EEPROM cell. | |
Public Attributes | |
| int | index |
| Index of the EEPROM cell this pointer points to. | |
EEPtr class.
This object is a bidirectional pointer to EEPROM cells represented by EERef objects. Just like a normal pointer type, this can be dereferenced and repositioned using increment/decrement operators.
|
inline |
Construct a pointer to an EEPROM cell.
| idx | Index of the EEPROM cell. |
|
inline |
Implicit conversion to the index of the pointed EEPROM cell.
|
inline |
Compare the index of this pointer with another pointer.
| ptr | Pointer to compare with. |
|
inline |
Dereference the pointer.
|
inline |
Prefix increment, move the pointer to the next EEPROM cell.
|
inline |
Postfix increment, move the pointer to the next EEPROM cell.
|
inline |
Prefix decrement, move the pointer to the previous EEPROM cell.
|
inline |
Postfix decrement, move the pointer to the previous EEPROM cell.
|
inline |
Set the index of the pointed EEPROM cell.
| in | New index. |