LCD driver interface. More...
LCD driver interface.
This defines the functions to access a LCD.
#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. | |
int(* lcd_driver::init) (lcd_t *dev, const lcd_params_t *params) |
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.
[in] | dev | Pointer to the selected driver |
[in] | x1 | x coordinate of the first corner |
[in] | x2 | x coordinate of the opposite corner |
[in] | y1 | y coordinate of the first corner |
[in] | y2 | y coordinate of the opposite corner |