mikroSDK Reference Manual
EasyTFT Board Capacitive

EasyTFT Board Capacitive driver. More...

Data Structures

struct  tft7_board_s
 EasyTFT Board definition structure. More...
 
struct  tft7_cfg_t
 EasyTFT Board library configuration structure. More...
 

Macros

#define TFT7_MIN_BACKLIGHT   (0)
 Mapping for backlight control.
 
#define TFT7_BACKLIGHT_10   (0.1)
 
#define TFT7_BACKLIGHT_20   (0.2)
 
#define TFT7_BACKLIGHT_30   (0.3)
 
#define TFT7_BACKLIGHT_40   (0.4)
 
#define TFT7_BACKLIGHT_50   (0.5)
 
#define TFT7_BACKLIGHT_60   (0.6)
 
#define TFT7_BACKLIGHT_70   (0.7)
 
#define TFT7_BACKLIGHT_80   (0.8)
 
#define TFT7_BACKLIGHT_90   (0.9)
 
#define TFT7_MAX_BACKLIGHT   (1)
 
#define TFT_MIN_BACKLIGHT   TFT7_MIN_BACKLIGHT
 
#define TFT_MAX_BACKLIGHT   TFT7_MAX_BACKLIGHT
 
#define TFT7_MAP_CTRL_BITS(tft_cfg)
 Mapping control pins.
 
#define TFT_MAP_CTRL_BITS   TFT7_MAP_CTRL_BITS
 
#define TFT7_MAP_CTRL_8BIT(tft_cfg)
 Mapping configuration structure to 8 bit host interface defined with board.
 
#define TFT_MAP_CTRL_8BIT   TFT7_MAP_CTRL_8BIT
 
#define TFT7_MAP_CTRL_16BIT(tft_cfg)
 Mapping configuration structure to 16 bit host interface defined with board.
 
#define TFT_MAP_CTRL_16BIT   TFT7_MAP_CTRL_16BIT
 

Typedefs

typedef struct tft7_board_s tft7_board_t
 EasyTFT Board definition structure.
 

Enumerations

enum  tft7_host_interface_t { TFT7_HOST_INTERFACE_8BIT = 0 , TFT7_HOST_INTERFACE_16BIT }
 Host interface configuration enumeration.
 
enum  tft7_orientation_t { TFT_MODE_LANDSCAPE_UP = 0 , TFT_MODE_PORTRAIT_LEFT , TFT_MODE_LANDSCAPE_DOWN , TFT_MODE_PORTRAIT_RIGHT }
 Mapping structure for display orientation.
 

Functions list

void tft7_init (tft7_cfg_t *cfg, gl_driver_t *driver)
 Initializes TFT extension board module driver with given configuration.
 
uint16_t tft7_display_width ()
 Returns displays width in pixels.
 
uint16_t tft7_display_height ()
 Returns displays height in pixels.
 
void tft7_set_display_orientation (tft7_cfg_t *cfg, gl_driver_t *driver, tft7_orientation_t orientation)
 Sets the active display orientation to orientation.
 
void tft7_set_backlight (float intensity)
 Sets the active display backlight to intensity.
 

Variables

const tft7_board_t TFT_BOARD_EASY
 

Macro Definition Documentation

◆ TFT7_MAP_CTRL_16BIT

#define TFT7_MAP_CTRL_16BIT ( tft_cfg)
Value:
TFT7_MAP_CTRL_BITS( tft_cfg ); \
tft_cfg.data_channel_0 = TFT_16BIT_DATA_PORT_CH0; \
tft_cfg.data_channel_0_mask = TFT_16BIT_DATA_PORT_CH0_MASK; \
tft_cfg.data_channel_1 = TFT_16BIT_DATA_PORT_CH1; \
tft_cfg.data_channel_1_mask = TFT_16BIT_DATA_PORT_CH1_MASK; \
tft_cfg.host_interface = TFT7_HOST_INTERFACE_16BIT;
#define TFT7_MAP_CTRL_BITS(tft_cfg)
Mapping control pins.
Definition tft7.h:85

◆ TFT7_MAP_CTRL_8BIT

#define TFT7_MAP_CTRL_8BIT ( tft_cfg)
Value:
TFT7_MAP_CTRL_BITS( tft_cfg ); \
tft_cfg.data_channel_0 = TFT_8BIT_DATA_PORT_CH0; \
tft_cfg.data_channel_0_mask = TFT_8BIT_DATA_PORT_CH0_MASK; \
tft_cfg.host_interface = TFT7_HOST_INTERFACE_8BIT;

◆ TFT7_MAP_CTRL_BITS

#define TFT7_MAP_CTRL_BITS ( tft_cfg)
Value:
tft_cfg.tft_rst = TFT_RST;\
tft_cfg.tft_cs = TFT_CS; \
tft_cfg.tft_rs = TFT_RS; \
tft_cfg.tft_wr = TFT_WR; \
tft_cfg.tft_rd = TFT_RD; \

Function Documentation

◆ tft7_init()

void tft7_init ( tft7_cfg_t * cfg,
gl_driver_t * driver )
Parameters
cfgConfiguration structure.
driverTFT driver object structure used to store driver context data.
Returns
Returns TFT driver instance handle.

◆ tft7_set_backlight()

void tft7_set_backlight ( float intensity)
Parameters
intensityDisplay backlight intensity that will be set as active.
Returns
Nothing.

◆ tft7_set_display_orientation()

void tft7_set_display_orientation ( tft7_cfg_t * cfg,
gl_driver_t * driver,
tft7_orientation_t orientation )
Parameters
cfgConfiguration structure.
driverTFT driver object structure used to store driver context data.
orientationDisplay orientation that will be set as active.
Returns
Nothing.