Driver to access (read and write) AT24Cxx series EEPROM through a TWI interface.
Modules | |
Related Project(s) | |
In this section you can find all the projects related to the MEMORY - EEPROM AT24Cxx Series. | |
Functions | |
void | at24cxx_init (int32_t fcpu) |
This function will initialize the AT24CXX serial EEPROM. More... | |
uint8_t | at24cxx_read_byte (uint16_t byte_address) |
Read single byte from serial EEPROM. More... | |
void | at24cxx_read_continuous (uint16_t start_address, uint16_t length, uint8_t *rd_buffer) |
Read bytes continuously from the serial EEPROM. More... | |
void | at24cxx_write_byte (uint16_t byte_address, uint8_t byte_value) |
Write single byte to the serial EEPROM. More... | |
void | at24cxx_write_continuous (uint16_t start_address, uint16_t length, uint8_t const *wr_buffer) |
Write bytes continuously to the serial EEPROM. More... | |
void at24cxx_init | ( | int32_t | fcpu | ) |
uint8_t at24cxx_read_byte | ( | uint16_t | byte_address | ) |
Read single byte from serial EEPROM.
[in] | byte_address | Address of byte to read. |
[out] | read_byte | Pointer to memory where the read byte will be stored. |
true | Byte read successfully. |
false | Byte could not be read. |
References AT24CXX_TWI, AT24CXX_TWI_ADDRESS, data, twi_master_read(), twi_master_write(), twi_package_t, and TWI_SUCCESS.
Referenced by main().
void at24cxx_read_continuous | ( | uint16_t | start_address, |
uint16_t | length, | ||
uint8_t * | rd_buffer | ||
) |
Read bytes continuously from the serial EEPROM.
[in] | start_address | Address of first byte to read. |
[in] | length | Number of bytes to read. |
[out] | rd_buffer | Pointer to memory where the read bytes will be stored. |
true | Bytes read successfully. |
false | Bytes could not be read. |
References AT24CXX_TWI, AT24CXX_TWI_ADDRESS, length, twi_master_read(), twi_master_write(), twi_package_t, and TWI_SUCCESS.
void at24cxx_write_byte | ( | uint16_t | byte_address, |
uint8_t | byte_value | ||
) |
Write single byte to the serial EEPROM.
[in] | byte_address | Address of byte to write. |
[in] | byte_value | Value that will be written to the specified address. |
true | Byte written successfully. |
false | Byte could not be written. |
References AT24CXX_TWI, AT24CXX_TWI_ADDRESS, twi_master_write(), twi_package_t, and TWI_SUCCESS.
Referenced by main().
void at24cxx_write_continuous | ( | uint16_t | start_address, |
uint16_t | length, | ||
uint8_t const * | wr_buffer | ||
) |
Write bytes continuously to the serial EEPROM.
[in] | start_address | Address of first byte in transaction. |
[in] | length | Number of bytes to write. |
[in] | wr_buffer | Pointer to array where the bytes to be written are stored. |
true | Bytes written successfully. |
false | Bytes could not be written. |
References AT24CXX_TWI, AT24CXX_TWI_ADDRESS, length, twi_master_write(), twi_package_t, and TWI_SUCCESS.