at24cxxx_defines.h File Reference

Constants for various I2C EEPROM devices. More...

Detailed Description

Constants for various I2C EEPROM devices.

All the devices listed below are accessible as pseudomodules.

Note
Even though the library is called "AT24CXXX", the support for I2C EEPROMs is not limited to Atmel/Microchip devices.
Author
Fabian Hüßler fabia.nosp@m.n.hu.nosp@m.essle.nosp@m.r@ov.nosp@m.gu.de

Definition in file at24cxxx_defines.h.

#include "kernel_defines.h"
+ Include dependency graph for at24cxxx_defines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define AT24CXXX_POLL_DELAY_US   (1000UL)
 Delay between two poll attempts.
 
#define AT24CXXX_CLEAR_BYTE   (0x00)
 Clear byte.
 
#define AT24CXXX_DEF_DEV_ADDR   (0x50)
 AT24CXXX default device address. More...
 

AT24C01A constants

#define AT24C01A_EEPROM_SIZE   (128U)
 128 byte memory
 
#define AT24C01A_PAGE_SIZE   (8U)
 16 pages of 8 bytes each
 
#define AT24C01A_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C01A_MAX_POLLS
 Number of poll attempts. More...
 

AT24C02 constants

#define AT24C02_EEPROM_SIZE   (256U)
 256 byte memory
 
#define AT24C02_PAGE_SIZE   (8U)
 32 pages of 8 bytes
 
#define AT24C02_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C02_MAX_POLLS
 Number of poll attempts. More...
 

AT24C04 constants

#define AT24C04_EEPROM_SIZE   (512U)
 512 byte memory
 
#define AT24C04_PAGE_SIZE   (16U)
 32 pages of 16 bytes each
 
#define AT24C04_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C04_MAX_POLLS
 Number of poll attempts. More...
 

AT24C08A constants

#define AT24C08A_EEPROM_SIZE   (1024U)
 1 kiB memory
 
#define AT24C08A_PAGE_SIZE   (16U)
 64 pages of 16 bytes each
 
#define AT24C08A_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C08A_MAX_POLLS
 Number of poll attempts. More...
 

AT24C16A constants

#define AT24C16A_EEPROM_SIZE   (2048U)
 2 kiB memory
 
#define AT24C16A_PAGE_SIZE   (16U)
 128 pages of 16 bytes each
 
#define AT24C16A_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C16A_MAX_POLLS
 Number of poll attempts. More...
 

AT24C32 constants

#define AT24C32_EEPROM_SIZE   (4096U)
 4 kiB memory
 
#define AT24C32_PAGE_SIZE   (32U)
 256 pages of 32 bytes each
 
#define AT24C32_PAGE_WRITE_DELAY_US   (10000U)
 Delay to complete write operation.
 
#define AT24C32_MAX_POLLS
 Number of poll attempts. More...
 

AT24C64 constants

#define AT24C64_EEPROM_SIZE   (8192U)
 8 kiB memory
 
#define AT24C64_PAGE_SIZE   (32U)
 256 pages of 32 bytes each
 
#define AT24C64_PAGE_WRITE_DELAY_US   (10000U)
 Delay to complete write operation.
 
#define AT24C64_MAX_POLLS
 Number of poll attempts. More...
 

AT24C128 constants

#define AT24C128_EEPROM_SIZE   (16384U)
 16 kiB memory
 
#define AT24C128_PAGE_SIZE   (64U)
 256 pages of 64 bytes each
 
#define AT24C128_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C128_MAX_POLLS
 Number of poll attempts. More...
 

AT24C256 constants

#define AT24C256_EEPROM_SIZE   (32768U)
 32 kiB memory
 
#define AT24C256_PAGE_SIZE   (64U)
 512 pages of 64 bytes each
 
#define AT24C256_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C256_MAX_POLLS
 Number of poll attempts. More...
 

AT24C512 constants

#define AT24C512_EEPROM_SIZE   (65536U)
 64 kiB memory
 
#define AT24C512_PAGE_SIZE   (128U)
 512 pages of 128 bytes each
 
#define AT24C512_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C512_MAX_POLLS
 Number of poll attempts. More...
 

AT24CS04 constants

#define AT24CS04_EEPROM_SIZE   (512U)
 512 Byte memory
 
#define AT24CS04_PAGE_SIZE   (16U)
 32 pages of 16 bytes each
 
#define AT24CS04_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24CS04_MAX_POLLS
 Number of poll attempts. More...
 

AT24CS08 constants

#define AT24CS08_EEPROM_SIZE   (1024U)
 1 kiB memory
 
#define AT24CS08_PAGE_SIZE   (16U)
 64 pages of 16 bytes each
 
#define AT24CS08_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24CS08_MAX_POLLS
 Number of poll attempts. More...
 

AT24C1024 constants

#define AT24C1024_EEPROM_SIZE   (131072U)
 128 kiB memory
 
#define AT24C1024_PAGE_SIZE   (256U)
 512 pages of 256 bytes each
 
#define AT24C1024_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24C1024_MAX_POLLS
 Number of poll attempts. More...
 

AT24MAC402/602 constants

#define AT24MAC_EEPROM_SIZE   (256U)
 256 byte memory
 
#define AT24MAC_PAGE_SIZE   (16U)
 16 pages of 16 bytes each
 
#define AT24MAC_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define AT24MAC_MAX_POLLS
 Number of poll attempts. More...
 

M24C01 constants

#define M24C01_EEPROM_SIZE   (128U)
 128 byte memory
 
#define M24C01_PAGE_SIZE   (16U)
 16 pages of 16 bytes each
 
#define M24C01_PAGE_WRITE_DELAY_US   (5000U)
 Delay to complete write operation.
 
#define M24C01_MAX_POLLS
 Number of poll attempts. More...
 

Set constants depending on module

#define AT24CXXX_EEPROM_SIZE   (128U)
 EEPROM size.
 
#define AT24CXXX_PAGE_SIZE   (4U)
 page size
 
#define AT24CXXX_MAX_POLLS   (6U)
 maximum poll attempts
 

Macro Definition Documentation

◆ AT24C01A_MAX_POLLS

#define AT24C01A_MAX_POLLS
Value:
#define AT24CXXX_POLL_DELAY_US
Delay between two poll attempts.
#define AT24C01A_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 72 of file at24cxxx_defines.h.

◆ AT24C02_MAX_POLLS

#define AT24C02_MAX_POLLS
Value:
#define AT24C02_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 95 of file at24cxxx_defines.h.

◆ AT24C04_MAX_POLLS

#define AT24C04_MAX_POLLS
Value:
#define AT24C04_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 118 of file at24cxxx_defines.h.

◆ AT24C08A_MAX_POLLS

#define AT24C08A_MAX_POLLS
Value:
#define AT24C08A_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 141 of file at24cxxx_defines.h.

◆ AT24C1024_MAX_POLLS

#define AT24C1024_MAX_POLLS
Value:
#define AT24C1024_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 348 of file at24cxxx_defines.h.

◆ AT24C128_MAX_POLLS

#define AT24C128_MAX_POLLS
Value:
#define AT24C128_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 233 of file at24cxxx_defines.h.

◆ AT24C16A_MAX_POLLS

#define AT24C16A_MAX_POLLS
Value:
#define AT24C16A_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 164 of file at24cxxx_defines.h.

◆ AT24C256_MAX_POLLS

#define AT24C256_MAX_POLLS
Value:
#define AT24C256_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 256 of file at24cxxx_defines.h.

◆ AT24C32_MAX_POLLS

#define AT24C32_MAX_POLLS
Value:
#define AT24C32_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 187 of file at24cxxx_defines.h.

◆ AT24C512_MAX_POLLS

#define AT24C512_MAX_POLLS
Value:
#define AT24C512_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 279 of file at24cxxx_defines.h.

◆ AT24C64_MAX_POLLS

#define AT24C64_MAX_POLLS
Value:
#define AT24C64_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 210 of file at24cxxx_defines.h.

◆ AT24CS04_MAX_POLLS

#define AT24CS04_MAX_POLLS
Value:
#define AT24CS04_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 302 of file at24cxxx_defines.h.

◆ AT24CS08_MAX_POLLS

#define AT24CS08_MAX_POLLS
Value:
#define AT24CS08_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 325 of file at24cxxx_defines.h.

◆ AT24CXXX_DEF_DEV_ADDR

#define AT24CXXX_DEF_DEV_ADDR   (0x50)

AT24CXXX default device address.

Different AT24CXXX types may have a different address byte format. Some may include a portion of the data word address. Some may have a 0, 1, 2 or 3 bit wide address space. But all types have a 7 bit I2C address which starts with

  1. [1, 0, 1, 0, ?, ?, ?, r/w] __7 bit address__/

Definition at line 51 of file at24cxxx_defines.h.

◆ AT24MAC_MAX_POLLS

#define AT24MAC_MAX_POLLS
Value:
#define AT24MAC_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 371 of file at24cxxx_defines.h.

◆ M24C01_MAX_POLLS

#define M24C01_MAX_POLLS
Value:
#define M24C01_PAGE_WRITE_DELAY_US
Delay to complete write operation.

Number of poll attempts.

Definition at line 394 of file at24cxxx_defines.h.