17#ifndef MCP47XX_PARAMS_H
18#define MCP47XX_PARAMS_H
33#ifndef MCP47XX_PARAM_VARIANT
35#define MCP47XX_PARAM_VARIANT (MCP4725)
38#ifndef MCP47XX_PARAM_DEV
40#define MCP47XX_PARAM_DEV I2C_DEV(0)
43#ifndef MCP47XX_PARAM_ADDR
45#define MCP47XX_PARAM_ADDR (MCP47XX_BASE_ADDR + 2)
48#ifndef MCP47XX_PARAM_GAIN
50#define MCP47XX_PARAM_GAIN (MCP47XX_GAIN_1X)
53#ifndef MCP47XX_PARAM_VREF
55#define MCP47XX_PARAM_VREF (MCP47XX_VREF_VDD)
58#ifndef MCP47XX_PARAM_PD_MODE
60#define MCP47XX_PARAM_PD_MODE (MCP47XX_PD_LARGE)
65#define MCP47XX_PARAMS { \
66 .dev = MCP47XX_PARAM_DEV, \
67 .addr = MCP47XX_PARAM_ADDR, \
68 .variant = MCP47XX_PARAM_VARIANT, \
69 .gain = MCP47XX_PARAM_GAIN, \
70 .vref = MCP47XX_PARAM_VREF, \
71 .pd_mode = MCP47XX_PARAM_PD_MODE, \
75#ifndef MCP47XX_SAUL_DAC_PARAMS
77#define MCP47XX_SAUL_DAC_PARAMS { \
94#if IS_USED(MODULE_SAUL) || DOXYGEN
static const mcp47xx_params_t mcp47xx_params[]
Allocate some memory to store the actual configuration.
#define MCP47XX_PARAMS
Default MCP47xx configuration parameters.
#define MCP47XX_SAUL_DAC_PARAMS
Example for mapping DAC channels to SAUL.
static const mcp47xx_saul_dac_params_t mcp47xx_saul_dac_params[]
Additional meta information to keep in the SAUL registry.
Parameter definitions for mapping peripherals directly to SAUL.
SAUL registry interface definition.
MCP47xx device configuration parameters.
MCP47xx configuration structure for mapping DAC channels to SAUL.