The MCUXpresso SDK provides a peripheral driver for the DPR module of MCUXpresso SDK devices.
The DPR works with Prefetch Resolve Gasket (PRG) to prefetch the frame buffer data for display controller.
struct dpr_buffer_config_t |
uint16_t dpr_buffer_config_t::width |
uint16_t dpr_buffer_config_t::height |
uint16_t dpr_buffer_config_t::strideBytes |
Enumerator |
---|
kDPR_DataType16Bpp |
16 bits per pixel.
|
kDPR_DataType32Bpp |
32 bits per pixel.
|
void DPR_Init |
( |
DPR_Type * |
base | ) |
|
- Parameters
-
base | DPR peripheral address. |
void DPR_Deinit |
( |
DPR_Type * |
base | ) |
|
- Parameters
-
base | DPR peripheral address. |
- Parameters
-
base | DPR peripheral address. |
config | Pointer to the configuration. |
The default configuration is
config->width = 1080U;
config->height = 1920U;
config->strideBytes = 4U * 1080U;
- Parameters
-
config | Pointer to the configuration. |
static void DPR_Start |
( |
DPR_Type * |
base | ) |
|
|
inlinestatic |
This function trigers the DPR to load the new configuration and start processing the next frame. It should be called before display started.
- Parameters
-
base | DPR peripheral address. |
static void DPR_StartRepeat |
( |
DPR_Type * |
base | ) |
|
|
inlinestatic |
This function should be called after display started. The display signal trigers the new configuration loading repeatly.
- Parameters
-
base | DPR peripheral address. |
static void DPR_Stop |
( |
DPR_Type * |
base | ) |
|
|
inlinestatic |
- Parameters
-
base | DPR peripheral address. |
static void DPR_SetBufferAddr |
( |
DPR_Type * |
base, |
|
|
uint32_t |
addr |
|
) |
| |
|
inlinestatic |
- Parameters
-
base | DPR peripheral address. |
addr | Frame buffer address. |