at24cxxx_defines.h File Reference

Constants for AT24CXXX EEPROM devices. More...

Detailed Description

Constants for AT24CXXX EEPROM 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...
 

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...
 

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:

Number of poll attempts.

Definition at line 67 of file at24cxxx_defines.h.

◆ AT24C02_MAX_POLLS

#define AT24C02_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 90 of file at24cxxx_defines.h.

◆ AT24C04_MAX_POLLS

#define AT24C04_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 113 of file at24cxxx_defines.h.

◆ AT24C08A_MAX_POLLS

#define AT24C08A_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 136 of file at24cxxx_defines.h.

◆ AT24C1024_MAX_POLLS

#define AT24C1024_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 297 of file at24cxxx_defines.h.

◆ AT24C128_MAX_POLLS

#define AT24C128_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 228 of file at24cxxx_defines.h.

◆ AT24C16A_MAX_POLLS

#define AT24C16A_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 159 of file at24cxxx_defines.h.

◆ AT24C256_MAX_POLLS

#define AT24C256_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 251 of file at24cxxx_defines.h.

◆ AT24C32_MAX_POLLS

#define AT24C32_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 182 of file at24cxxx_defines.h.

◆ AT24C512_MAX_POLLS

#define AT24C512_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 274 of file at24cxxx_defines.h.

◆ AT24C64_MAX_POLLS

#define AT24C64_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 205 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 46 of file at24cxxx_defines.h.

◆ AT24MAC_MAX_POLLS

#define AT24MAC_MAX_POLLS
Value:

Number of poll attempts.

Definition at line 320 of file at24cxxx_defines.h.

AT24C16A_PAGE_WRITE_DELAY_US
#define AT24C16A_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:155
AT24C32_PAGE_WRITE_DELAY_US
#define AT24C32_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:178
AT24C04_PAGE_WRITE_DELAY_US
#define AT24C04_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:109
AT24C64_PAGE_WRITE_DELAY_US
#define AT24C64_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:201
AT24MAC_PAGE_WRITE_DELAY_US
#define AT24MAC_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:316
AT24C01A_PAGE_WRITE_DELAY_US
#define AT24C01A_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:63
AT24C08A_PAGE_WRITE_DELAY_US
#define AT24C08A_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:132
AT24C512_PAGE_WRITE_DELAY_US
#define AT24C512_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:270
AT24C1024_PAGE_WRITE_DELAY_US
#define AT24C1024_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:293
AT24C256_PAGE_WRITE_DELAY_US
#define AT24C256_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:247
AT24C02_PAGE_WRITE_DELAY_US
#define AT24C02_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:86
AT24CXXX_POLL_DELAY_US
#define AT24CXXX_POLL_DELAY_US
Delay between two poll attempts.
Definition: at24cxxx_defines.h:31
AT24C128_PAGE_WRITE_DELAY_US
#define AT24C128_PAGE_WRITE_DELAY_US
Delay to complete write operation.
Definition: at24cxxx_defines.h:224