API driver for component AT24CXX.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | at24c_build_word_address(p_u8, addr) |
Functions | |
static void | at24cxx_acknowledge_polling (twi_package_t *twi_package) |
Poll the acknowledge from AT24CXX. More... | |
uint32_t | at24cxx_fill_pattern (uint32_t u32_start_address, uint32_t u32_end_address, uint8_t u8_pattern) |
Fill the specified pattern to AT24CXX. More... | |
uint32_t | at24cxx_read_byte (uint32_t u32_address, uint8_t *p_rd_byte) |
Read single byte from AT24CXX. More... | |
uint32_t | at24cxx_read_continuous (uint32_t u32_start_address, uint16_t u16_length, uint8_t *p_rd_buffer) |
Read multiple bytes continuously from AT24CXX. More... | |
uint32_t | at24cxx_read_page (uint32_t u32_page_address, uint32_t u32_page_size, uint8_t *p_rd_buffer) |
Read data from the specified page in AT24CXX. More... | |
void | at24cxx_reset (void) |
Reset AT24CXX. More... | |
uint32_t | at24cxx_write_byte (uint32_t u32_address, uint8_t u8_value) |
Write single byte to AT24CXX. More... | |
uint32_t | at24cxx_write_continuous (uint32_t u32_start_address, uint16_t u16_length, uint8_t const *p_wr_buffer) |
Write multiple bytes continuously to AT24CXX. More... | |
uint32_t | at24cxx_write_page (uint32_t u32_page_address, uint32_t u32_page_size, uint8_t const *p_wr_buffer) |
Write data to the specified page in AT24CXX. More... | |