Loading...
Searching...
No Matches
lcd_driver Struct Reference

LCD driver interface. More...

Detailed Description

LCD driver interface.

This defines the functions to access a LCD.

Definition at line 196 of file lcd.h.

#include <lcd.h>

Data Fields

int(* init )(lcd_t *dev, const lcd_params_t *params)
 Initialize LCD controller.
 
void(* set_area )(lcd_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2)
 Set the LCD work area.
 

Field Documentation

◆ init

int(* lcd_driver::init) (lcd_t *dev, const lcd_params_t *params)

Initialize LCD controller.

Parameters
[in]devPointer to the selected driver
Returns
0 on success
< 0 value in error

Definition at line 205 of file lcd.h.

◆ set_area

void(* lcd_driver::set_area) (lcd_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2)

Set the LCD work area.

This function pointer can be NULL if the controller specific driver does not require anything special. In this case the default implementation is used which sets the column addresses and the row addresses of the area including the coordinates of the opposite corner.

Parameters
[in]devPointer to the selected driver
[in]x1x coordinate of the first corner
[in]x2x coordinate of the opposite corner
[in]y1y coordinate of the first corner
[in]y2y coordinate of the opposite corner

Definition at line 222 of file lcd.h.


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