MPLABĀ® Harmony Graphics Suite  GFX v3.13.0
Legato API Documentation
plib_glcd.h File Reference

GLCD function implementations for the GLCD PLIB. More...

Go to the source code of this file.

Enumerations

enum  GLCD_MODULE_ID { GLCD_ID_0 = 0, GLCD_NUMBER_OF_MODULES = 1 }
 
enum  GLCD_RGB_MODE {
  GLCD_RGB_MODE_PARALLEL_RGB565 = 0x00000000, GLCD_RGB_MODE_PARALLEL_RGB888 = 0x00000001, GLCD_RGB_MODE_SERIAL_RGB_3 = 0x00000002, GLCD_RGB_MODE_SERIAL_RGBA_4 = 0x00000003,
  GLCD_RGB_MODE_SERIAL_12BIT = 0x00000004, GLCD_RGB_MODE_YUYV_16BIT = 0x00000005, GLCD_RGB_MODE_BT_656 = 0x00000006
}
 
enum  GLCD_SIGNAL_POLARITY {
  GLCD_POLARITY_POSITIVE = 0x00000000, GLCD_PIXEL_CLOCK_POLARITY_NEGATIVE = 0x00400000, GLCD_DE_POLARITY_NEGATIVE = 0x04000000, GLCD_HSYNC_POLARITY_NEGATIVE = 0x08000000,
  GLCD_VSYNC_POLARITY_NEGATIVE = 0x10000000
}
 
enum  GLCD_LAYER_ID { GLCD_LAYER_ID_0 = 0x0, GLCD_LAYER_ID_1 = 0x1, GLCD_LAYER_ID_2 = 0x2, GLCD_LAYER_ID_MAX = 0x3 }
 
enum  GLCD_LAYER_COLOR_MODE {
  GLCD_LAYER_COLOR_MODE_LUT8 = 0x0, GLCD_LAYER_COLOR_MODE_RGBA5551 = 0x1, GLCD_LAYER_COLOR_MODE_RGBA8888 = 0x2, GLCD_LAYER_COLOR_MODE_RGB332 = 0x4,
  GLCD_LAYER_COLOR_MODE_RGB565 = 0x5, GLCD_LAYER_COLOR_MODE_ARGB8888 = 0x6, GLCD_LAYER_COLOR_MODE_L8 = 0x7, GLCD_LAYER_COLOR_MODE_L1 = 0x8,
  GLCD_LAYER_COLOR_MODE_L4 = 0x9, GLCD_LAYER_COLOR_MODE_YUYV = 0xA, GLCD_LAYER_COLOR_MODE_RGB888 = 0xB
}
 
enum  GLCD_LAYER_SRC_BLEND_FUNC {
  GLCD_LAYER_SRC_BLEND_BLACK = 0x0000, GLCD_LAYER_SRC_BLEND_WHITE = 0x0100, GLCD_LAYER_SRC_BLEND_ALPHA_SRC = 0x0200, GLCD_LAYER_SRC_BLEND_ALPHA_GBL = 0x0300,
  GLCD_LAYER_SRC_BLEND_ALPHA_SRCGBL = 0x0400, GLCD_LAYER_SRC_BLEND_INV_SRC = 0x0500, GLCD_LAYER_SRC_BLEND_INV_GBL = 0x0600, GLCD_LAYER_SRC_BLEND_INV_SRCGBL = 0x0700,
  GLCD_LAYER_SRC_BLEND_ALPHA_DST = 0x0A00, GLCD_LAYER_SRC_BLEND_INV_DST = 0x0D00
}
 
enum  GLCD_LAYER_DEST_BLEND_FUNC {
  GLCD_LAYER_DEST_BLEND_BLACK = 0x0000, GLCD_LAYER_DEST_BLEND_WHITE = 0x1000, GLCD_LAYER_DEST_BLEND_ALPHA_SRC = 0x2000, GLCD_LAYER_DEST_BLEND_ALPHA_GBL = 0x3000,
  GLCD_LAYER_DEST_BLEND_ALPHA_SRCGBL = 0x4000, GLCD_LAYER_DEST_BLEND_INV_SRC = 0x5000, GLCD_LAYER_DEST_BLEND_INV_GBL = 0x6000, GLCD_LAYER_DEST_BLEND_INV_SRCGBL = 0x7000,
  GLCD_LAYER_DEST_BLEND_ALPHA_DST = 0xA000, GLCD_LAYER_DEST_BLEND_INV_DST = 0xD000
}
 
enum  GLCD_IRQ_TRIGGER_CONTROL { GLCD_IRQ_TRIGGER_LEVEL = 0x00000000, GLCD_IRQ_TRIGGER_EDGE = 0x80000000 }
 

Functions

void PLIB_GLCD_LayerColorModeSet (GLCD_LAYER_ID layerId, GLCD_LAYER_COLOR_MODE colorMode)
 
void PLIB_GLCD_LayerStrideSet (GLCD_LAYER_ID layerId, uint32_t stride)
 
void PLIB_GLCD_LayerBaseAddressSet (GLCD_LAYER_ID layerId, uint32_t baseAddress)
 
void PLIB_GLCD_LayerStartXYSet (GLCD_LAYER_ID layerId, uint32_t startX, uint32_t startY)
 
void PLIB_GLCD_LayerSizeXYSet (GLCD_LAYER_ID layerId, uint32_t sizeX, uint32_t sizeY)
 
void PLIB_GLCD_LayerGlobalAlphaSet (GLCD_LAYER_ID layerId, uint8_t value)
 
uint8_t PLIB_GLCD_LayerGlobalAlphaGet (GLCD_LAYER_ID layerId)
 
void PLIB_GLCD_LayerEnable (GLCD_LAYER_ID layerId)
 
void PLIB_GLCD_LayerDisable (GLCD_LAYER_ID layerId)
 
void PLIB_GLCD_Enable (void)
 
void PLIB_GLCD_Disable (void)
 
void PLIB_GLCD_BackgroundColorSet (uint32_t bgColor)
 
void PLIB_GLCD_HSyncInterruptDisable (void)
 
void PLIB_GLCD_RGBSequentialModeSet (GLCD_RGB_MODE mode)
 
void PLIB_GLCD_FrontPorchXYSet (uint32_t frontPorchX, uint32_t frontPorchY)
 
void PLIB_GLCD_BlankingXYSet (uint32_t blankingX, uint32_t blankingY)
 
void PLIB_GLCD_BackPorchXYSet (uint32_t backPorchX, uint32_t backPorchY)
 
void PLIB_GLCD_ClockDividerSet (uint32_t clockDivider)
 
void PLIB_GLCD_ResolutionXYSet (uint32_t resolutionX, uint32_t resolutionY)
 
void PLIB_GLCD_SignalPolaritySet (GLCD_SIGNAL_POLARITY polarity)
 
void PLIB_GLCD_LayerResXYSet (GLCD_LAYER_ID layerId, uint32_t resolutionX, uint32_t resolutionY)
 
void PLIB_GLCD_LayerDestBlendFuncSet (GLCD_LAYER_ID layerId, GLCD_LAYER_DEST_BLEND_FUNC blendFunc)
 
void PLIB_GLCD_LayerSrcBlendFuncSet (GLCD_LAYER_ID layerId, GLCD_LAYER_SRC_BLEND_FUNC blendFunc)
 
void PLIB_GLCD_VSyncInterruptEnable (void)
 
void PLIB_GLCD_VSyncInterruptDisable (void)
 
bool PLIB_GLCD_IsVerticalBlankingActive (void)
 
void PLIB_GLCD_GlobalColorLUTSet (uint32_t *globalLUT)
 
void PLIB_GLCD_PaletteGammaRampEnable (void)
 
void PLIB_GLCD_PaletteGammaRampDisable (void)
 

Detailed Description

GLCD function implementations for the GLCD PLIB.

The GLCD PLIB provides a simple interface to manage the GLCD controller.