HWA
Bare metal programming with style
Class _eea: EEPROM memory

A class _eea object is an EEPROM memory.

It is used in:

Actions

read:

uint8_t byte = hw( read, eeprom0, 0x42 ); // read byte at address 0x42

read_bytes:

uint16_t address = 0x00F8 ;
uint8_t bytes[8] ;
hw( read_bytes, eeprom0, &bytes, address, sizeof(bytes) );

write:

hw( write, eeprom0, 0x42, 42 ); // Write 42 at address 0x42

write_bytes:

extern uint8_t bytes[42] ;
hw( write_bytes, eeprom0, 0x0100, bytes, sizeof(bytes) ); // Store 42 bytes at address 0x0100
hw
#define hw(...)
hw( action, object [,...] ) executes an action immediately on an object.
Definition: hwa_macros.h:523