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

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

Collaboration diagram for LTDC Defines:

Modules

 LTDC Layer Number
 

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_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 h_sync, uint16_t v_sync, uint16_t width, uint16_t height)
 LTDC Windowing Setup. More...
 
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 STM32F7xx 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 150 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAH_SHIFT

#define LTDC_AWCR_AAH_SHIFT   0

Definition at line 149 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAW_MASK

#define LTDC_AWCR_AAW_MASK   0xfff

Definition at line 146 of file ltdc_common_f47.h.

◆ LTDC_AWCR_AAW_SHIFT

#define LTDC_AWCR_AAW_SHIFT   16

Definition at line 145 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 136 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AHBP_SHIFT

#define LTDC_BPCR_AHBP_SHIFT   16

Definition at line 135 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AVBP_MASK

#define LTDC_BPCR_AVBP_MASK   0x7FF

Definition at line 140 of file ltdc_common_f47.h.

◆ LTDC_BPCR_AVBP_SHIFT

#define LTDC_BPCR_AVBP_SHIFT   0

Definition at line 139 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 258 of file ltdc_common_f47.h.

◆ LTDC_CDSR_HSYNCS

#define LTDC_CDSR_HSYNCS   (1<<3)

Definition at line 260 of file ltdc_common_f47.h.

◆ LTDC_CDSR_VDES

#define LTDC_CDSR_VDES   (1<<0)

Definition at line 257 of file ltdc_common_f47.h.

◆ LTDC_CDSR_VSYNCS

#define LTDC_CDSR_VSYNCS   (1<<2)

Definition at line 259 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 250 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CXPOS_SHIFT

#define LTDC_CPSR_CXPOS_SHIFT   16

Definition at line 249 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CYPOS_MASK

#define LTDC_CPSR_CYPOS_MASK   0xffff

Definition at line 254 of file ltdc_common_f47.h.

◆ LTDC_CPSR_CYPOS_SHIFT

#define LTDC_CPSR_CYPOS_SHIFT   0

Definition at line 253 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 181 of file ltdc_common_f47.h.

◆ LTDC_GCR_DEPOL_ACTIVE_HIGH

#define LTDC_GCR_DEPOL_ACTIVE_HIGH   (1<<29)

Definition at line 170 of file ltdc_common_f47.h.

◆ LTDC_GCR_DEPOL_ACTIVE_LOW

#define LTDC_GCR_DEPOL_ACTIVE_LOW   (0<<29)

Definition at line 169 of file ltdc_common_f47.h.

◆ LTDC_GCR_DITHER

#define LTDC_GCR_DITHER   (1 << 16)

Definition at line 183 of file ltdc_common_f47.h.

◆ LTDC_GCR_DITHER_ENABLE

#define LTDC_GCR_DITHER_ENABLE   (1<<16)

Definition at line 164 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL

#define LTDC_GCR_HSPOL   (1 << 31)

Definition at line 179 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL_ACTIVE_HIGH

#define LTDC_GCR_HSPOL_ACTIVE_HIGH   (1<<31)

Definition at line 176 of file ltdc_common_f47.h.

◆ LTDC_GCR_HSPOL_ACTIVE_LOW

#define LTDC_GCR_HSPOL_ACTIVE_LOW   (0<<31)

Definition at line 175 of file ltdc_common_f47.h.

◆ LTDC_GCR_LTDC_ENABLE

#define LTDC_GCR_LTDC_ENABLE   (1<<0)

Definition at line 163 of file ltdc_common_f47.h.

◆ LTDC_GCR_LTDCEN

#define LTDC_GCR_LTDCEN   (1 << 0)

Definition at line 184 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL

#define LTDC_GCR_PCPOL   (1 << 28)

Definition at line 182 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL_ACTIVE_HIGH

#define LTDC_GCR_PCPOL_ACTIVE_HIGH   (1<<28)

Definition at line 167 of file ltdc_common_f47.h.

◆ LTDC_GCR_PCPOL_ACTIVE_LOW

#define LTDC_GCR_PCPOL_ACTIVE_LOW   (0<<28)

Definition at line 166 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL

#define LTDC_GCR_VSPOL   (1 << 30)

Definition at line 180 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL_ACTIVE_HIGH

#define LTDC_GCR_VSPOL_ACTIVE_HIGH   (1<<30)

Definition at line 173 of file ltdc_common_f47.h.

◆ LTDC_GCR_VSPOL_ACTIVE_LOW

#define LTDC_GCR_VSPOL_ACTIVE_LOW   (0<<30)

Definition at line 172 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 235 of file ltdc_common_f47.h.

◆ LTDC_ICR_CLIF

#define LTDC_ICR_CLIF   (1 << 0)

Definition at line 238 of file ltdc_common_f47.h.

◆ LTDC_ICR_CRRIF

#define LTDC_ICR_CRRIF   (1 << 3)

Definition at line 229 of file ltdc_common_f47.h.

◆ LTDC_ICR_CTERRIF

#define LTDC_ICR_CTERRIF   (1 << 2)

Definition at line 232 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 207 of file ltdc_common_f47.h.

◆ LTDC_IER_LIE

#define LTDC_IER_LIE   (1 << 0)

Definition at line 210 of file ltdc_common_f47.h.

◆ LTDC_IER_RRIE

#define LTDC_IER_RRIE   (1 << 3)

Definition at line 201 of file ltdc_common_f47.h.

◆ LTDC_IER_TERRIE

#define LTDC_IER_TERRIE   (1 << 2)

Definition at line 204 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 221 of file ltdc_common_f47.h.

◆ LTDC_ISR_LIF

#define LTDC_ISR_LIF   (1 << 0)

Definition at line 224 of file ltdc_common_f47.h.

◆ LTDC_ISR_RRIF

#define LTDC_ISR_RRIF   (1 << 3)

Definition at line 215 of file ltdc_common_f47.h.

◆ LTDC_ISR_TERRIF

#define LTDC_ISR_TERRIF   (1 << 2)

Definition at line 218 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_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 244 of file ltdc_common_f47.h.

◆ LTDC_LIPCR_LIPOS_SHIFT

#define LTDC_LIPCR_LIPOS_SHIFT   0

Definition at line 243 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 336 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 337 of file ltdc_common_f47.h.

◆ LTDC_LxBFCR_BF2_CONST_ALPHA

#define LTDC_LxBFCR_BF2_CONST_ALPHA   (0b101)

Definition at line 339 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 340 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 315 of file ltdc_common_f47.h.

◆ LTDC_LxCACR_CONSTA_SHIFT

#define LTDC_LxCACR_CONSTA_SHIFT   0

Definition at line 314 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 346 of file ltdc_common_f47.h.

◆ LTDC_LxCFBAR_CFBAR_SHIFT

#define LTDC_LxCFBAR_CFBAR_SHIFT   0

Definition at line 345 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 362 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLNR_CFBLNBR_SHIFT

#define LTDC_LxCFBLNR_CFBLNBR_SHIFT   0

Definition at line 361 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 356 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBLL_SHIFT

#define LTDC_LxCFBLR_CFBLL_SHIFT   0

Definition at line 355 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBP_MASK

#define LTDC_LxCFBLR_CFBP_MASK   0x1fff

Definition at line 352 of file ltdc_common_f47.h.

◆ LTDC_LxCFBLR_CFBP_SHIFT

#define LTDC_LxCFBLR_CFBP_SHIFT   16

Definition at line 351 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 299 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKBLUE_SHIFT

#define LTDC_LxCKCR_CKBLUE_SHIFT   16

Definition at line 298 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKGREEN_MASK

#define LTDC_LxCKCR_CKGREEN_MASK   0xff

Definition at line 295 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKGREEN_SHIFT

#define LTDC_LxCKCR_CKGREEN_SHIFT   16

Definition at line 294 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKRED_MASK

#define LTDC_LxCKCR_CKRED_MASK   0xff

Definition at line 291 of file ltdc_common_f47.h.

◆ LTDC_LxCKCR_CKRED_SHIFT

#define LTDC_LxCKCR_CKRED_SHIFT   16

Definition at line 290 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 380 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_BLUE_SHIFT

#define LTDC_LxCLUTWR_BLUE_SHIFT   0

Definition at line 379 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_CLUTADD_MASK

#define LTDC_LxCLUTWR_CLUTADD_MASK   0xff

Definition at line 368 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_CLUTADD_SHIFT

#define LTDC_LxCLUTWR_CLUTADD_SHIFT   24

Definition at line 367 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_GREEN_MASK

#define LTDC_LxCLUTWR_GREEN_MASK   0xff

Definition at line 376 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_GREEN_SHIFT

#define LTDC_LxCLUTWR_GREEN_SHIFT   8

Definition at line 375 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_RED_MASK

#define LTDC_LxCLUTWR_RED_MASK   0xff

Definition at line 372 of file ltdc_common_f47.h.

◆ LTDC_LxCLUTWR_RED_SHIFT

#define LTDC_LxCLUTWR_RED_SHIFT   16

Definition at line 371 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 264 of file ltdc_common_f47.h.

◆ LTDC_LxCR_COLTAB_ENABLE

#define LTDC_LxCR_COLTAB_ENABLE   (1<<4)

Definition at line 265 of file ltdc_common_f47.h.

◆ LTDC_LxCR_LAYER_ENABLE

#define LTDC_LxCR_LAYER_ENABLE   (1<<0)

Definition at line 263 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 321 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCALPHA_SHIFT

#define LTDC_LxDCCR_DCALPHA_SHIFT   24

Definition at line 320 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCBLUE_MASK

#define LTDC_LxDCCR_DCBLUE_MASK   1

Definition at line 333 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCBLUE_SHIFT

#define LTDC_LxDCCR_DCBLUE_SHIFT   0

Definition at line 332 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCGREEN_MASK

#define LTDC_LxDCCR_DCGREEN_MASK   1

Definition at line 329 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCGREEN_SHIFT

#define LTDC_LxDCCR_DCGREEN_SHIFT   8

Definition at line 328 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCRED_MASK

#define LTDC_LxDCCR_DCRED_MASK   1

Definition at line 325 of file ltdc_common_f47.h.

◆ LTDC_LxDCCR_DCRED_SHIFT

#define LTDC_LxDCCR_DCRED_SHIFT   16

Definition at line 324 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 308 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_AL88

#define LTDC_LxPFCR_AL88   (0b111)

Definition at line 309 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB1555

#define LTDC_LxPFCR_ARGB1555   (0b011)

Definition at line 305 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB4444

#define LTDC_LxPFCR_ARGB4444   (0b100)

Definition at line 306 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_ARGB8888

#define LTDC_LxPFCR_ARGB8888   (0b000)

Definition at line 302 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_L8

#define LTDC_LxPFCR_L8   (0b101)

Definition at line 307 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_RGB565

#define LTDC_LxPFCR_RGB565   (0b010)

Definition at line 304 of file ltdc_common_f47.h.

◆ LTDC_LxPFCR_RGB888

#define LTDC_LxPFCR_RGB888   (0b001)

Definition at line 303 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 271 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSPPOS_SHIFT

#define LTDC_LxWHPCR_WHSPPOS_SHIFT   16

Definition at line 270 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSTPOS_MASK

#define LTDC_LxWHPCR_WHSTPOS_MASK   0xfff

Definition at line 275 of file ltdc_common_f47.h.

◆ LTDC_LxWHPCR_WHSTPOS_SHIFT

#define LTDC_LxWHPCR_WHSTPOS_SHIFT   0

Definition at line 274 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 281 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSPPOS_SHIFT

#define LTDC_LxWVPCR_WVSPPOS_SHIFT   16

Definition at line 280 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSTPOS_MASK

#define LTDC_LxWVPCR_WVSTPOS_MASK   0x7ff

Definition at line 285 of file ltdc_common_f47.h.

◆ LTDC_LxWVPCR_WVSTPOS_SHIFT

#define LTDC_LxWVPCR_WVSTPOS_SHIFT   0

Definition at line 284 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 192 of file ltdc_common_f47.h.

◆ LTDC_SRCR_RELOAD_IMR

#define LTDC_SRCR_RELOAD_IMR   (1<<0)

Definition at line 195 of file ltdc_common_f47.h.

◆ LTDC_SRCR_RELOAD_VBR

#define LTDC_SRCR_RELOAD_VBR   (1<<1)

Definition at line 196 of file ltdc_common_f47.h.

◆ LTDC_SRCR_VBR

#define LTDC_SRCR_VBR   (1 << 1)

Definition at line 189 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 126 of file ltdc_common_f47.h.

◆ LTDC_SSCR_HSW_SHIFT

#define LTDC_SSCR_HSW_SHIFT   16

Definition at line 125 of file ltdc_common_f47.h.

◆ LTDC_SSCR_VSH_MASK

#define LTDC_SSCR_VSH_MASK   0x7ff

Definition at line 130 of file ltdc_common_f47.h.

◆ LTDC_SSCR_VSH_SHIFT

#define LTDC_SSCR_VSH_SHIFT   0

Definition at line 129 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 160 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALH_SHIFT

#define LTDC_TWCR_TOTALH_SHIFT   0

Definition at line 159 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALW_MASK

#define LTDC_TWCR_TOTALW_MASK   0xfff

Definition at line 156 of file ltdc_common_f47.h.

◆ LTDC_TWCR_TOTALW_SHIFT

#define LTDC_TWCR_TOTALW_SHIFT   16

Definition at line 155 of file ltdc_common_f47.h.

Function Documentation

◆ ltdc_ctrl_disable()

static void ltdc_ctrl_disable ( uint32_t  ctrl_flags)
inlinestatic

Definition at line 392 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 387 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 409 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 416 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 421 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 426 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 481 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 530 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 437 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 432 of file ltdc_common_f47.h.

References LTDC_LxCR.

◆ ltdc_reload()

static void ltdc_reload ( uint32_t  reload_flags)
inlinestatic

Definition at line 397 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 402 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 470 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 442 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 455 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 460 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 492 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 486 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 476 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 450 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  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.

◆ 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 519 of file ltdc_common_f47.h.

References LTDC_SRCR, LTDC_SRCR_RELOAD_IMR, and LTDC_SRCR_RELOAD_VBR.