Speeduino
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
write_location Struct Reference

Public Member Functions

void update (uint8_t value)
 
write_location changeWriteAddress (eeprom_address_t newAddress) const
 
write_locationoperator++ ()
 
bool can_write () const
 

Public Attributes

eeprom_address_t address
 
uint16_t counter
 
uint8_t write_block_size
 

Member Function Documentation

◆ can_write()

bool write_location::can_write ( ) const
inline
Here is the call graph for this function:

◆ changeWriteAddress()

write_location write_location::changeWriteAddress ( eeprom_address_t  newAddress) const
inline

Create a copy with a different write address. Allows chaining of instances.

Here is the call graph for this function:

◆ operator++()

write_location & write_location::operator++ ( )
inline

◆ update()

void write_location::update ( uint8_t  value)
inline

Update byte to EEPROM by first comparing content and the need to write it. We only ever write to the EEPROM where the new value is different from the currently stored byte This is due to the limited write life of the EEPROM (Approximately 100,000 writes)

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ address

eeprom_address_t write_location::address

◆ counter

uint16_t write_location::counter

◆ write_block_size

uint8_t write_location::write_block_size

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