Nut/OS  5.0.5
API Reference
mweeprom.h File Reference
#include <stddef.h>
Include dependency graph for mweeprom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned char eeprom_read_byte (const unsigned char *addr)
unsigned short eeprom_read_word (const unsigned short *addr)
void eeprom_read_block (void *buf, const void *addr, size_t n)
void eeprom_write_byte (unsigned char *addr, unsigned char val)
void eeprom_write_word (unsigned short *addr, unsigned short val)
void eeprom_write_block (const void *buf, void *addr, size_t n)
void eeprom_fill_all (const unsigned char c)
void eeprom_erase (unsigned char *addr)
void eeprom_erase_all (void)

Function Documentation

unsigned char eeprom_read_byte ( const unsigned char *  addr)

read one byte from EEPROM address addr

References fread(), and unix_eeprom_acces().

Here is the call graph for this function:

unsigned short eeprom_read_word ( const unsigned short *  addr)

read one 16-bit word (little endian) from EEPROM address addr

References fread(), and unix_eeprom_acces().

Here is the call graph for this function:

void eeprom_read_block ( void *  buf,
const void *  addr,
size_t  n 
)

read a block of n bytes from EEPROM address addr to buf

References fread(), and unix_eeprom_acces().

Here is the call graph for this function:

void eeprom_write_byte ( unsigned char *  addr,
unsigned char  val 
)

write a byte val to EEPROM address addr

References fflush(), fwrite(), and unix_eeprom_acces().

Here is the call graph for this function:

void eeprom_write_word ( unsigned short *  addr,
unsigned short  val 
)
void eeprom_write_block ( const void *  buf,
void *  addr,
size_t  n 
)
void eeprom_fill_all ( const unsigned char  c)
void eeprom_erase ( unsigned char *  addr)
void eeprom_erase_all ( void  )