at24cxxx_params.h File Reference

Default configuration for the AT24CXXX driver. More...

Detailed Description

Default configuration for the AT24CXXX driver.

Author
Fabian Hüßler fabia.nosp@m.n.hu.nosp@m.essle.nosp@m.r@ov.nosp@m.gu.de

Definition in file at24cxxx_params.h.

#include "board.h"
#include "periph/gpio.h"
#include "at24cxxx_defines.h"
+ Include dependency graph for at24cxxx_params.h:

Go to the source code of this file.

Macros

#define AT24CXXX_NUMOF   ARRAY_SIZE(at24cxxx_params)
 Number of configured AT24CXXX EEPROM devices.
 

Variables

static const at24cxxx_params_t at24cxxx_params []
 AT24CXXX configuration. More...
 

Set default configuration parameters for the AT24CXXX driver

#define AT24CXXX_PARAM_I2C   (I2C_DEV(0))
 I2C bus the EEPROM is connected to.
 
#define AT24CXXX_PARAM_ADDR   (AT24CXXX_DEF_DEV_ADDR)
 I2C address of the EEPROM device.
 
#define AT24CXXX_PARAM_PIN_WP   (GPIO_UNDEF)
 EEPROM write protect pin.
 
#define AT24CXXX_PARAM_EEPROM_SIZE   (AT24CXXX_EEPROM_SIZE)
 EEPROM size.
 
#define AT24CXXX_PARAM_PAGE_SIZE   (AT24CXXX_PAGE_SIZE)
 Page size.
 
#define AT24CXXX_PARAM_MAX_POLLS   (AT24CXXX_MAX_POLLS)
 Maximum poll poll.
 
#define AT24CXXX_PARAMS
 Default device configuration parameters. More...
 

Macro Definition Documentation

◆ AT24CXXX_PARAMS

#define AT24CXXX_PARAMS
Value:
{ \
.pin_wp = AT24CXXX_PARAM_PIN_WP, \
.eeprom_size = AT24CXXX_PARAM_EEPROM_SIZE, \
.dev_addr = AT24CXXX_PARAM_ADDR, \
.page_size = AT24CXXX_PARAM_PAGE_SIZE, \
.max_polls = AT24CXXX_PARAM_MAX_POLLS \
}
#define AT24CXXX_PARAM_PAGE_SIZE
Page size.
#define AT24CXXX_PARAM_PIN_WP
EEPROM write protect pin.
#define AT24CXXX_PARAM_I2C
I2C bus the EEPROM is connected to.
#define AT24CXXX_PARAM_ADDR
I2C address of the EEPROM device.
#define AT24CXXX_PARAM_EEPROM_SIZE
EEPROM size.
#define AT24CXXX_PARAM_MAX_POLLS
Maximum poll poll.

Default device configuration parameters.

Definition at line 74 of file at24cxxx_params.h.

Variable Documentation

◆ at24cxxx_params

Initial value:
=
{
}
#define AT24CXXX_PARAMS
Default device configuration parameters.

AT24CXXX configuration.

Definition at line 93 of file at24cxxx_params.h.