mikroSDK Reference Manual
ILI9341 Display Controller Driver

ILI9341 Display Controller Driver API reference. More...

Modules

 ILI9341 Display Controller Commands
 ILI9341 Display Controller Command List.
 

Functions list

void ili9341_init (ili9341_cfg_t *cfg, gl_driver_t *__generic_ptr driver, ili9341_t *ctx)
 ILI9341 Display Controller initialization. More...
 
void ili9341_default_cfg (ili9341_cfg_t *cfg)
 ILI9341 Default Configuration Function. More...
 
void ili9341_write_command (uint8_t command)
 Send command to ILI9341 Display Controller. More...
 
void ili9341_write_param (uint8_t param)
 Send data to ILI9341 Display Controller. More...
 
uint16_t ili9341_get_display_width ()
 Get display width. More...
 
uint16_t ili9341_get_display_height ()
 Get display height. More...
 
void ili9341_backlight_control_init (ili9341_cfg_t *cfg, ili9341_t *ctx)
 ILI9341 Display Controller PWM initialization. More...
 
void ili9341_set_backlight_intensity (float intensity, ili9341_t *ctx)
 ILI9341 Display controller backlight intensity. More...
 
void ili9341_rotate (ili9341_t *ctx, tp_rotate_t *rotate)
 Function used for changing display rotation. More...
 

Detailed Description

API for configuring and manipulating ILI9341 Display Controller driver.

Function Documentation

◆ ili9341_init()

void ili9341_init ( ili9341_cfg_t cfg,
gl_driver_t *__generic_ptr  driver,
ili9341_t ctx 
)

This function initializes ILI9341 Display Controller context object to default values and allows driver interface object to be linked with ILI9341 Display Controller driver functions.

Parameters
[in]cfg: ILI9341 configuration object. See ili9341_cfg_t structure definition for detailed explanation.
[out]driver: Graphics Library driver interface object. See gl_driver_t structure definition and gl_set_driver function for detailed explanation.
[out]ctxInitialized ILI9341 context structure. See ili9341_t for more information about the context structure.
Returns
Nothing.

◆ ili9341_default_cfg()

void ili9341_default_cfg ( ili9341_cfg_t cfg)

This function initializes PWM default configuration.

Parameters
[in]cfg: ILI9341 configuration object. See ili9341_cfg_t structure definition for detailed explanation.
Return values
Nothing.

◆ ili9341_write_command()

void ili9341_write_command ( uint8_t  command)

This function sends command to ILI9341 Display Controller.

Parameters
[in]command: command to be sent. See ILI9341 Display Controller Commands for command list.
Returns
Nothing.

◆ ili9341_write_param()

void ili9341_write_param ( uint8_t  param)

This function sends data to ILI9341 Display Controller.

Parameters
[in]param: data to be sent.
Returns
Nothing.

◆ ili9341_get_display_width()

uint16_t ili9341_get_display_width ( )

This function returns the width of the ILI9341 controller based display.

Returns
Display width.

◆ ili9341_get_display_height()

uint16_t ili9341_get_display_height ( )

This function returns the height of the ILI9341 controller based display.

Returns
Display height.

◆ ili9341_backlight_control_init()

void ili9341_backlight_control_init ( ili9341_cfg_t cfg,
ili9341_t ctx 
)

Initialize PWM module for controlling display backlight intensity.

Returns
Nothing.

◆ ili9341_set_backlight_intensity()

void ili9341_set_backlight_intensity ( float  intensity,
ili9341_t ctx 
)

Set active intensity of display controller.

Returns
Nothing.

◆ ili9341_rotate()

void ili9341_rotate ( ili9341_t ctx,
tp_rotate_t rotate 
)

This function is necessary for interfacing with touch panel library as it's address is stored in tp_drv_t driver structure during the ILI9341 context initialization.

Parameters
[out]ctxInitialized ILI9341 context structure. See ili9341_t for more information about the context structure.
[in]rotateStructure with desired orientation set.
Returns
Nothing.