at24cxxx_params.h File Reference

Default configuration for AT24CXXX. More...

Detailed Description

Default configuration for AT24CXXX.

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:
{ \
.dev_addr = AT24CXXX_PARAM_ADDR, \
.pin_wp = AT24CXXX_PARAM_PIN_WP, \
.eeprom_size = AT24CXXX_PARAM_EEPROM_SIZE, \
.page_size = AT24CXXX_PARAM_PAGE_SIZE, \
.max_polls = AT24CXXX_PARAM_MAX_POLLS \
}

Default device configuration parameters.

Definition at line 74 of file at24cxxx_params.h.

Variable Documentation

◆ at24cxxx_params

Initial value:

AT24CXXX configuration.

Definition at line 93 of file at24cxxx_params.h.

AT24CXXX_PARAM_PAGE_SIZE
#define AT24CXXX_PARAM_PAGE_SIZE
Page size.
Definition: at24cxxx_params.h:62
AT24CXXX_PARAM_MAX_POLLS
#define AT24CXXX_PARAM_MAX_POLLS
Maximum poll poll.
Definition: at24cxxx_params.h:68
AT24CXXX_PARAM_ADDR
#define AT24CXXX_PARAM_ADDR
I2C address of the EEPROM device.
Definition: at24cxxx_params.h:44
AT24CXXX_PARAM_EEPROM_SIZE
#define AT24CXXX_PARAM_EEPROM_SIZE
EEPROM size.
Definition: at24cxxx_params.h:56
AT24CXXX_PARAM_I2C
#define AT24CXXX_PARAM_I2C
I2C bus the EEPROM is connected to.
Definition: at24cxxx_params.h:38
AT24CXXX_PARAM_PIN_WP
#define AT24CXXX_PARAM_PIN_WP
EEPROM write protect pin.
Definition: at24cxxx_params.h:50
AT24CXXX_PARAMS
#define AT24CXXX_PARAMS
Default device configuration parameters.
Definition: at24cxxx_params.h:74