lv_nxp_elcdif.h

Driver for NXP's ELCD

Functions

lv_display_t *lv_nxp_display_elcdif_create_direct(LCDIF_Type *base, const elcdif_rgb_mode_config_t *config, void *frame_buffer1, void *frame_buffer2, size_t buf_size)

Attach LVGL to ELCDIF using DIRECT rendering mode. ELCDIF should be already initialized.

Parameters:
  • base – The NXP eLCD controller base address

  • config – NXP eLCD config object

  • frame_buffer1 – pointer the first frame buffers

  • frame_buffer2 – pointer the second frame buffers

  • buf_size – size of a buffer in bytes (must be at least as large as the screen)

Returns:

a display object initialized and registerd on the LVGL runtime

lv_display_t *lv_nxp_display_elcdif_create_partial(LCDIF_Type *base, const elcdif_rgb_mode_config_t *config, void *frame_buffer1, void *frame_buffer2, size_t buf_size)

Attach LVGL to ELCDIF using PARTIAL rendering mode. ELCDIF should be already initialized.

Parameters:
  • base – The NXP eLCD controller base address

  • config – NXP eLCD config object

  • frame_buffer1 – pointer the first frame buffers

  • frame_buffer2 – pointer the second frame buffers

  • buf_size – size of a buffer in bytes

Returns:

a display object initialized and registerd on the LVGL runtime

void lv_nxp_display_elcdif_event_handler(const lv_display_t *disp)

Call this function on the LCD Interrupt Service Routine It tells to LVGL what to do when a framebuffer is transmitted to the LCD panel

Note

: the parameter disp is tipycally the return value after lv_nxp_display_elcdif_create_direct has been sucessfully executed

Parameters:

disp – The display instance that contains the eLCD related data