nRF5 SDK v17.0.2
Data Fields
nrf_lcd_t Struct Reference

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_tp_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]invertIf 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]xHorizontal coordinate of the pixel.
[in]yVertical coordinate of the pixel.
[in]colorColor 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]xHorizontal coordinate of the point where to start drawing the rectangle.
[in]yVertical coordinate of the point where to start drawing the rectangle.
[in]widthWidth of the image.
[in]heightHeight of the image.
[in]colorColor 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]rotationRotation as enumerated value.

The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated