Difference between revisions of "EEPROM"
(→EEPROM_ReadNBytes) |
(→EEPROM_WriteString) |
||
Line 53: | Line 53: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || void EEPROM_WriteString(uint16_t eeprom_address, char * source_address) |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || uint16_t,-->eeprom_address where the String is to be written.char*-->Pointer to String which has to be written. |
|- | |- | ||
− | | Return Value|| | + | | Return Value|| none |
|- | |- | ||
− | | Description || | + | | Description || This function is used to Write a String at specified EEPROM_address.NOTE: Null char is also written into the eeprom. |
|- | |- | ||
| Usage || | | Usage || | ||
|} | |} | ||
− | |||
− | |||
− | |||
==EEPROM_Erase== | ==EEPROM_Erase== |
Revision as of 10:50, 14 December 2014
Contents
EEPROM
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
EEPROM_WriteByte
Defination | void EEPROM_WriteByte(uint16_t eeprom_Address, uint8_t eeprom_Data) |
Input Arguments | uint16_t: eeprom_address at which eeprom_data is to be written. uint8_t-->byte of data to be to be written in eeprom. |
Return Value | none |
Description | This function is used to write the data at specified EEPROM_address.. |
Usage |
EEPROM_WriteNBytes
Defination | void EEPROM_WriteNBytes(uint16_t EepromAddr, uint8_t *RamAddr, uint16_t NoOfBytes) |
Input Arguments | uint16_t,-->eeprom_address from where the N-bytes are to be written. uint8_t*-->Pointer to the N-bytes of data to be written. uint16_t --> Number of bytes to be written. |
Return Value | none |
Description | This function is used to write N-bytes of data at specified EEPROM_address. |
Usage |
EEPROM_WriteString
Defination | void EEPROM_WriteString(uint16_t eeprom_address, char * source_address) |
Input Arguments | uint16_t,-->eeprom_address where the String is to be written.char*-->Pointer to String which has to be written. |
Return Value | none |
Description | This function is used to Write a String at specified EEPROM_address.NOTE: Null char is also written into the eeprom. |
Usage |
EEPROM_Erase
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
EEPROM_ReadByte
Defination | uint8_t EEPROM_ReadByte(uint16_t eeprom_Address) |
Input Arguments | uint16_t-->eeprom_address from where eeprom_data is to be read. |
Return Value | uint8_t-->data read from Eeprom. |
Description | This function is used to read the data from specified EEPROM_address. |
Usage |
EEPROM_ReadNBytes
Defination | void EEPROM_ReadNBytes(uint16_t EepromAddr, uint8_t *RamAddr, uint16_t NoOfBytes) |
Input Arguments | uint16_t,-->eeprom_address from where the N-bytes is to be read. uint8_t*-->Pointer into which the N-bytes of data is to be read. uint16_t --> Number of bytes to be Read.
|
Return Value | none |
Description | This function is used to Read N-bytes of data from specified EEPROM_address. The data read from the eeprom will be copied into the RamAddress passed.Care should be taken to allocate enough buffer to read the data. |
Usage |
EEPROM_ReadString
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |