libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
LTDC Defines

Defined Constants and Types for the STM32F4xx LCD TFT Display Controller More...

Collaboration diagram for LTDC Defines:

Macros

#define LIBOPENCM3_STM32_COMMON_LTDC_COMMON_F47_H_
 
#define LTDC_SSCR   (MMIO32(LTDC_BASE + 0x08))
 LTDC. More...
 
#define LTDC_BPCR   (MMIO32(LTDC_BASE + 0x0C))
 
#define LTDC_AWCR   (MMIO32(LTDC_BASE + 0x10))
 
#define LTDC_TWCR   (MMIO32(LTDC_BASE + 0x14))
 
#define LTDC_GCR   (MMIO32(LTDC_BASE + 0x18))
 
#define LTDC_SRCR   (MMIO32(LTDC_BASE + 0x24))
 
#define LTDC_BCCR   (MMIO32(LTDC_BASE + 0x2C))
 
#define LTDC_IER   (MMIO32(LTDC_BASE + 0x34))
 
#define LTDC_ISR   (MMIO32(LTDC_BASE + 0x38))
 
#define LTDC_ICR   (MMIO32(LTDC_BASE + 0x3C))
 
#define LTDC_LIPCR   (MMIO32(LTDC_BASE + 0x40))
 
#define LTDC_CPSR   (MMIO32(LTDC_BASE + 0x44))
 
#define LTDC_CDSR   (MMIO32(LTDC_BASE + 0x48))
 
#define LTDC_LxCR(x)   (MMIO32(LTDC_BASE + 0x84 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CR   LTDC_LxCR(LTDC_LAYER_1)
 
#define LTDC_L2CR   LTDC_LxCR(LTDC_LAYER_2)
 
#define LTDC_LxWHPCR(x)   (MMIO32(LTDC_BASE + 0x88 + 0x80 * ((x) - 1)))
 
#define LTDC_L1WHPCR   LTDC_LxWHPCR(LTDC_LAYER_1)
 
#define LTDC_L2WHPCR   LTDC_LxWHPCR(LTDC_LAYER_2)
 
#define LTDC_LxWVPCR(x)   (MMIO32(LTDC_BASE + 0x8C + 0x80 * ((x) - 1)))
 
#define LTDC_L1WVPCR   LTDC_LxWVPCR(LTDC_LAYER_1)
 
#define LTDC_L2WVPCR   LTDC_LxWVPCR(LTDC_LAYER_2)
 
#define LTDC_LxCKCR(x)   (MMIO32(LTDC_BASE + 0x90 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CKCR   LTDC_LxCKCR(LTDC_LAYER_1)
 
#define LTDC_L2CKCR   LTDC_LxCKCR(LTDC_LAYER_2)
 
#define LTDC_LxPFCR(x)   (MMIO32(LTDC_BASE + 0x94 + 0x80 * ((x) - 1)))
 
#define LTDC_L1PFCR   LTDC_LxPFCR(LTDC_LAYER_1)
 
#define LTDC_L2PFCR   LTDC_LxPFCR(LTDC_LAYER_2)
 
#define LTDC_LxCACR(x)   (MMIO32(LTDC_BASE + 0x98 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CACR   LTDC_LxCACR(LTDC_LAYER_1)
 
#define LTDC_L2CACR   LTDC_LxCACR(LTDC_LAYER_2)
 
#define LTDC_LxDCCR(x)   (MMIO32(LTDC_BASE + 0x9C + 0x80 * ((x) - 1)))
 
#define LTDC_L1DCCR   LTDC_LxDCCR(LTDC_LAYER_1)
 
#define LTDC_L2DCCR   LTDC_LxDCCR(LTDC_LAYER_2)
 
#define LTDC_LxBFCR(x)   (MMIO32(LTDC_BASE + 0xA0 + 0x80 * ((x) - 1)))
 
#define LTDC_L1BFCR   LTDC_LxBFCR(LTDC_LAYER_1)
 
#define LTDC_L2BFCR   LTDC_LxBFCR(LTDC_LAYER_2)
 
#define LTDC_LxCFBAR(x)   (MMIO32(LTDC_BASE + 0xAC + 0x80 * ((x) - 1)))
 
#define LTDC_L1CFBAR   LTDC_LxCFBAR(LTDC_LAYER_1)
 
#define LTDC_L2CFBAR   LTDC_LxCFBAR(LTDC_LAYER_2)
 
#define LTDC_LxCFBLR(x)   (MMIO32(LTDC_BASE + 0xB0 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CFBLR   LTDC_LxCFBLR(LTDC_LAYER_1)
 
#define LTDC_L2CFBLR   LTDC_LxCFBLR(LTDC_LAYER_2)
 
#define LTDC_LxCFBLNR(x)   (MMIO32(LTDC_BASE + 0xB4 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CFBLNR   LTDC_LxCFBLNR(LTDC_LAYER_1)
 
#define LTDC_L2CFBLNR   LTDC_LxCFBLNR(LTDC_LAYER_2)
 
#define LTDC_LxCLUTWR(x)   (MMIO32(LTDC_BASE + 0xC4 + 0x80 * ((x) - 1)))
 
#define LTDC_L1CLUTWR   LTDC_LxCLUTWR(LTDC_LAYER_1)
 
#define LTDC_L2CLUTWR   LTDC_LxCLUTWR(LTDC_LAYER_2)
 
#define LTDC_LAYER_1   1
 
#define LTDC_LAYER_2   2
 
#define LTDC_SSCR_HSW_SHIFT   16
 
#define LTDC_SSCR_HSW_MASK   0xfff
 
#define LTDC_SSCR_VSH_SHIFT   0
 
#define LTDC_SSCR_VSH_MASK   0x7ff
 
#define LTDC_BPCR_AHBP_SHIFT   16
 
#define LTDC_BPCR_AHBP_MASK   0xfff
 
#define LTDC_BPCR_AVBP_SHIFT   0
 
#define LTDC_BPCR_AVBP_MASK   0x7FF
 
#define LTDC_AWCR_AAW_SHIFT   16
 
#define LTDC_AWCR_AAW_MASK   0xfff
 
#define LTDC_AWCR_AAH_SHIFT   0
 
#define LTDC_AWCR_AAH_MASK   0x7ff
 
#define LTDC_TWCR_TOTALW_SHIFT   16
 
#define LTDC_TWCR_TOTALW_MASK   0xfff
 
#define LTDC_TWCR_TOTALH_SHIFT   0
 
#define LTDC_TWCR_TOTALH_MASK   0x7ff
 
#define LTDC_GCR_LTDC_ENABLE   (1<<0)
 
#define LTDC_GCR_DITHER_ENABLE   (1<<16)
 
#define LTDC_GCR_PCPOL_ACTIVE_LOW   (0<<28)
 
#define LTDC_GCR_PCPOL_ACTIVE_HIGH   (1<<28)
 
#define LTDC_GCR_DEPOL_ACTIVE_LOW   (0<<29)
 
#define LTDC_GCR_DEPOL_ACTIVE_HIGH   (1<<29)
 
#define LTDC_GCR_VSPOL_ACTIVE_LOW   (0<<30)
 
#define LTDC_GCR_VSPOL_ACTIVE_HIGH   (1<<30)
 
#define LTDC_GCR_HSPOL_ACTIVE_LOW   (0<<31)
 
#define LTDC_GCR_HSPOL_ACTIVE_HIGH   (1<<31)
 
#define LTDC_GCR_HSPOL   (1 << 31)
 
#define LTDC_GCR_VSPOL   (1 << 30)
 
#define LTDC_GCR_DEPOL   (1 << 29)
 
#define LTDC_GCR_PCPOL   (1 << 28)
 
#define LTDC_GCR_DITHER   (1 << 16)
 
#define LTDC_GCR_LTDCEN   (1 << 0)
 
#define LTDC_SRCR_VBR   (1 << 1)
 
#define LTDC_SRCR_IMR   (1 << 0)
 
#define LTDC_SRCR_RELOAD_IMR   (1<<0)
 
#define LTDC_SRCR_RELOAD_VBR   (1<<1)
 
#define LTDC_IER_RRIE   (1 << 3)
 
#define LTDC_IER_TERRIE   (1 << 2)
 
#define LTDC_IER_FUIE   (1 << 1)
 
#define LTDC_IER_LIE   (1 << 0)
 
#define LTDC_ISR_RRIF   (1 << 3)
 
#define LTDC_ISR_TERRIF   (1 << 2)
 
#define LTDC_ISR_FUIF   (1 << 1)
 
#define LTDC_ISR_LIF   (1 << 0)
 
#define LTDC_ICR_CRRIF   (1 << 3)
 
#define LTDC_ICR_CTERRIF   (1 << 2)
 
#define LTDC_ICR_CFUIF   (1 << 1)
 
#define LTDC_ICR_CLIF   (1 << 0)
 
#define LTDC_LIPCR_LIPOS_SHIFT   0
 
#define LTDC_LIPCR_LIPOS_MASK   0x7ff
 
#define LTDC_CPSR_CXPOS_SHIFT   16
 
#define LTDC_CPSR_CXPOS_MASK   0xffff
 
#define LTDC_CPSR_CYPOS_SHIFT   0
 
#define LTDC_CPSR_CYPOS_MASK   0xffff
 
#define LTDC_CDSR_VDES   (1<<0)
 
#define LTDC_CDSR_HDES   (1<<1)
 
#define LTDC_CDSR_VSYNCS   (1<<2)
 
#define LTDC_CDSR_HSYNCS   (1<<3)
 
#define LTDC_LxCR_LAYER_ENABLE   (1<<0)
 
#define LTDC_LxCR_COLKEY_ENABLE   (1<<1)
 
#define LTDC_LxCR_COLTAB_ENABLE   (1<<4)
 
#define LTDC_LxWHPCR_WHSPPOS_SHIFT   16
 
#define LTDC_LxWHPCR_WHSPPOS_MASK   0xfff
 
#define LTDC_LxWHPCR_WHSTPOS_SHIFT   0
 
#define LTDC_LxWHPCR_WHSTPOS_MASK   0xfff
 
#define LTDC_LxWVPCR_WVSPPOS_SHIFT   16
 
#define LTDC_LxWVPCR_WVSPPOS_MASK   0x7ff
 
#define LTDC_LxWVPCR_WVSTPOS_SHIFT   0
 
#define LTDC_LxWVPCR_WVSTPOS_MASK   0x7ff
 
#define LTDC_LxCKCR_CKRED_SHIFT   16
 
#define LTDC_LxCKCR_CKRED_MASK   0xff
 
#define LTDC_LxCKCR_CKGREEN_SHIFT   16
 
#define LTDC_LxCKCR_CKGREEN_MASK   0xff
 
#define LTDC_LxCKCR_CKBLUE_SHIFT   16
 
#define LTDC_LxCKCR_CKBLUE_MASK   0xff
 
#define LTDC_LxPFCR_ARGB8888   (0b000)
 
#define LTDC_LxPFCR_RGB888   (0b001)
 
#define LTDC_LxPFCR_RGB565   (0b010)
 
#define LTDC_LxPFCR_ARGB1555   (0b011)
 
#define LTDC_LxPFCR_ARGB4444   (0b100)
 
#define LTDC_LxPFCR_L8   (0b101)
 
#define LTDC_LxPFCR_AL44   (0b110)
 
#define LTDC_LxPFCR_AL88   (0b111)
 
#define LTDC_LxCACR_CONSTA_SHIFT   0
 
#define LTDC_LxCACR_CONSTA_MASK   0xff
 
#define LTDC_LxDCCR_DCALPHA_SHIFT   24
 
#define LTDC_LxDCCR_DCALPHA_MASK   1
 
#define LTDC_LxDCCR_DCRED_SHIFT   16
 
#define LTDC_LxDCCR_DCRED_MASK   1
 
#define LTDC_LxDCCR_DCGREEN_SHIFT   8
 
#define LTDC_LxDCCR_DCGREEN_MASK   1
 
#define LTDC_LxDCCR_DCBLUE_SHIFT   0
 
#define LTDC_LxDCCR_DCBLUE_MASK   1
 
#define LTDC_LxBFCR_BF1_CONST_ALPHA   (0b100)
 
#define LTDC_LxBFCR_BF1_PIXEL_ALPHA_x_CONST_ALPHA   (0b110)
 
#define LTDC_LxBFCR_BF2_CONST_ALPHA   (0b101)
 
#define LTDC_LxBFCR_BF2_PIXEL_ALPHA_x_CONST_ALPHA   (0b111)
 
#define LTDC_LxCFBAR_CFBAR_SHIFT   0
 
#define LTDC_LxCFBAR_CFBAR_MASK   0xffffffff
 
#define LTDC_LxCFBLR_CFBP_SHIFT   16
 
#define LTDC_LxCFBLR_CFBP_MASK   0x1fff
 
#define LTDC_LxCFBLR_CFBLL_SHIFT   0
 
#define LTDC_LxCFBLR_CFBLL_MASK   0x1fff
 
#define LTDC_LxCFBLNR_CFBLNBR_SHIFT   0
 
#define LTDC_LxCFBLNR_CFBLNBR_MASK   0x3ff
 
#define LTDC_LxCLUTWR_CLUTADD_SHIFT   24
 
#define LTDC_LxCLUTWR_CLUTADD_MASK   0xff
 
#define LTDC_LxCLUTWR_RED_SHIFT   16
 
#define LTDC_LxCLUTWR_RED_MASK   0xff
 
#define LTDC_LxCLUTWR_GREEN_SHIFT   8
 
#define LTDC_LxCLUTWR_GREEN_MASK   0xff
 
#define LTDC_LxCLUTWR_BLUE_SHIFT   0
 
#define LTDC_LxCLUTWR_BLUE_MASK   0xff
 

Functions

static void ltdc_ctrl_enable (uint32_t ctrl_flags)
 simple helper macros More...
 
static void ltdc_ctrl_disable (uint32_t ctrl_flags)
 
static void ltdc_reload (uint32_t reload_flags)
 
static void ltdc_set_background_color (uint8_t r, uint8_t g, uint8_t b)
 
static void ltdc_get_current_position (uint16_t *x, uint16_t *y)
 
static uint16_t ltdc_get_current_position_x (void)
 
static uint16_t ltdc_get_current_position_y (void)
 
static uint32_t ltdc_get_display_status (uint32_t status_flags)
 
static void ltdc_layer_ctrl_enable (uint32_t layer, uint32_t ctrl_flags)
 
static void ltdc_layer_ctrl_disable (uint32_t layer, uint32_t ctrl_flags)
 
static void ltdc_set_color_key (uint32_t layer, uint8_t r, uint8_t g, uint8_t b)
 
static void ltdc_set_pixel_format (uint32_t layer, uint32_t format)
 
static void ltdc_set_constant_alpha (uint32_t layer, uint8_t alpha)
 
static void ltdc_set_default_colors (uint32_t layer, uint8_t a, uint8_t r, uint8_t g, uint8_t b)
 
static void ltdc_set_blending_factors (uint32_t layer, uint8_t bf1, uint8_t bf2)
 
static void ltdc_set_fbuffer_address (uint32_t layer, uint32_t address)
 
static uint32_t ltdc_get_fbuffer_address (uint32_t layer)
 
static void ltdc_set_fb_line_length (uint32_t layer, uint16_t len, uint16_t pitch)
 
static void ltdc_set_fb_line_count (uint32_t layer, uint16_t linecount)
 
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 active_width, uint16_t active_height)
 
static bool LTDC_SRCR_IS_RELOADING (void)
 Helper function to wait for SRCR reload to complete or so. More...
 
static uint32_t ltdc_get_rgb888_from_rgb565 (uint16_t rgb565)
 color conversion helper function (simulate the ltdc color conversion) More...
 

Detailed Description

Defined Constants and Types for the STM32F4xx LCD TFT Display Controller

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 TFT display controller (LTDC) in the STM32F4xx and STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ LIBOPENCM3_STM32_COMMON_LTDC_COMMON_F47_H_

#define LIBOPENCM3_STM32_COMMON_LTDC_COMMON_F47_H_

Definition at line 38 of file ltdc_common_f47.h.

◆ LTDC_AWCR

#define LTDC_AWCR   (MMIO32(LTDC_BASE + 0x10))

Definition at line 51 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAH_MASK

#define LTDC_AWCR_AAH_MASK   0x7ff

Definition at line 144 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAH_SHIFT

#define LTDC_AWCR_AAH_SHIFT   0

Definition at line 143 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAW_MASK

#define LTDC_AWCR_AAW_MASK   0xfff

Definition at line 140 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAW_SHIFT

#define LTDC_AWCR_AAW_SHIFT   16

Definition at line 139 of file ltdc_common_f47.h.

◆ LTDC_BCCR

#define LTDC_BCCR   (MMIO32(LTDC_BASE + 0x2C))

Definition at line 55 of file ltdc_common_f47.h.

◆ LTDC_BPCR

#define LTDC_BPCR   (MMIO32(LTDC_BASE + 0x0C))

Definition at line 50 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AHBP_MASK

#define LTDC_BPCR_AHBP_MASK   0xfff

Definition at line 130 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AHBP_SHIFT

#define LTDC_BPCR_AHBP_SHIFT   16

Definition at line 129 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AVBP_MASK

#define LTDC_BPCR_AVBP_MASK   0x7FF

Definition at line 134 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AVBP_SHIFT

#define LTDC_BPCR_AVBP_SHIFT   0

Definition at line 133 of file ltdc_common_f47.h.

◆ LTDC_CDSR

#define LTDC_CDSR   (MMIO32(LTDC_BASE + 0x48))

Definition at line 61 of file ltdc_common_f47.h.

◆ LTDC_CDSR_HDES

#define LTDC_CDSR_HDES   (1<<1)

Definition at line 252 of file ltdc_common_f47.h.

◆ LTDC_CDSR_HSYNCS

#define LTDC_CDSR_HSYNCS   (1<<3)

Definition at line 254 of file ltdc_common_f47.h.

◆ LTDC_CDSR_VDES

#define LTDC_CDSR_VDES   (1<<0)

Definition at line 251 of file ltdc_common_f47.h.

◆ LTDC_CDSR_VSYNCS

#define LTDC_CDSR_VSYNCS   (1<<2)

Definition at line 253 of file ltdc_common_f47.h.

◆ LTDC_CPSR

#define LTDC_CPSR   (MMIO32(LTDC_BASE + 0x44))

Definition at line 60 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CXPOS_MASK

#define LTDC_CPSR_CXPOS_MASK   0xffff

Definition at line 244 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CXPOS_SHIFT

#define LTDC_CPSR_CXPOS_SHIFT   16

Definition at line 243 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CYPOS_MASK

#define LTDC_CPSR_CYPOS_MASK   0xffff

Definition at line 248 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CYPOS_SHIFT

#define LTDC_CPSR_CYPOS_SHIFT   0

Definition at line 247 of file ltdc_common_f47.h.

◆ LTDC_GCR

#define LTDC_GCR   (MMIO32(LTDC_BASE + 0x18))

Definition at line 53 of file ltdc_common_f47.h.

◆ LTDC_GCR_DEPOL

#define LTDC_GCR_DEPOL   (1 << 29)

Definition at line 175 of file ltdc_common_f47.h.

◆ LTDC_GCR_DEPOL_ACTIVE_HIGH

#define LTDC_GCR_DEPOL_ACTIVE_HIGH   (1<<29)

Definition at line 164 of file ltdc_common_f47.h.

◆ LTDC_GCR_DEPOL_ACTIVE_LOW

#define LTDC_GCR_DEPOL_ACTIVE_LOW   (0<<29)

Definition at line 163 of file ltdc_common_f47.h.

◆ LTDC_GCR_DITHER

#define LTDC_GCR_DITHER   (1 << 16)

Definition at line 177 of file ltdc_common_f47.h.

◆ LTDC_GCR_DITHER_ENABLE

#define LTDC_GCR_DITHER_ENABLE   (1<<16)

Definition at line 158 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL

#define LTDC_GCR_HSPOL   (1 << 31)

Definition at line 173 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL_ACTIVE_HIGH

#define LTDC_GCR_HSPOL_ACTIVE_HIGH   (1<<31)

Definition at line 170 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL_ACTIVE_LOW

#define LTDC_GCR_HSPOL_ACTIVE_LOW   (0<<31)

Definition at line 169 of file ltdc_common_f47.h.

◆ LTDC_GCR_LTDC_ENABLE

#define LTDC_GCR_LTDC_ENABLE   (1<<0)

Definition at line 157 of file ltdc_common_f47.h.

◆ LTDC_GCR_LTDCEN

#define LTDC_GCR_LTDCEN   (1 << 0)

Definition at line 178 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL

#define LTDC_GCR_PCPOL   (1 << 28)

Definition at line 176 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL_ACTIVE_HIGH

#define LTDC_GCR_PCPOL_ACTIVE_HIGH   (1<<28)

Definition at line 161 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL_ACTIVE_LOW

#define LTDC_GCR_PCPOL_ACTIVE_LOW   (0<<28)

Definition at line 160 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL

#define LTDC_GCR_VSPOL   (1 << 30)

Definition at line 174 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL_ACTIVE_HIGH

#define LTDC_GCR_VSPOL_ACTIVE_HIGH   (1<<30)

Definition at line 167 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL_ACTIVE_LOW

#define LTDC_GCR_VSPOL_ACTIVE_LOW   (0<<30)

Definition at line 166 of file ltdc_common_f47.h.

◆ LTDC_ICR

#define LTDC_ICR   (MMIO32(LTDC_BASE + 0x3C))

Definition at line 58 of file ltdc_common_f47.h.

◆ LTDC_ICR_CFUIF

#define LTDC_ICR_CFUIF   (1 << 1)

Definition at line 229 of file ltdc_common_f47.h.

◆ LTDC_ICR_CLIF

#define LTDC_ICR_CLIF   (1 << 0)

Definition at line 232 of file ltdc_common_f47.h.

◆ LTDC_ICR_CRRIF

#define LTDC_ICR_CRRIF   (1 << 3)

Definition at line 223 of file ltdc_common_f47.h.

◆ LTDC_ICR_CTERRIF

#define LTDC_ICR_CTERRIF   (1 << 2)

Definition at line 226 of file ltdc_common_f47.h.

◆ LTDC_IER

#define LTDC_IER   (MMIO32(LTDC_BASE + 0x34))

Definition at line 56 of file ltdc_common_f47.h.

◆ LTDC_IER_FUIE

#define LTDC_IER_FUIE   (1 << 1)

Definition at line 201 of file ltdc_common_f47.h.

◆ LTDC_IER_LIE

#define LTDC_IER_LIE   (1 << 0)

Definition at line 204 of file ltdc_common_f47.h.

◆ LTDC_IER_RRIE

#define LTDC_IER_RRIE   (1 << 3)

Definition at line 195 of file ltdc_common_f47.h.

◆ LTDC_IER_TERRIE

#define LTDC_IER_TERRIE   (1 << 2)

Definition at line 198 of file ltdc_common_f47.h.

◆ LTDC_ISR

#define LTDC_ISR   (MMIO32(LTDC_BASE + 0x38))

Definition at line 57 of file ltdc_common_f47.h.

◆ LTDC_ISR_FUIF

#define LTDC_ISR_FUIF   (1 << 1)

Definition at line 215 of file ltdc_common_f47.h.

◆ LTDC_ISR_LIF

#define LTDC_ISR_LIF   (1 << 0)

Definition at line 218 of file ltdc_common_f47.h.

◆ LTDC_ISR_RRIF

#define LTDC_ISR_RRIF   (1 << 3)

Definition at line 209 of file ltdc_common_f47.h.

◆ LTDC_ISR_TERRIF

#define LTDC_ISR_TERRIF   (1 << 2)

Definition at line 212 of file ltdc_common_f47.h.

◆ LTDC_L1BFCR

#define LTDC_L1BFCR   LTDC_LxBFCR(LTDC_LAYER_1)

Definition at line 93 of file ltdc_common_f47.h.

◆ LTDC_L1CACR

#define LTDC_L1CACR   LTDC_LxCACR(LTDC_LAYER_1)

Definition at line 85 of file ltdc_common_f47.h.

◆ LTDC_L1CFBAR

#define LTDC_L1CFBAR   LTDC_LxCFBAR(LTDC_LAYER_1)

Definition at line 97 of file ltdc_common_f47.h.

◆ LTDC_L1CFBLNR

#define LTDC_L1CFBLNR   LTDC_LxCFBLNR(LTDC_LAYER_1)

Definition at line 105 of file ltdc_common_f47.h.

◆ LTDC_L1CFBLR

#define LTDC_L1CFBLR   LTDC_LxCFBLR(LTDC_LAYER_1)

Definition at line 101 of file ltdc_common_f47.h.

◆ LTDC_L1CKCR

#define LTDC_L1CKCR   LTDC_LxCKCR(LTDC_LAYER_1)

Definition at line 77 of file ltdc_common_f47.h.

◆ LTDC_L1CLUTWR

#define LTDC_L1CLUTWR   LTDC_LxCLUTWR(LTDC_LAYER_1)

Definition at line 109 of file ltdc_common_f47.h.

◆ LTDC_L1CR

#define LTDC_L1CR   LTDC_LxCR(LTDC_LAYER_1)

Definition at line 65 of file ltdc_common_f47.h.

◆ LTDC_L1DCCR

#define LTDC_L1DCCR   LTDC_LxDCCR(LTDC_LAYER_1)

Definition at line 89 of file ltdc_common_f47.h.

◆ LTDC_L1PFCR

#define LTDC_L1PFCR   LTDC_LxPFCR(LTDC_LAYER_1)

Definition at line 81 of file ltdc_common_f47.h.

◆ LTDC_L1WHPCR

#define LTDC_L1WHPCR   LTDC_LxWHPCR(LTDC_LAYER_1)

Definition at line 69 of file ltdc_common_f47.h.

◆ LTDC_L1WVPCR

#define LTDC_L1WVPCR   LTDC_LxWVPCR(LTDC_LAYER_1)

Definition at line 73 of file ltdc_common_f47.h.

◆ LTDC_L2BFCR

#define LTDC_L2BFCR   LTDC_LxBFCR(LTDC_LAYER_2)

Definition at line 94 of file ltdc_common_f47.h.

◆ LTDC_L2CACR

#define LTDC_L2CACR   LTDC_LxCACR(LTDC_LAYER_2)

Definition at line 86 of file ltdc_common_f47.h.

◆ LTDC_L2CFBAR

#define LTDC_L2CFBAR   LTDC_LxCFBAR(LTDC_LAYER_2)

Definition at line 98 of file ltdc_common_f47.h.

◆ LTDC_L2CFBLNR

#define LTDC_L2CFBLNR   LTDC_LxCFBLNR(LTDC_LAYER_2)

Definition at line 106 of file ltdc_common_f47.h.

◆ LTDC_L2CFBLR

#define LTDC_L2CFBLR   LTDC_LxCFBLR(LTDC_LAYER_2)

Definition at line 102 of file ltdc_common_f47.h.

◆ LTDC_L2CKCR

#define LTDC_L2CKCR   LTDC_LxCKCR(LTDC_LAYER_2)

Definition at line 78 of file ltdc_common_f47.h.

◆ LTDC_L2CLUTWR

#define LTDC_L2CLUTWR   LTDC_LxCLUTWR(LTDC_LAYER_2)

Definition at line 110 of file ltdc_common_f47.h.

◆ LTDC_L2CR

#define LTDC_L2CR   LTDC_LxCR(LTDC_LAYER_2)

Definition at line 66 of file ltdc_common_f47.h.

◆ LTDC_L2DCCR

#define LTDC_L2DCCR   LTDC_LxDCCR(LTDC_LAYER_2)

Definition at line 90 of file ltdc_common_f47.h.

◆ LTDC_L2PFCR

#define LTDC_L2PFCR   LTDC_LxPFCR(LTDC_LAYER_2)

Definition at line 82 of file ltdc_common_f47.h.

◆ LTDC_L2WHPCR

#define LTDC_L2WHPCR   LTDC_LxWHPCR(LTDC_LAYER_2)

Definition at line 70 of file ltdc_common_f47.h.

◆ LTDC_L2WVPCR

#define LTDC_L2WVPCR   LTDC_LxWVPCR(LTDC_LAYER_2)

Definition at line 74 of file ltdc_common_f47.h.

◆ LTDC_LAYER_1

#define LTDC_LAYER_1   1

Definition at line 113 of file ltdc_common_f47.h.

◆ LTDC_LAYER_2

#define LTDC_LAYER_2   2

Definition at line 114 of file ltdc_common_f47.h.

◆ LTDC_LIPCR

#define LTDC_LIPCR   (MMIO32(LTDC_BASE + 0x40))

Definition at line 59 of file ltdc_common_f47.h.

◆ LTDC_LIPCR_LIPOS_MASK

#define LTDC_LIPCR_LIPOS_MASK   0x7ff

Definition at line 238 of file ltdc_common_f47.h.

◆ LTDC_LIPCR_LIPOS_SHIFT

#define LTDC_LIPCR_LIPOS_SHIFT   0

Definition at line 237 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR

#define LTDC_LxBFCR (   x)    (MMIO32(LTDC_BASE + 0xA0 + 0x80 * ((x) - 1)))

Definition at line 92 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR_BF1_CONST_ALPHA

#define LTDC_LxBFCR_BF1_CONST_ALPHA   (0b100)

Definition at line 330 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR_BF1_PIXEL_ALPHA_x_CONST_ALPHA

#define LTDC_LxBFCR_BF1_PIXEL_ALPHA_x_CONST_ALPHA   (0b110)

Definition at line 331 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR_BF2_CONST_ALPHA

#define LTDC_LxBFCR_BF2_CONST_ALPHA   (0b101)

Definition at line 333 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR_BF2_PIXEL_ALPHA_x_CONST_ALPHA

#define LTDC_LxBFCR_BF2_PIXEL_ALPHA_x_CONST_ALPHA   (0b111)

Definition at line 334 of file ltdc_common_f47.h.

◆ LTDC_LxCACR

#define LTDC_LxCACR (   x)    (MMIO32(LTDC_BASE + 0x98 + 0x80 * ((x) - 1)))

Definition at line 84 of file ltdc_common_f47.h.

◆ LTDC_LxCACR_CONSTA_MASK

#define LTDC_LxCACR_CONSTA_MASK   0xff

Definition at line 309 of file ltdc_common_f47.h.

◆ LTDC_LxCACR_CONSTA_SHIFT

#define LTDC_LxCACR_CONSTA_SHIFT   0

Definition at line 308 of file ltdc_common_f47.h.

◆ LTDC_LxCFBAR

#define LTDC_LxCFBAR (   x)    (MMIO32(LTDC_BASE + 0xAC + 0x80 * ((x) - 1)))

Definition at line 96 of file ltdc_common_f47.h.

◆ LTDC_LxCFBAR_CFBAR_MASK

#define LTDC_LxCFBAR_CFBAR_MASK   0xffffffff

Definition at line 340 of file ltdc_common_f47.h.

◆ LTDC_LxCFBAR_CFBAR_SHIFT

#define LTDC_LxCFBAR_CFBAR_SHIFT   0

Definition at line 339 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLNR

#define LTDC_LxCFBLNR (   x)    (MMIO32(LTDC_BASE + 0xB4 + 0x80 * ((x) - 1)))

Definition at line 104 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLNR_CFBLNBR_MASK

#define LTDC_LxCFBLNR_CFBLNBR_MASK   0x3ff

Definition at line 356 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLNR_CFBLNBR_SHIFT

#define LTDC_LxCFBLNR_CFBLNBR_SHIFT   0

Definition at line 355 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR

#define LTDC_LxCFBLR (   x)    (MMIO32(LTDC_BASE + 0xB0 + 0x80 * ((x) - 1)))

Definition at line 100 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBLL_MASK

#define LTDC_LxCFBLR_CFBLL_MASK   0x1fff

Definition at line 350 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBLL_SHIFT

#define LTDC_LxCFBLR_CFBLL_SHIFT   0

Definition at line 349 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBP_MASK

#define LTDC_LxCFBLR_CFBP_MASK   0x1fff

Definition at line 346 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBP_SHIFT

#define LTDC_LxCFBLR_CFBP_SHIFT   16

Definition at line 345 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR

#define LTDC_LxCKCR (   x)    (MMIO32(LTDC_BASE + 0x90 + 0x80 * ((x) - 1)))

Definition at line 76 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKBLUE_MASK

#define LTDC_LxCKCR_CKBLUE_MASK   0xff

Definition at line 293 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKBLUE_SHIFT

#define LTDC_LxCKCR_CKBLUE_SHIFT   16

Definition at line 292 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKGREEN_MASK

#define LTDC_LxCKCR_CKGREEN_MASK   0xff

Definition at line 289 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKGREEN_SHIFT

#define LTDC_LxCKCR_CKGREEN_SHIFT   16

Definition at line 288 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKRED_MASK

#define LTDC_LxCKCR_CKRED_MASK   0xff

Definition at line 285 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKRED_SHIFT

#define LTDC_LxCKCR_CKRED_SHIFT   16

Definition at line 284 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR

#define LTDC_LxCLUTWR (   x)    (MMIO32(LTDC_BASE + 0xC4 + 0x80 * ((x) - 1)))

Definition at line 108 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_BLUE_MASK

#define LTDC_LxCLUTWR_BLUE_MASK   0xff

Definition at line 374 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_BLUE_SHIFT

#define LTDC_LxCLUTWR_BLUE_SHIFT   0

Definition at line 373 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_CLUTADD_MASK

#define LTDC_LxCLUTWR_CLUTADD_MASK   0xff

Definition at line 362 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_CLUTADD_SHIFT

#define LTDC_LxCLUTWR_CLUTADD_SHIFT   24

Definition at line 361 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_GREEN_MASK

#define LTDC_LxCLUTWR_GREEN_MASK   0xff

Definition at line 370 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_GREEN_SHIFT

#define LTDC_LxCLUTWR_GREEN_SHIFT   8

Definition at line 369 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_RED_MASK

#define LTDC_LxCLUTWR_RED_MASK   0xff

Definition at line 366 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_RED_SHIFT

#define LTDC_LxCLUTWR_RED_SHIFT   16

Definition at line 365 of file ltdc_common_f47.h.

◆ LTDC_LxCR

#define LTDC_LxCR (   x)    (MMIO32(LTDC_BASE + 0x84 + 0x80 * ((x) - 1)))

Definition at line 64 of file ltdc_common_f47.h.

◆ LTDC_LxCR_COLKEY_ENABLE

#define LTDC_LxCR_COLKEY_ENABLE   (1<<1)

Definition at line 258 of file ltdc_common_f47.h.

◆ LTDC_LxCR_COLTAB_ENABLE

#define LTDC_LxCR_COLTAB_ENABLE   (1<<4)

Definition at line 259 of file ltdc_common_f47.h.

◆ LTDC_LxCR_LAYER_ENABLE

#define LTDC_LxCR_LAYER_ENABLE   (1<<0)

Definition at line 257 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR

#define LTDC_LxDCCR (   x)    (MMIO32(LTDC_BASE + 0x9C + 0x80 * ((x) - 1)))

Definition at line 88 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCALPHA_MASK

#define LTDC_LxDCCR_DCALPHA_MASK   1

Definition at line 315 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCALPHA_SHIFT

#define LTDC_LxDCCR_DCALPHA_SHIFT   24

Definition at line 314 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCBLUE_MASK

#define LTDC_LxDCCR_DCBLUE_MASK   1

Definition at line 327 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCBLUE_SHIFT

#define LTDC_LxDCCR_DCBLUE_SHIFT   0

Definition at line 326 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCGREEN_MASK

#define LTDC_LxDCCR_DCGREEN_MASK   1

Definition at line 323 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCGREEN_SHIFT

#define LTDC_LxDCCR_DCGREEN_SHIFT   8

Definition at line 322 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCRED_MASK

#define LTDC_LxDCCR_DCRED_MASK   1

Definition at line 319 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCRED_SHIFT

#define LTDC_LxDCCR_DCRED_SHIFT   16

Definition at line 318 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR

#define LTDC_LxPFCR (   x)    (MMIO32(LTDC_BASE + 0x94 + 0x80 * ((x) - 1)))

Definition at line 80 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_AL44

#define LTDC_LxPFCR_AL44   (0b110)

Definition at line 302 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_AL88

#define LTDC_LxPFCR_AL88   (0b111)

Definition at line 303 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB1555

#define LTDC_LxPFCR_ARGB1555   (0b011)

Definition at line 299 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB4444

#define LTDC_LxPFCR_ARGB4444   (0b100)

Definition at line 300 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB8888

#define LTDC_LxPFCR_ARGB8888   (0b000)

Definition at line 296 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_L8

#define LTDC_LxPFCR_L8   (0b101)

Definition at line 301 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_RGB565

#define LTDC_LxPFCR_RGB565   (0b010)

Definition at line 298 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_RGB888

#define LTDC_LxPFCR_RGB888   (0b001)

Definition at line 297 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR

#define LTDC_LxWHPCR (   x)    (MMIO32(LTDC_BASE + 0x88 + 0x80 * ((x) - 1)))

Definition at line 68 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSPPOS_MASK

#define LTDC_LxWHPCR_WHSPPOS_MASK   0xfff

Definition at line 265 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSPPOS_SHIFT

#define LTDC_LxWHPCR_WHSPPOS_SHIFT   16

Definition at line 264 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSTPOS_MASK

#define LTDC_LxWHPCR_WHSTPOS_MASK   0xfff

Definition at line 269 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSTPOS_SHIFT

#define LTDC_LxWHPCR_WHSTPOS_SHIFT   0

Definition at line 268 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR

#define LTDC_LxWVPCR (   x)    (MMIO32(LTDC_BASE + 0x8C + 0x80 * ((x) - 1)))

Definition at line 72 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSPPOS_MASK

#define LTDC_LxWVPCR_WVSPPOS_MASK   0x7ff

Definition at line 275 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSPPOS_SHIFT

#define LTDC_LxWVPCR_WVSPPOS_SHIFT   16

Definition at line 274 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSTPOS_MASK

#define LTDC_LxWVPCR_WVSTPOS_MASK   0x7ff

Definition at line 279 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSTPOS_SHIFT

#define LTDC_LxWVPCR_WVSTPOS_SHIFT   0

Definition at line 278 of file ltdc_common_f47.h.

◆ LTDC_SRCR

#define LTDC_SRCR   (MMIO32(LTDC_BASE + 0x24))

Definition at line 54 of file ltdc_common_f47.h.

◆ LTDC_SRCR_IMR

#define LTDC_SRCR_IMR   (1 << 0)

Definition at line 186 of file ltdc_common_f47.h.

◆ LTDC_SRCR_RELOAD_IMR

#define LTDC_SRCR_RELOAD_IMR   (1<<0)

Definition at line 189 of file ltdc_common_f47.h.

◆ LTDC_SRCR_RELOAD_VBR

#define LTDC_SRCR_RELOAD_VBR   (1<<1)

Definition at line 190 of file ltdc_common_f47.h.

◆ LTDC_SRCR_VBR

#define LTDC_SRCR_VBR   (1 << 1)

Definition at line 183 of file ltdc_common_f47.h.

◆ LTDC_SSCR

#define LTDC_SSCR   (MMIO32(LTDC_BASE + 0x08))

LTDC.

Definition at line 49 of file ltdc_common_f47.h.

◆ LTDC_SSCR_HSW_MASK

#define LTDC_SSCR_HSW_MASK   0xfff

Definition at line 120 of file ltdc_common_f47.h.

◆ LTDC_SSCR_HSW_SHIFT

#define LTDC_SSCR_HSW_SHIFT   16

Definition at line 119 of file ltdc_common_f47.h.

◆ LTDC_SSCR_VSH_MASK

#define LTDC_SSCR_VSH_MASK   0x7ff

Definition at line 124 of file ltdc_common_f47.h.

◆ LTDC_SSCR_VSH_SHIFT

#define LTDC_SSCR_VSH_SHIFT   0

Definition at line 123 of file ltdc_common_f47.h.

◆ LTDC_TWCR

#define LTDC_TWCR   (MMIO32(LTDC_BASE + 0x14))

Definition at line 52 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALH_MASK

#define LTDC_TWCR_TOTALH_MASK   0x7ff

Definition at line 154 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALH_SHIFT

#define LTDC_TWCR_TOTALH_SHIFT   0

Definition at line 153 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALW_MASK

#define LTDC_TWCR_TOTALW_MASK   0xfff

Definition at line 150 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALW_SHIFT

#define LTDC_TWCR_TOTALW_SHIFT   16

Definition at line 149 of file ltdc_common_f47.h.

Function Documentation

◆ ltdc_ctrl_disable()

static void ltdc_ctrl_disable ( uint32_t  ctrl_flags)
inlinestatic

Definition at line 386 of file ltdc_common_f47.h.

References LTDC_GCR.

◆ ltdc_ctrl_enable()

static void ltdc_ctrl_enable ( uint32_t  ctrl_flags)
inlinestatic

simple helper macros

Definition at line 381 of file ltdc_common_f47.h.

References LTDC_GCR.

◆ ltdc_get_current_position()

static void ltdc_get_current_position ( uint16_t *  x,
uint16_t *  y 
)
inlinestatic

Definition at line 403 of file ltdc_common_f47.h.

References LTDC_CPSR.

◆ ltdc_get_current_position_x()

static uint16_t ltdc_get_current_position_x ( void  )
inlinestatic

Definition at line 410 of file ltdc_common_f47.h.

References LTDC_CPSR.

◆ ltdc_get_current_position_y()

static uint16_t ltdc_get_current_position_y ( void  )
inlinestatic

Definition at line 415 of file ltdc_common_f47.h.

References LTDC_CPSR.

◆ ltdc_get_display_status()

static uint32_t ltdc_get_display_status ( uint32_t  status_flags)
inlinestatic

Definition at line 420 of file ltdc_common_f47.h.

References LTDC_CDSR.

◆ ltdc_get_fbuffer_address()

static uint32_t ltdc_get_fbuffer_address ( uint32_t  layer)
inlinestatic

Definition at line 475 of file ltdc_common_f47.h.

References LTDC_LxCFBAR.

◆ ltdc_get_rgb888_from_rgb565()

static uint32_t ltdc_get_rgb888_from_rgb565 ( uint16_t  rgb565)
inlinestatic

color conversion helper function (simulate the ltdc color conversion)

Definition at line 523 of file ltdc_common_f47.h.

◆ ltdc_layer_ctrl_disable()

static void ltdc_layer_ctrl_disable ( uint32_t  layer,
uint32_t  ctrl_flags 
)
inlinestatic

Definition at line 431 of file ltdc_common_f47.h.

References LTDC_LxCR.

◆ ltdc_layer_ctrl_enable()

static void ltdc_layer_ctrl_enable ( uint32_t  layer,
uint32_t  ctrl_flags 
)
inlinestatic

Definition at line 426 of file ltdc_common_f47.h.

References LTDC_LxCR.

◆ ltdc_reload()

static void ltdc_reload ( uint32_t  reload_flags)
inlinestatic

Definition at line 391 of file ltdc_common_f47.h.

References LTDC_SRCR.

◆ ltdc_set_background_color()

static void ltdc_set_background_color ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inlinestatic

Definition at line 396 of file ltdc_common_f47.h.

References LTDC_BCCR.

◆ ltdc_set_blending_factors()

static void ltdc_set_blending_factors ( uint32_t  layer,
uint8_t  bf1,
uint8_t  bf2 
)
inlinestatic

Definition at line 464 of file ltdc_common_f47.h.

References LTDC_LxBFCR.

◆ ltdc_set_color_key()

static void ltdc_set_color_key ( uint32_t  layer,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inlinestatic

Definition at line 436 of file ltdc_common_f47.h.

References LTDC_LxCKCR.

◆ ltdc_set_constant_alpha()

static void ltdc_set_constant_alpha ( uint32_t  layer,
uint8_t  alpha 
)
inlinestatic

Definition at line 449 of file ltdc_common_f47.h.

References LTDC_LxCACR.

◆ ltdc_set_default_colors()

static void ltdc_set_default_colors ( uint32_t  layer,
uint8_t  a,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inlinestatic

Definition at line 454 of file ltdc_common_f47.h.

References LTDC_LxDCCR.

◆ ltdc_set_fb_line_count()

static void ltdc_set_fb_line_count ( uint32_t  layer,
uint16_t  linecount 
)
inlinestatic

Definition at line 486 of file ltdc_common_f47.h.

References LTDC_LxCFBLNR.

◆ ltdc_set_fb_line_length()

static void ltdc_set_fb_line_length ( uint32_t  layer,
uint16_t  len,
uint16_t  pitch 
)
inlinestatic

Definition at line 480 of file ltdc_common_f47.h.

References LTDC_LxCFBLR.

◆ ltdc_set_fbuffer_address()

static void ltdc_set_fbuffer_address ( uint32_t  layer,
uint32_t  address 
)
inlinestatic

Definition at line 470 of file ltdc_common_f47.h.

References LTDC_LxCFBAR.

◆ ltdc_set_pixel_format()

static void ltdc_set_pixel_format ( uint32_t  layer,
uint32_t  format 
)
inlinestatic

Definition at line 444 of file ltdc_common_f47.h.

References LTDC_LxPFCR.

◆ 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  active_width,
uint16_t  active_height 
)

Definition at line 70 of file ltdc_common_f47.c.

References LTDC_LxWHPCR, and LTDC_LxWVPCR.

◆ LTDC_SRCR_IS_RELOADING()

static bool LTDC_SRCR_IS_RELOADING ( void  )
inlinestatic

Helper function to wait for SRCR reload to complete or so.

Definition at line 512 of file ltdc_common_f47.h.

References LTDC_SRCR, LTDC_SRCR_RELOAD_IMR, and LTDC_SRCR_RELOAD_VBR.