M24FC256.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: Beerware
2 /**
3  * @file M24FC256.h
4  * @brief 24FC256 driver
5  * @ingroup 24FC256
6  */
7 #pragma once
8 
9 #ifdef USE_M24FC256
10 
11 #include <stdint.h>
12 
13 #define M24FC256_ADDRESS 0xA0 ///< 4-bit control code for read- and write operations
14 #define M24FC256_PAGESIZE 0x40 ///< EEPROM page size
15 
16 int M24FC256_Read(uint16_t u16Address, uint8_t *pu8TxBuffer, uint8_t u8Pages);
17 int M24FC256_Write(uint16_t u16Address, uint8_t *pu8TxBuffer, uint8_t u8Pages);
18 
19 #endif // USE_M24FC256
int M24FC256_Read(uint16_t u16Address, uint8_t *pu8TxBuffer, uint8_t u8Pages)
Read data from 24FC256 EEPROM.
Definition: M24FC256.c:42
int M24FC256_Write(uint16_t u16Address, uint8_t *pu8TxBuffer, uint8_t u8Pages)
Write data to 24FC256 EEPROM.
Definition: M24FC256.c:89