Nrk-api-eeprom

Version 2 (Anthony Rowe, 07/27/2009 05:01 pm)

1 1 Anthony Rowe
2 1 Anthony Rowe
3 2 Anthony Rowe
h2. EEPROM
4 2 Anthony Rowe
5 2 Anthony Rowe
6 2 Anthony Rowe
7 2 Anthony Rowe
h3. nrk_eeprom_read_byte
8 2 Anthony Rowe
9 1 Anthony Rowe
|| uint8_t nrk_eeprom_read_byte( uint16_t addr ) ||
10 2 Anthony Rowe
|| _Parameters_: addr is the address in EEPROM memory ||
11 2 Anthony Rowe
|| _Return Values:_ the value of EEPROM memory at addr ||
12 1 Anthony Rowe
13 1 Anthony Rowe
This function reads a byte from eeprom memory if supported by the processor.
14 1 Anthony Rowe
15 2 Anthony Rowe
16 2 Anthony Rowe
h3. nrk_eeprom_write_byte
17 2 Anthony Rowe
18 1 Anthony Rowe
|| int8_t nrk_eeprom_write_byte( uint16_t addr, uint8_t value ) ||
19 2 Anthony Rowe
|| _Parameters_: addr is the address in EEPROM memory, value is the value to be written ||
20 2 Anthony Rowe
|| _Return Values:_ NRK_OK upon success and NRK_ERROR on failure ||
21 1 Anthony Rowe
22 1 Anthony Rowe
This function writes a byte to eeprom memory.