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

Default configuration for the CST816S touch screen driver. More...

Detailed Description

Default configuration for the CST816S touch screen driver.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

Definition in file cst816s_params.h.

#include "board.h"
#include "cst816s.h"
+ Include dependency graph for cst816s_params.h:

Go to the source code of this file.

Macros

#define CST816S_NUMOF   ARRAY_SIZE(cst816s_params)
 The number of configured sensors.
 
#define CST816S_PARAM_SCREEN_IDS   0
 Default screen identifiers.
 

Variables

static const cst816s_params_t cst816s_params []
 Configure CST816S.
 
static const uint8_t cst816s_screen_ids []
 Configure screen identifiers.
 

Set default configuration parameters for the CST816S

#define CST816S_PARAM_I2C_DEV   I2C_DEV(0)
 
#define CST816S_PARAM_I2C_ADDR   (0x15)
 
#define CST816S_PARAM_IRQ   GPIO_PIN(0, 28)
 
#define CST816S_PARAM_IRQ_FLANK   GPIO_FALLING
 
#define CST816S_PARAM_RESET   GPIO_PIN(0, 10)
 
#define CST816S_PARAMS
 

Macro Definition Documentation

◆ CST816S_NUMOF

#define CST816S_NUMOF   ARRAY_SIZE(cst816s_params)

The number of configured sensors.

Definition at line 76 of file cst816s_params.h.

◆ CST816S_PARAM_I2C_ADDR

#define CST816S_PARAM_I2C_ADDR   (0x15)

Definition at line 40 of file cst816s_params.h.

◆ CST816S_PARAM_I2C_DEV

#define CST816S_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 36 of file cst816s_params.h.

◆ CST816S_PARAM_IRQ

#define CST816S_PARAM_IRQ   GPIO_PIN(0, 28)

Definition at line 44 of file cst816s_params.h.

◆ CST816S_PARAM_IRQ_FLANK

#define CST816S_PARAM_IRQ_FLANK   GPIO_FALLING

Definition at line 48 of file cst816s_params.h.

◆ CST816S_PARAM_RESET

#define CST816S_PARAM_RESET   GPIO_PIN(0, 10)

Definition at line 52 of file cst816s_params.h.

◆ CST816S_PARAM_SCREEN_IDS

#define CST816S_PARAM_SCREEN_IDS   0

Default screen identifiers.

Definition at line 82 of file cst816s_params.h.

◆ CST816S_PARAMS

#define CST816S_PARAMS
Value:
{ \
.i2c_dev = CST816S_PARAM_I2C_DEV, \
.i2c_addr = CST816S_PARAM_I2C_ADDR, \
.irq = CST816S_PARAM_IRQ, \
.irq_flank = CST816S_PARAM_IRQ_FLANK, \
.reset = CST816S_PARAM_RESET, \
}

Definition at line 55 of file cst816s_params.h.

Variable Documentation

◆ cst816s_params

const cst816s_params_t cst816s_params[]
static
Initial value:
=
{
CST816S_PARAMS
}

Configure CST816S.

Definition at line 68 of file cst816s_params.h.

◆ cst816s_screen_ids

const uint8_t cst816s_screen_ids[]
static
Initial value:
=
{
}
#define CST816S_PARAM_SCREEN_IDS
Default screen identifiers.

Configure screen identifiers.

Definition at line 88 of file cst816s_params.h.