The MCUXpresso SDK provides a peripheral driver for the PRG module of MCUXpresso SDK devices.
The PRG works with Display Prefetch Resolve (DPR) to prefetch the frame buffer data for display controller.
struct prg_buffer_config_t |
uint16_t prg_buffer_config_t::width |
uint16_t prg_buffer_config_t::height |
uint16_t prg_buffer_config_t::strideBytes |
Enumerator |
---|
kPRG_DataType32Bpp |
32 bits per pixel.
|
kPRG_DataType24Bpp |
24 bits per pixel.
|
kPRG_DataType16Bpp |
16 bits per pixel.
|
kPRG_DataType8Bpp |
8 bits per pixel.
|
void PRG_Init |
( |
PRG_Type * |
base | ) |
|
- Parameters
-
base | PRG peripheral address. |
void PRG_Deinit |
( |
PRG_Type * |
base | ) |
|
- Parameters
-
base | PRG peripheral address. |
static void PRG_Enable |
( |
PRG_Type * |
base, |
|
|
bool |
enable |
|
) |
| |
|
inlinestatic |
If enabled, display controller fetches data from PRG. If disabled, display controller fetches data from frame buffer.
- Parameters
-
base | PRG peripheral address. |
enable | Pass in true to enable, false to disable |
static void PRG_EnableShadowLoad |
( |
PRG_Type * |
base, |
|
|
bool |
enable |
|
) |
| |
|
inlinestatic |
If disabled, the function PRG_UpdateRegister makes the new configurations take effect immediately. If enabled, after calling PRG_UpdateRegister, the new configurations take effect at next frame.
- Parameters
-
base | PRG peripheral address. |
enable | Pass in true to enable, false to disable |
static void PRG_UpdateRegister |
( |
PRG_Type * |
base | ) |
|
|
inlinestatic |
New configurations set to PRG registers will not take effect immediately until this function is called. If the shadow is disabled by PRG_EnableShadowLoad, the new configurations take effect immediately after this function is called. If the shadow is enabled by PRG_EnableShadowLoad, the new configurations take effect at next frame after this function is called.
- Parameters
-
base | PRG peripheral address. |
- Parameters
-
base | PRG 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 PRG_SetBufferAddr |
( |
PRG_Type * |
base, |
|
|
uint32_t |
addr |
|
) |
| |
|
inlinestatic |
- Parameters
-
base | PRG peripheral address. |
addr | Frame buffer address. |