libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
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... | |
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
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 | ||
) |
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.
[in] | layer_number | unsigned int8. LTDC Layer Number |
[in] | h_back_porch | unsigned int16. Horizontal Back Porch |
[in] | v_back_porch | unsigned int16. Vertical Back Porch |
[in] | h_sync | unsigned int16. Horizontal Sync |
[in] | v_sync | unsigned int16. Vertical Sync |
[in] | width | unsigned int16. Width of the screen (e.g. LCD is 320x240, width would be 320) |
[in] | height | unsigned 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.