Arduino Mock methods for Arduino library EEPROM.
More...
#include <MockEEPROM.h>
|
static uint16_t | read (uint16_t address) |
| Mocked EEPROM read. More...
|
|
static void | write (uint16_t address, uint16_t value) |
| Mocked EEPROM write returns without action. More...
|
|
static void | update (uint16_t address, uint16_t value) |
| Mocked EEPROM update returns without action. More...
|
|
static uint16_t | get (uint16_t address, uint16_t data) |
| Mocked EEPROM get. More...
|
|
static void | put (uint16_t address, uint16_t data) |
| Mocked EEPROM put. More...
|
|
static uint16_t | length (void) |
| Mocked EEPROM length. More...
|
|
static uint16_t | begin (void) |
| Mocked EEPROM begin. More...
|
|
static uint16_t | end (void) |
| Mocked EEPROM end. More...
|
|
Arduino Mock methods for Arduino library EEPROM.
◆ read()
static uint16_t mock::MockEEPROM::read |
( |
uint16_t |
address | ) |
|
|
inlinestatic |
Mocked EEPROM read.
- Parameters
-
address | Read a byte from EEPROM address. |
- Returns
- The mocked read() value, i.e., zero.
◆ write()
static void mock::MockEEPROM::write |
( |
uint16_t |
address, |
|
|
uint16_t |
value |
|
) |
| |
|
inlinestatic |
Mocked EEPROM write returns without action.
- Parameters
-
address | The EEPROM address to write a byte. |
value | The value (byte) to write at that address. |
◆ update()
static void mock::MockEEPROM::update |
( |
uint16_t |
address, |
|
|
uint16_t |
value |
|
) |
| |
|
inlinestatic |
Mocked EEPROM update returns without action.
- Parameters
-
address | The EEPROM address to write a byte. |
value | The value to write (byte), if different at that address. |
◆ get()
static uint16_t mock::MockEEPROM::get |
( |
uint16_t |
address, |
|
|
uint16_t |
data |
|
) |
| |
|
inlinestatic |
Mocked EEPROM get.
- Parameters
-
address | Read from EEPROM address. |
data | Read data from EEPROM address. |
- Returns
- The mocked get() value, i.e., zero.
◆ put()
static void mock::MockEEPROM::put |
( |
uint16_t |
address, |
|
|
uint16_t |
data |
|
) |
| |
|
inlinestatic |
Mocked EEPROM put.
- Parameters
-
address | The EEPROM address to write a byte. |
data | Write data to EEPROM address. |
◆ length()
static uint16_t mock::MockEEPROM::length |
( |
void |
| ) |
|
|
inlinestatic |
Mocked EEPROM length.
- Returns
- The mocked length() value, i.e., zero.
◆ begin()
static uint16_t mock::MockEEPROM::begin |
( |
void |
| ) |
|
|
inlinestatic |
Mocked EEPROM begin.
- Returns
- The mocked begin() value, i.e., zero.
◆ end()
static uint16_t mock::MockEEPROM::end |
( |
void |
| ) |
|
|
inlinestatic |
Mocked EEPROM end.
- Returns
- The mocked end() value, i.e., zero length.
The documentation for this class was generated from the following file: