MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
DPR: Display Prefetch Resolve

Overview

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.

Data Structures

struct  dpr_buffer_config_t
 Frame buffer configuration. More...
 

Macros

#define FSL_DPR_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 Driver version. More...
 

Enumerations

enum  dpr_data_type_t {
  kDPR_DataType16Bpp = 1U,
  kDPR_DataType32Bpp = 2U
}
 Data type of the frame buffer. More...
 

Functions

void DPR_Init (DPR_Type *base)
 Enables and configures the DPR peripheral module. More...
 
void DPR_Deinit (DPR_Type *base)
 Disables the DPR peripheral module. More...
 
void DPR_SetBufferConfig (DPR_Type *base, const dpr_buffer_config_t *config)
 Set the input frame buffer configuration. More...
 
void DPR_BufferGetDefaultConfig (dpr_buffer_config_t *config)
 Get the input frame buffer default configuration. More...
 
static void DPR_Start (DPR_Type *base)
 Starts the DPR. More...
 
static void DPR_StartRepeat (DPR_Type *base)
 Starts the DPR to run repeatly. More...
 
static void DPR_Stop (DPR_Type *base)
 Stops the DPR. More...
 
static void DPR_SetBufferAddr (DPR_Type *base, uint32_t addr)
 Set the frame buffer address. More...
 

Data Structure Documentation

struct dpr_buffer_config_t

Data Fields

uint16_t width
 Frame buffer width, how many pixels per line. More...
 
uint16_t height
 Frame buffer height. More...
 
uint16_t strideBytes
 Stride in bytes. More...
 
dpr_data_type_t dataType
 Data type. More...
 

Field Documentation

uint16_t dpr_buffer_config_t::width
uint16_t dpr_buffer_config_t::height
uint16_t dpr_buffer_config_t::strideBytes
dpr_data_type_t dpr_buffer_config_t::dataType

Macro Definition Documentation

#define FSL_DPR_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Enumeration Type Documentation

Enumerator
kDPR_DataType16Bpp 

16 bits per pixel.

kDPR_DataType32Bpp 

32 bits per pixel.

Function Documentation

void DPR_Init ( DPR_Type *  base)
Parameters
baseDPR peripheral address.
void DPR_Deinit ( DPR_Type *  base)
Parameters
baseDPR peripheral address.
void DPR_SetBufferConfig ( DPR_Type *  base,
const dpr_buffer_config_t config 
)
Parameters
baseDPR peripheral address.
configPointer to the configuration.
void DPR_BufferGetDefaultConfig ( dpr_buffer_config_t config)

The default configuration is

config->width = 1080U;
config->height = 1920U;
config->strideBytes = 4U * 1080U;
config->dataType = kDPR_DataType32Bpp;
Parameters
configPointer 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
baseDPR 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
baseDPR peripheral address.
static void DPR_Stop ( DPR_Type *  base)
inlinestatic
Parameters
baseDPR peripheral address.
static void DPR_SetBufferAddr ( DPR_Type *  base,
uint32_t  addr 
)
inlinestatic
Parameters
baseDPR peripheral address.
addrFrame buffer address.