Loading...
Searching...
No Matches
pca9633_params.h File Reference

Default configuration for the PCA9633 I2C PWM controller. More...

Detailed Description

Default configuration for the PCA9633 I2C PWM controller.

Author
Hendrik van Essen hendr.nosp@m.ik.v.nosp@m.e@fu-.nosp@m.berl.nosp@m.in.de

Definition in file pca9633_params.h.

#include <stdbool.h>
#include "periph/i2c.h"
#include "pca9633_regs.h"
+ Include dependency graph for pca9633_params.h:

Go to the source code of this file.

Variables

static const pca9633_params_t pca9633_params []
 Allocate some memory to store the actual configuration.
 

Set default configuration parameters

#define PCA9633_PARAM_I2C_DEV   I2C_DEV(0)
 I2C device is I2C_DEV(0)
 
#define PCA9633_PARAM_I2C_ADDR   (0xc0 >> 1)
 I2C address of device is (0xc0 >> 1)
 
#define PCA9633_PARAM_REG_PWM_RED   PCA9633_REG_PWM2
 Register for red color is PCA9633_REG_PWM2.
 
#define PCA9633_PARAM_REG_PWM_GREEN   PCA9633_REG_PWM1
 Register for green color is PCA9633_REG_PWM1.
 
#define PCA9633_PARAM_REG_PWM_BLUE   PCA9633_REG_PWM0
 Register for blue color is PCA9633_REG_PWM0.
 
#define PCA9633_PARAM_REG_PWM_AMBER   0
 Register for amber color is not given (0)
 
#define PCA9633_PARAM_HAS_AMBER_CHANNEL   false
 PCA9633 has no connected channel for amber (false)
 
#define PCA9633_PARAMS
 

Macro Definition Documentation

◆ PCA9633_PARAM_HAS_AMBER_CHANNEL

#define PCA9633_PARAM_HAS_AMBER_CHANNEL   false

PCA9633 has no connected channel for amber (false)

Definition at line 68 of file pca9633_params.h.

◆ PCA9633_PARAM_I2C_ADDR

#define PCA9633_PARAM_I2C_ADDR   (0xc0 >> 1)

I2C address of device is (0xc0 >> 1)

Definition at line 43 of file pca9633_params.h.

◆ PCA9633_PARAM_I2C_DEV

#define PCA9633_PARAM_I2C_DEV   I2C_DEV(0)

I2C device is I2C_DEV(0)

Definition at line 38 of file pca9633_params.h.

◆ PCA9633_PARAM_REG_PWM_AMBER

#define PCA9633_PARAM_REG_PWM_AMBER   0

Register for amber color is not given (0)

Definition at line 63 of file pca9633_params.h.

◆ PCA9633_PARAM_REG_PWM_BLUE

#define PCA9633_PARAM_REG_PWM_BLUE   PCA9633_REG_PWM0

Register for blue color is PCA9633_REG_PWM0.

Definition at line 58 of file pca9633_params.h.

◆ PCA9633_PARAM_REG_PWM_GREEN

#define PCA9633_PARAM_REG_PWM_GREEN   PCA9633_REG_PWM1

Register for green color is PCA9633_REG_PWM1.

Definition at line 53 of file pca9633_params.h.

◆ PCA9633_PARAM_REG_PWM_RED

#define PCA9633_PARAM_REG_PWM_RED   PCA9633_REG_PWM2

Register for red color is PCA9633_REG_PWM2.

Definition at line 48 of file pca9633_params.h.

◆ PCA9633_PARAMS

#define PCA9633_PARAMS
Value:
{ \
.i2c_dev = PCA9633_PARAM_I2C_DEV, \
.i2c_addr = PCA9633_PARAM_I2C_ADDR, \
.reg_pwm_red = PCA9633_PARAM_REG_PWM_RED, \
.reg_pwm_green = PCA9633_PARAM_REG_PWM_GREEN, \
.reg_pwm_blue = PCA9633_PARAM_REG_PWM_BLUE, \
.reg_pwm_amber = PCA9633_PARAM_REG_PWM_AMBER, \
.has_amber_channel = PCA9633_PARAM_HAS_AMBER_CHANNEL \
}
#define PCA9633_PARAM_REG_PWM_RED
Register for red color is PCA9633_REG_PWM2.
#define PCA9633_PARAM_I2C_ADDR
I2C address of device is (0xc0 >> 1)
#define PCA9633_PARAM_REG_PWM_BLUE
Register for blue color is PCA9633_REG_PWM0.
#define PCA9633_PARAM_REG_PWM_AMBER
Register for amber color is not given (0)
#define PCA9633_PARAM_I2C_DEV
I2C device is I2C_DEV(0)
#define PCA9633_PARAM_HAS_AMBER_CHANNEL
PCA9633 has no connected channel for amber (false)
#define PCA9633_PARAM_REG_PWM_GREEN
Register for green color is PCA9633_REG_PWM1.

Definition at line 72 of file pca9633_params.h.

Variable Documentation

◆ pca9633_params

const pca9633_params_t pca9633_params[]
static
Initial value:
=
{
PCA9633_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 88 of file pca9633_params.h.