Loading...
Searching...
No Matches
cpu_ltdc.h File Reference

LTDC CPU specific definitions for the STM32 family. More...

Detailed Description

LTDC CPU specific definitions for the STM32 family.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file cpu_ltdc.h.

#include <stdint.h>
#include "periph/cpu_gpio.h"
+ Include dependency graph for cpu_ltdc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ltdc_gpio_t
 LTDC GPIO configuration. More...
 
struct  ltdc_conf_t
 LTDC Peripheral configuration. More...
 
void ltdc_init (void)
 Initialize the LTDC (LCD-TFT Display Controller) peripheral.
 
void ltdc_clear (void)
 Clear the LTDC display.
 
void ltdc_map (uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, const uint16_t *color)
 Map a buffer of RGB565 (16bit depth) colors to the display.
 
void ltdc_fill (uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, const uint16_t color)
 Fill a region of the display with the same color.
 

Function Documentation

◆ ltdc_fill()

void ltdc_fill ( uint16_t  x1,
uint16_t  x2,
uint16_t  y1,
uint16_t  y2,
const uint16_t  color 
)

Fill a region of the display with the same color.

Parameters
[in]x1horizontal start position
[in]x2horizontal end position (included)
[in]y1vertical start position
[in]y2vertical end position (included)
[in]colorthe color value in RGB565 format (16bit depth)

◆ ltdc_map()

void ltdc_map ( uint16_t  x1,
uint16_t  x2,
uint16_t  y1,
uint16_t  y2,
const uint16_t *  color 
)

Map a buffer of RGB565 (16bit depth) colors to the display.

Parameters
[in]x1horizontal start position
[in]x2horizontal end position (included)
[in]y1vertical start position
[in]y2vertical end position (included)
[in]colorthe color buffer