Default configuration for ADCXX1C devices. More...

Detailed Description

Default configuration for ADCXX1C devices.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m

Definition in file adcxx1c_params.h.

#include "board.h"
#include "saul_reg.h"
#include "adcxx1c.h"
+ Include dependency graph for adcxx1c_params.h:

Go to the source code of this file.

Macros

#define ADCXX1C_PARAM_I2C   (I2C_DEV(0))
 I2C device to use.
 
#define ADCXX1C_PARAM_ADDR   (ADCXX1C_I2C_ADDRESS)
 I2C address.
 
#define ADCXX1C_PARAM_BITS   (ADCXX1C_RES_DEFAULT)
 Resolution in bits.
 
#define ADCXX1C_PARAM_CYCLE   (ADCXX1C_CYCLE_DISABLED)
 Conversion interval.
 
#define ADCXX1C_PARAM_ALERT_PIN   (GPIO_UNDEF)
 Alert gpio pin.
 
#define ADCXX1C_PARAM_LOW_LIMIT   (0)
 Low limit for the alert.
 
#define ADCXX1C_PARAM_HIGH_LIMIT   (0)
 High limit for the alert.
 
#define ADCXX1C_PARAM_HYSTERESIS   (0)
 Hysteresis for the alert.
 
#define ADCXX1C_PARAMS
 ADCXX1C driver configuration structures. More...
 
#define ADCXX1C_SAUL_INFO   { .name = "adcxx1c" }
 ADCXX1C driver SAUL registry information structures.
 

Variables

static const adcxx1c_params_t adcxx1c_params []
 ADCXX1C configuration. More...
 
static const saul_reg_info_t adcxx1c_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Macro Definition Documentation

◆ ADCXX1C_PARAMS

#define ADCXX1C_PARAMS
Value:
{ .i2c = ADCXX1C_PARAM_I2C, \
.addr = ADCXX1C_PARAM_ADDR, \
.bits = ADCXX1C_PARAM_BITS, \
.cycle = ADCXX1C_PARAM_CYCLE, \
.alert_pin = ADCXX1C_PARAM_ALERT_PIN, \
.low_limit = ADCXX1C_PARAM_LOW_LIMIT, \
.high_limit = ADCXX1C_PARAM_HIGH_LIMIT, \
.hysteresis = ADCXX1C_PARAM_HYSTERESIS }

ADCXX1C driver configuration structures.

Definition at line 83 of file adcxx1c_params.h.

Variable Documentation

◆ adcxx1c_params

Initial value:

ADCXX1C configuration.

Definition at line 103 of file adcxx1c_params.h.

◆ adcxx1c_saul_info

const saul_reg_info_t adcxx1c_saul_info[]
static
Initial value:

Additional meta information to keep in the SAUL registry.

Definition at line 112 of file adcxx1c_params.h.

ADCXX1C_PARAM_ALERT_PIN
#define ADCXX1C_PARAM_ALERT_PIN
Alert gpio pin.
Definition: adcxx1c_params.h:60
ADCXX1C_SAUL_INFO
#define ADCXX1C_SAUL_INFO
ADCXX1C driver SAUL registry information structures.
Definition: adcxx1c_params.h:97
ADCXX1C_PARAM_CYCLE
#define ADCXX1C_PARAM_CYCLE
Conversion interval.
Definition: adcxx1c_params.h:55
ADCXX1C_PARAM_I2C
#define ADCXX1C_PARAM_I2C
I2C device to use.
Definition: adcxx1c_params.h:40
ADCXX1C_PARAMS
#define ADCXX1C_PARAMS
ADCXX1C driver configuration structures.
Definition: adcxx1c_params.h:83
ADCXX1C_PARAM_LOW_LIMIT
#define ADCXX1C_PARAM_LOW_LIMIT
Low limit for the alert.
Definition: adcxx1c_params.h:65
ADCXX1C_PARAM_BITS
#define ADCXX1C_PARAM_BITS
Resolution in bits.
Definition: adcxx1c_params.h:50
ADCXX1C_PARAM_HYSTERESIS
#define ADCXX1C_PARAM_HYSTERESIS
Hysteresis for the alert.
Definition: adcxx1c_params.h:75
ADCXX1C_PARAM_ADDR
#define ADCXX1C_PARAM_ADDR
I2C address.
Definition: adcxx1c_params.h:45
ADCXX1C_PARAM_HIGH_LIMIT
#define ADCXX1C_PARAM_HIGH_LIMIT
High limit for the alert.
Definition: adcxx1c_params.h:70