Go to the source code of this file.
Functions | |
unsigned long | At49bvInit (void) |
unsigned long long | AT49bvReadProtectionRegister (int factory) |
Read user or factory id from protection register. | |
int | At49bvChipErase (void) |
Erase entire flash memory chip. | |
int | At49bvSectorErase (unsigned int off) |
Erase sector at the specified offset. | |
int | At49bvSectorRead (unsigned int off, void *data, unsigned int len) |
Read data from flash memory. | |
int | At49bvSectorWrite (unsigned int off, CONST void *data, unsigned int len) |
Write data into flash memory. | |
int | At49bvParamRead (unsigned int pos, void *data, unsigned int len) |
Load configuration parameters from flash memory. | |
int | At49bvParamWrite (unsigned int pos, CONST void *data, unsigned int len) |
Store configuration parameters in flash memory. |
unsigned long long AT49bvReadProtectionRegister | ( | int | factory | ) |
int At49bvChipErase | ( | void | ) |
int At49bvSectorErase | ( | unsigned int | off | ) |
Erase sector at the specified offset.
Definition at line 217 of file at49bv.c.
Referenced by At49bvParamWrite().
int At49bvSectorRead | ( | unsigned int | off, | |
void * | data, | |||
unsigned int | len | |||
) |
Read data from flash memory.
off | Start location within the chip, starting at 0. | |
data | Points to a buffer that receives the data. | |
len | Number of bytes to read. |
Definition at line 251 of file at49bv.c.
Referenced by At49bvParamRead(), and At49bvParamWrite().
int At49bvSectorWrite | ( | unsigned int | off, | |
CONST void * | data, | |||
unsigned int | len | |||
) |
Write data into flash memory.
The related sector must have been erased before calling this function.
off | Start location within the chip, starting at 0. | |
data | Points to a buffer that contains the bytes to be written. | |
len | Number of bytes to write. |
Definition at line 269 of file at49bv.c.
Referenced by At49bvParamWrite().
int At49bvParamRead | ( | unsigned int | pos, | |
void * | data, | |||
unsigned int | len | |||
) |
Load configuration parameters from flash memory.
pos | Start location within configuration sector. | |
data | Points to a buffer that receives the contents. | |
len | Number of bytes to read. |
Definition at line 302 of file at49bv.c.
Referenced by NutNvMemLoad().
int At49bvParamWrite | ( | unsigned int | pos, | |
CONST void * | data, | |||
unsigned int | len | |||
) |
Store configuration parameters in flash memory.
pos | Start location within configuration sector. | |
data | Points to a buffer that contains the bytes to store. | |
len | Number of bytes to store. |
Definition at line 316 of file at49bv.c.
Referenced by NutNvMemSave().