libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
LTDC peripheral API
Collaboration diagram for LTDC peripheral API:

Functions

void ltdc_set_tft_sync_timings (uint16_t sync_width, uint16_t sync_height, uint16_t h_back_porch, uint16_t v_back_porch, uint16_t active_width, uint16_t active_height, uint16_t h_front_porch, uint16_t v_front_porch)
 more complicated helper functions More...
 
void ltdc_setup_windowing (uint8_t layer_number, uint16_t h_back_porch, uint16_t v_back_porch, uint16_t h_sync, uint16_t v_sync, uint16_t width, uint16_t height)
 LTDC Windowing Setup. More...
 

Detailed Description

Version
1.0.0
Author
© 2014 Oliver Meier h2obr.nosp@m.ain@.nosp@m.gmail.nosp@m..com
Date
5 December 2014

This library supports the LCD controller (LTDC) in the STM32F4xx and STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.

LGPL License Terms libopencm3 License

Function Documentation

◆ ltdc_set_tft_sync_timings()

void ltdc_set_tft_sync_timings ( uint16_t  sync_width,
uint16_t  sync_height,
uint16_t  h_back_porch,
uint16_t  v_back_porch,
uint16_t  active_width,
uint16_t  active_height,
uint16_t  h_front_porch,
uint16_t  v_front_porch 
)

more complicated helper functions

Definition at line 41 of file ltdc_common_f47.c.

References LTDC_AWCR, LTDC_BPCR, LTDC_SSCR, and LTDC_TWCR.

◆ ltdc_setup_windowing()

void ltdc_setup_windowing ( uint8_t  layer_number,
uint16_t  h_back_porch,
uint16_t  v_back_porch,
uint16_t  h_sync,
uint16_t  v_sync,
uint16_t  width,
uint16_t  height 
)

LTDC Windowing Setup.

Parameters
[in]layer_numberunsigned int8. LTDC Layer Number
[in]h_back_porchunsigned int16. Horizontal Back Porch
[in]v_back_porchunsigned int16. Vertical Back Porch
[in]h_syncunsigned int16. Horizontal Sync
[in]v_syncunsigned int16. Vertical Sync
[in]widthunsigned int16. Width of the screen (e.g. LCD is 320x240, width would be 320)
[in]heightunsigned int16. Height of the screen (e.g. LCD is 320x240, height would be 240)

Definition at line 82 of file ltdc_common_f47.c.

References LTDC_LxWHPCR, LTDC_LxWHPCR_WHSPPOS_SHIFT, LTDC_LxWHPCR_WHSTPOS_SHIFT, LTDC_LxWVPCR, LTDC_LxWVPCR_WVSPPOS_SHIFT, and LTDC_LxWVPCR_WVSTPOS_SHIFT.