Loading...
Searching...
No Matches

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.
 
#define ADCXX1C_SAUL_INFO   { .name = "adcxx1c" }
 ADCXX1C driver SAUL registry information structures.
 

Variables

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

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 }
#define ADCXX1C_PARAM_CYCLE
Conversion interval.
#define ADCXX1C_PARAM_BITS
Resolution in bits.
#define ADCXX1C_PARAM_LOW_LIMIT
Low limit for the alert.
#define ADCXX1C_PARAM_I2C
I2C device to use.
#define ADCXX1C_PARAM_HIGH_LIMIT
High limit for the alert.
#define ADCXX1C_PARAM_ALERT_PIN
Alert gpio pin.
#define ADCXX1C_PARAM_ADDR
I2C address.
#define ADCXX1C_PARAM_HYSTERESIS
Hysteresis for the alert.

ADCXX1C driver configuration structures.

Definition at line 83 of file adcxx1c_params.h.

◆ ADCXX1C_SAUL_INFO

#define ADCXX1C_SAUL_INFO   { .name = "adcxx1c" }

ADCXX1C driver SAUL registry information structures.

Definition at line 97 of file adcxx1c_params.h.

Variable Documentation

◆ adcxx1c_params

Initial value:
=
{
}
#define ADCXX1C_PARAMS
ADCXX1C driver configuration structures.

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:
=
{
}
#define ADCXX1C_SAUL_INFO
ADCXX1C driver SAUL registry information structures.

Additional meta information to keep in the SAUL registry.

Definition at line 111 of file adcxx1c_params.h.