API driver for component AT24MACXX.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "twihs_master.h"
Macros | |
#define | AT24MAC_MEM_ADDR_LEN 1 |
#define | AT24MAC_READ_FAIL 1 |
#define | AT24MAC_READ_SUCCESS 0 |
#define | AT24MAC_WRITE_FAIL 1 |
#define | AT24MAC_WRITE_SUCCESS 0 |
#define | BOARD_AT24MAC_ADDRESS (0xAE >> 1)/* TWIHS eeprom address */ |
#define | BOARD_AT24MAC_TWIHS_INSTANCE TWIHS0 /* TWIHS instance (TWIHS0) */ |
Checking board configuration of the AT24MAC EEPROM. More... | |
#define | BOARD_CLK_TWIHS_EEPROM 0 /* TWIHS eeprom clock pin index */ |
#define | BOARD_CLK_TWIHS_MUX_EEPROM 0 /* TWIHS eeprom clock pin peripheral */ |
Functions | |
uint32_t | at24macxx_fill_pattern (uint32_t u32_start_address, uint32_t u32_end_address, uint8_t u8_pattern) |
Fill the specified pattern to AT24MACXX. More... | |
uint32_t | at24macxx_read_byte (uint32_t u32_address, uint8_t *p_rd_byte) |
Read single byte from AT24MACXX. More... | |
uint32_t | at24macxx_read_continuous (uint32_t u32_start_address, uint16_t u16_length, uint8_t *p_rd_buffer) |
Read multiple bytes continuously from AT24MACXX. More... | |
uint32_t | at24macxx_read_page (uint32_t u32_page_address, uint32_t u32_page_size, uint8_t *p_rd_buffer) |
Read data from the specified page in AT24MACXX. More... | |
void | at24macxx_reset (void) |
Reset AT24MACXX. More... | |
uint32_t | at24macxx_write_byte (uint32_t u32_address, uint8_t uc_value) |
Write single byte to AT24MACXX. More... | |
uint32_t | at24macxx_write_continuous (uint32_t u32_start_address, uint16_t u16_length, uint8_t const *p_wr_buffer) |
Write multiple bytes continuously to AT24MACXX. More... | |
uint32_t | at24macxx_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 AT24MACXX. More... | |
#define AT24MAC_MEM_ADDR_LEN 1 |
#define AT24MAC_READ_FAIL 1 |
Referenced by at24macxx_read_byte(), at24macxx_read_continuous(), and at24macxx_read_page().
#define AT24MAC_READ_SUCCESS 0 |
Referenced by at24macxx_read_byte(), at24macxx_read_continuous(), at24macxx_read_page(), and main().
#define AT24MAC_WRITE_FAIL 1 |
Referenced by at24macxx_fill_pattern(), at24macxx_write_byte(), at24macxx_write_continuous(), and at24macxx_write_page().
#define AT24MAC_WRITE_SUCCESS 0 |
Referenced by at24macxx_fill_pattern(), at24macxx_write_byte(), at24macxx_write_continuous(), at24macxx_write_page(), and main().
#define BOARD_AT24MAC_ADDRESS (0xAE >> 1)/* TWIHS eeprom address */ |
#define BOARD_AT24MAC_TWIHS_INSTANCE TWIHS0 /* TWIHS instance (TWIHS0) */ |
Checking board configuration of the AT24MAC EEPROM.
Referenced by at24macxx_acknowledge_polling(), at24macxx_read_byte(), at24macxx_read_continuous(), at24macxx_read_page(), at24macxx_write_byte(), at24macxx_write_page(), and main().
#define BOARD_CLK_TWIHS_EEPROM 0 /* TWIHS eeprom clock pin index */ |
Referenced by at24macxx_reset().
#define BOARD_CLK_TWIHS_MUX_EEPROM 0 /* TWIHS eeprom clock pin peripheral */ |
Referenced by at24macxx_reset().