18#ifndef PCA9633_PARAMS_H
19#define PCA9633_PARAMS_H
36#ifndef PCA9633_PARAM_I2C_DEV
38#define PCA9633_PARAM_I2C_DEV I2C_DEV(0)
41#ifndef PCA9633_PARAM_I2C_ADDR
43#define PCA9633_PARAM_I2C_ADDR (0xc0 >> 1)
46#ifndef PCA9633_PARAM_REG_PWM_RED
48#define PCA9633_PARAM_REG_PWM_RED PCA9633_REG_PWM2
51#ifndef PCA9633_PARAM_REG_PWM_GREEN
53#define PCA9633_PARAM_REG_PWM_GREEN PCA9633_REG_PWM1
56#ifndef PCA9633_PARAM_REG_PWM_BLUE
58#define PCA9633_PARAM_REG_PWM_BLUE PCA9633_REG_PWM0
61#ifndef PCA9633_PARAM_REG_PWM_AMBER
63#define PCA9633_PARAM_REG_PWM_AMBER 0
66#ifndef PCA9633_PARAM_HAS_AMBER_CHANNEL
68#define PCA9633_PARAM_HAS_AMBER_CHANNEL false
72#define PCA9633_PARAMS \
74 .i2c_dev = PCA9633_PARAM_I2C_DEV, \
75 .i2c_addr = PCA9633_PARAM_I2C_ADDR, \
76 .reg_pwm_red = PCA9633_PARAM_REG_PWM_RED, \
77 .reg_pwm_green = PCA9633_PARAM_REG_PWM_GREEN, \
78 .reg_pwm_blue = PCA9633_PARAM_REG_PWM_BLUE, \
79 .reg_pwm_amber = PCA9633_PARAM_REG_PWM_AMBER, \
80 .has_amber_channel = PCA9633_PARAM_HAS_AMBER_CHANNEL \
Low-level I2C peripheral driver interface definition.
static const pca9633_params_t pca9633_params[]
Allocate some memory to store the actual configuration.
Register definitions for the PCA9633 I2C PWM controller.
PCA9633 device initialization parameters.