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

Default configuration for STMPE811. More...

Detailed Description

Default configuration for STMPE811.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file stmpe811_params.h.

#include "kernel_defines.h"
#include "board.h"
#include "stmpe811.h"
#include "stmpe811_constants.h"
+ Include dependency graph for stmpe811_params.h:

Go to the source code of this file.

Macros

#define STMPE811_PARAM_SCREEN_IDS   0
 Default screen identifiers.
 

Variables

static const stmpe811_params_t stmpe811_params []
 Configure STMPE811.
 
static const uint8_t stmpe811_screen_ids []
 Configure screen identifiers.
 

Set default configuration parameters for the STMPE811

These default values are adapted for the STM32F429I-DISC1 board

#define STMPE811_PARAM_I2C_DEV   I2C_DEV(0)
 
#define STMPE811_PARAM_ADDR   (STMPE811_I2C_ADDR_DEFAULT)
 
#define STMPE811_PARAM_INT_PIN   GPIO_PIN(0, 15)
 
#define STMPE811_PARAM_XMAX   (320U)
 
#define STMPE811_PARAM_YMAX   (240U)
 
#define STMPE811_PARAM_XYCONV   (STMPE811_MIRROR_X | STMPE811_MIRROR_Y | STMPE811_SWAP_XY)
 
#define STMPE811_PARAMS
 

Macro Definition Documentation

◆ STMPE811_PARAM_ADDR

#define STMPE811_PARAM_ADDR   (STMPE811_I2C_ADDR_DEFAULT)

Definition at line 54 of file stmpe811_params.h.

◆ STMPE811_PARAM_I2C_DEV

#define STMPE811_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 51 of file stmpe811_params.h.

◆ STMPE811_PARAM_INT_PIN

#define STMPE811_PARAM_INT_PIN   GPIO_PIN(0, 15)

Definition at line 59 of file stmpe811_params.h.

◆ STMPE811_PARAM_SCREEN_IDS

#define STMPE811_PARAM_SCREEN_IDS   0

Default screen identifiers.

Definition at line 105 of file stmpe811_params.h.

◆ STMPE811_PARAM_XMAX

#define STMPE811_PARAM_XMAX   (320U)

Definition at line 62 of file stmpe811_params.h.

◆ STMPE811_PARAM_XYCONV

#define STMPE811_PARAM_XYCONV   (STMPE811_MIRROR_X | STMPE811_MIRROR_Y | STMPE811_SWAP_XY)

Definition at line 68 of file stmpe811_params.h.

◆ STMPE811_PARAM_YMAX

#define STMPE811_PARAM_YMAX   (240U)

Definition at line 65 of file stmpe811_params.h.

◆ STMPE811_PARAMS

#define STMPE811_PARAMS
Value:
{ .i2c = STMPE811_PARAM_I2C_DEV, \
.addr = STMPE811_PARAM_ADDR, \
.int_pin = STMPE811_PARAM_INT_PIN, \
.xmax = STMPE811_PARAM_XMAX, \
.ymax = STMPE811_PARAM_YMAX, \
.xyconv = STMPE811_PARAM_XYCONV, \
}
#define STMPE811_PARAM_XYCONV
stmpe811 driver parameters
Definition board.h:64

Definition at line 82 of file stmpe811_params.h.

Variable Documentation

◆ stmpe811_params

const stmpe811_params_t stmpe811_params[]
static
Initial value:
=
{
STMPE811_PARAMS
}

Configure STMPE811.

Definition at line 96 of file stmpe811_params.h.

◆ stmpe811_screen_ids

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

Configure screen identifiers.

Definition at line 111 of file stmpe811_params.h.