nrf_lcd_t

nRF5 SDK v15.0.0

LCD instance type. More...

#include <nrf_lcd.h>

Data Fields

ret_code_t (* lcd_init )(void)
Function for initializing the LCD controller.
void(* lcd_uninit )(void)
Function for uninitializing the LCD controller.
void(* lcd_pixel_draw )(uint16_t x, uint16_t y, uint32_t color)
Function for drawing a single pixel. More...
void(* lcd_rect_draw )(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint32_t color)
Function for drawing a filled rectangle. More...
void(* lcd_display )(void)
Function for displaying data from an internal frame buffer. More...
void(* lcd_rotation_set )( nrf_lcd_rotation_t rotation)
Function for rotating the screen. More...
void(* lcd_display_invert )(bool invert)
Function for setting inversion of colors on the screen. More...
lcd_cb_t * p_lcd_cb
Pointer to the LCD instance control block.

Detailed Description

LCD instance type.

This structure provides generic API for LCDs.

Field Documentation

void(* nrf_lcd_t::lcd_display)(void)

Function for displaying data from an internal frame buffer.

This function may be used when functions for drawing do not write directly to LCD but to an internal frame buffer. It could be implemented to write data from this buffer to LCD.

void(* nrf_lcd_t::lcd_display_invert)(bool invert)

Function for setting inversion of colors on the screen.

Parameters
[in] invert If true, inversion will be set.
void(* nrf_lcd_t::lcd_pixel_draw)(uint16_t x, uint16_t y, uint32_t color)

Function for drawing a single pixel.

Parameters
[in] x Horizontal coordinate of the pixel.
[in] y Vertical coordinate of the pixel.
[in] color Color of the pixel in LCD accepted format.
void(* nrf_lcd_t::lcd_rect_draw)(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint32_t color)

Function for drawing a filled rectangle.

Parameters
[in] x Horizontal coordinate of the point where to start drawing the rectangle.
[in] y Vertical coordinate of the point where to start drawing the rectangle.
[in] width Width of the image.
[in] height Height of the image.
[in] color Color with which to fill the rectangle in LCD accepted format.
void(* nrf_lcd_t::lcd_rotation_set)( nrf_lcd_rotation_t rotation)

Function for rotating the screen.

Parameters
[in] rotation Rotation as enumerated value.
  • components/libraries/gfx/nrf_lcd.h