Macros | |
| #define | HAL_LCDC_ReadU8Reg(lcdc, U8Reg, p_data, data_len) HAL_LCDC_ReadDatas(lcdc, (uint32_t)U8Reg, 1, p_data, data_len) |
| Read data(s) from LCD register which address length is 8bit. More... | |
| #define | HAL_LCDC_ReadU16Reg(lcdc, U16Reg, p_data, data_len) HAL_LCDC_ReadDatas(lcdc, (uint32_t)U16Reg, 2, p_data, data_len) |
| Read data(s) from LCD register which address length is 16bit. More... | |
| #define | HAL_LCDC_ReadU32Reg(lcdc, U32Reg, p_data, data_len) HAL_LCDC_ReadDatas(lcdc, (uint32_t)U32Reg, 4, p_data, data_len) |
| Read data(s) from LCD register which address length is 32bit. More... | |
| #define | HAL_LCDC_WriteU8Reg(lcdc, U8Reg, p_data, data_len) HAL_LCDC_WriteDatas(lcdc, (uint32_t)U8Reg, 1, p_data, data_len) |
| Write data(s) to LCD register which address length is 8bit. More... | |
| #define | HAL_LCDC_WriteU16Reg(lcdc, U16Reg, p_data, data_len) HAL_LCDC_WriteDatas(lcdc, (uint32_t)U16Reg, 2, p_data, data_len) |
| Write data(s) to LCD register which address length is 16bit. More... | |
| #define | HAL_LCDC_WriteU32Reg(lcdc, U32Reg, p_data, data_len) HAL_LCDC_WriteDatas(lcdc, (uint32_t)U32Reg, 4, p_data, data_len) |
| Write data(s) to LCD register which address length is 32bit. More... | |
| #define | HAL_LCDC_SendLayerData_IT(lcdc) HAL_LCDC_SendLayerData2Reg_IT(lcdc,0,0) |
| Start write layer data DMA mode directly. More... | |
| #define | HAL_LCDC_SendLayerData(lcdc) HAL_LCDC_SendLayerData2Reg(lcdc,0,0) |
Functions | |
| HAL_StatusTypeDef | HAL_LCDC_Init (LCDC_HandleTypeDef *lcdc) |
| Initialize LCD controller hardware. More... | |
| HAL_StatusTypeDef | HAL_LCDC_DeInit (LCDC_HandleTypeDef *lcdc) |
| De-Initialize LCD controller hardware. More... | |
| HAL_StatusTypeDef | HAL_LCDC_ResetLCD (LCDC_HandleTypeDef *lcdc, uint8_t pulse_type, uint32_t pulse_us) |
| HAL_StatusTypeDef | HAL_LCDC_Reset (LCDC_HandleTypeDef *lcdc) |
| Reset LCD controller hardware. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SetOutFormat (LCDC_HandleTypeDef *lcdc, HAL_LCDC_PixelFormat format) |
| Change LCDC output format. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SetFreq (LCDC_HandleTypeDef *lcdc, uint32_t freq) |
| Update LCDC output frequecy. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SetROI (LCDC_HandleTypeDef *lcdc, LCDC_AreaDef *area) |
| Set LCDC output ROI area by an area pointer. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SetROIArea (LCDC_HandleTypeDef *lcdc, uint16_t x_0, uint16_t y_0, uint16_t x_1, uint16_t y_1) |
| Set LCDC output ROI area by coordinate. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerReset (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Reset layer configuration. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetCmpr (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t cmpr) |
| Setup layer buffer compression ratio. More... | |
| uint8_t | HAL_LCDC_LayerGetCmpr (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Get layer buffer compression ratio. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetFormat (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, HAL_LCDC_PixelFormat format) |
| Ser layer buffer color format. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetData (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t *pData, uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1) |
| Set layer buffer data and it's coordinate. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetDataExt (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t *pData, uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t total_width) |
| Set layer buffer data and it's coordinate. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetBgColor (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t r, uint8_t g, uint8_t b) |
| Set layer background color (It is visible only while blended with LCDC_PIXEL_FORMAT_A8 layer format for now) More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerSetLTab (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, const LCDC_AColorDef *pLTab) |
| Set layer's look up table. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerEnableChromaKey (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t r, uint8_t g, uint8_t b) |
| Set layer chroma key color. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerDisableChromaKey (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Disable layer chroma key. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerEnableAlpha (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t alpha) |
| Set layer global alpha value and enable it. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerDisableAlpha (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Disable layer's global alpha. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerRotate (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, HAL_LCDC_RotateDef angle) |
| Set sepcified layer's rotate angle. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerVMirror (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, bool en) |
| Enable layer. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerEnable (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Enable layer. More... | |
| HAL_StatusTypeDef | HAL_LCDC_LayerDisable (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx) |
| Disable layer. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SetBgColor (LCDC_HandleTypeDef *lcdc, uint8_t r, uint8_t g, uint8_t b) |
| Set background color (RGB888 format) More... | |
| void | HAL_LCDC_IRQHandler (LCDC_HandleTypeDef *lcdc) |
| LCD controller interrupt handler. More... | |
| void | HAL_LCDC_TE_IRQHandler (LCDC_HandleTypeDef *lcdc) |
| Send layer data when TE comming. More... | |
| HAL_StatusTypeDef | HAL_LCDC_ReadDatas (LCDC_HandleTypeDef *lcdc, uint32_t addr, uint32_t addr_len, uint8_t *p_data, uint32_t data_len) |
| Read data(s) from LCD register. More... | |
| HAL_StatusTypeDef | HAL_LCDC_WriteDatas (LCDC_HandleTypeDef *lcdc, uint32_t addr, uint32_t addr_len, uint8_t *p_data, uint32_t data_len) |
| Write data(s) to LCD register. More... | |
| HAL_LCDC_IF_TypeDef | HAL_LCDC_SetSPICfg (LCDC_HandleTypeDef *lcdc, HAL_LCDC_IF_TypeDef config) |
| Set SPI interface configuration. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SendLayerData2Reg_IT (LCDC_HandleTypeDef *lcdc, uint32_t addr, uint32_t addr_len) |
| Send an address and layer data to LCD in asynchronized mode. More... | |
| HAL_StatusTypeDef | HAL_LCDC_SendLayerData2Reg (LCDC_HandleTypeDef *lcdc, uint32_t addr, uint32_t addr_len) |
| Send an address and layer data to LCD in synchronized mode. More... | |
| void | HAL_LCDC_SendLayerDataCpltCbk (LCDC_HandleTypeDef *lcdc) |
| LCD controller send layer data complete callback. More... | |
| void | HAL_LCDC_SendLineCpltCbk (LCDC_HandleTypeDef *lcdc, uint32_t line) |
| LCD controller sent lines(Base on HAL_LCDC_SetROIArea's y0) complete callback. More... | |
| void | HAL_LCDC_Next_Frame_TE (LCDC_HandleTypeDef *lcdc, bool en) |
| Setup next frame's TE, auto restore to default TE after send framebuffer. More... | |
| void | HAL_LCDC_Enable_TE (LCDC_HandleTypeDef *lcdc, bool en) |
| Enable/Disable TE. More... | |
| HAL_StatusTypeDef | HAL_LCDC_Enter_LP (LCDC_HandleTypeDef *lcdc) |
| Let LCDC enter low power mode. More... | |
| HAL_StatusTypeDef | HAL_LCDC_Exit_LP (LCDC_HandleTypeDef *lcdc) |
| Wake up LCDC from low power mode. More... | |
| HAL_StatusTypeDef | HAL_LCDC_Resume (LCDC_HandleTypeDef *lcdc) |
| Resume LCDC all registers from standby mode. More... | |
| void | HAL_LCDC_UseLCDC2TE (LCDC_HandleTypeDef *lcdc) |
| Use LCDC2' TE signal on LCDC1. More... | |
| HAL_StatusTypeDef | HAL_LCDC_RAMLESS_Init (LCDC_HandleTypeDef *lcdc, uint32_t *buf) |
| Buffer for saving HW auto refresh code, size is RAMLESS_AUTO_REFR_CODE_SIZE_IN_WORD. More... | |
| HAL_StatusTypeDef | HAL_LCDC_RAMLESS_Start (LCDC_HandleTypeDef *lcdc, RAMLESS_CFG_T *p_config) |
| HAL_StatusTypeDef | HAL_LCDC_RAMLESS_UpdateData (LCDC_HandleTypeDef *lcdc, HAL_LCDC_LayerDef layeridx, uint8_t *pData, uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1) |
| HAL_StatusTypeDef | HAL_LCDC_RAMLESS_Stop (LCDC_HandleTypeDef *lcdc) |
| void | HAL_RAMLESS_LCD_IRQHandler (LCDC_HandleTypeDef *lcdc) |
| void | HAL_LCDC_SoftSpiInit (SOFT_SPI_PIN_Def pin, SOFT_SPI_IO_Def inout, uint32_t high1low0) |
| void | HAL_LCDC_SoftSpiDeinit (SOFT_SPI_PIN_Def pin) |
| uint32_t | HAL_LCDC_SoftSpiGetPin (SOFT_SPI_PIN_Def pin) |
| void | HAL_LCDC_SoftSpiSetPin (SOFT_SPI_PIN_Def pin, uint32_t high1low0) |
| uint32_t | HAL_LCDC_SoftSPI_Read (LCDC_HandleTypeDef *lcdc, uint32_t addr, uint32_t addr_len, uint32_t data_len) |
| #define HAL_LCDC_ReadU16Reg | ( | lcdc, | |
| U16Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_ReadDatas(lcdc, (uint32_t)U16Reg, 2, p_data, data_len) |
Read data(s) from LCD register which address length is 16bit.
| lcdc | LCD controller handle |
| U16Reg | Unsigned 16bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| #define HAL_LCDC_ReadU32Reg | ( | lcdc, | |
| U32Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_ReadDatas(lcdc, (uint32_t)U32Reg, 4, p_data, data_len) |
Read data(s) from LCD register which address length is 32bit.
| lcdc | LCD controller handle |
| U32Reg | Unsigned 32bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| #define HAL_LCDC_ReadU8Reg | ( | lcdc, | |
| U8Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_ReadDatas(lcdc, (uint32_t)U8Reg, 1, p_data, data_len) |
Read data(s) from LCD register which address length is 8bit.
| lcdc | LCD controller handle |
| U8Reg | Unsigned 8bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| #define HAL_LCDC_SendLayerData_IT | ( | lcdc | ) | HAL_LCDC_SendLayerData2Reg_IT(lcdc,0,0) |
Start write layer data DMA mode directly.
| lcdc | LCD controller handle |
| HAL | status |
| #define HAL_LCDC_WriteU16Reg | ( | lcdc, | |
| U16Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_WriteDatas(lcdc, (uint32_t)U16Reg, 2, p_data, data_len) |
Write data(s) to LCD register which address length is 16bit.
| lcdc | LCD controller handle |
| U16Reg | Unsigned 16bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| #define HAL_LCDC_WriteU32Reg | ( | lcdc, | |
| U32Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_WriteDatas(lcdc, (uint32_t)U32Reg, 4, p_data, data_len) |
Write data(s) to LCD register which address length is 32bit.
| lcdc | LCD controller handle |
| U32Reg | Unsigned 32bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| #define HAL_LCDC_WriteU8Reg | ( | lcdc, | |
| U8Reg, | |||
| p_data, | |||
| data_len | |||
| ) | HAL_LCDC_WriteDatas(lcdc, (uint32_t)U8Reg, 1, p_data, data_len) |
Write data(s) to LCD register which address length is 8bit.
| lcdc | LCD controller handle |
| U8Reg | Unsigned 8bit LCD register address |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_DeInit | ( | LCDC_HandleTypeDef * | lcdc | ) |
De-Initialize LCD controller hardware.
| lcdc | LCD controller handle |
| HAL | status |
| void HAL_LCDC_Enable_TE | ( | LCDC_HandleTypeDef * | lcdc, |
| bool | en | ||
| ) |
Enable/Disable TE.
| lcdc | LCD controller handle |
| en | enable TE if ture |
| None |
| HAL_StatusTypeDef HAL_LCDC_Enter_LP | ( | LCDC_HandleTypeDef * | lcdc | ) |
Let LCDC enter low power mode.
| lcdc | LCD controller handle |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_Exit_LP | ( | LCDC_HandleTypeDef * | lcdc | ) |
Wake up LCDC from low power mode.
| lcdc | LCD controller handle |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_Init | ( | LCDC_HandleTypeDef * | lcdc | ) |
Initialize LCD controller hardware.
| lcdc | LCD controller handle |
| HAL | status |
| void HAL_LCDC_IRQHandler | ( | LCDC_HandleTypeDef * | lcdc | ) |
LCD controller interrupt handler.
| lcdc | LCD controller handle |
| None |
| HAL_StatusTypeDef HAL_LCDC_LayerDisable | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Disable layer.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerDisableAlpha | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Disable layer's global alpha.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerDisableChromaKey | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Disable layer chroma key.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerEnable | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Enable layer.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerEnableAlpha | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t | alpha | ||
| ) |
Set layer global alpha value and enable it.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| alpha | - Layer alpha value[0~255] |
| HAL_StatusTypeDef HAL_LCDC_LayerEnableChromaKey | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Set layer chroma key color.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| r | red[0~255] |
| g | green[0~255] |
| b | blue[0~255] |
| uint8_t HAL_LCDC_LayerGetCmpr | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Get layer buffer compression ratio.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerReset | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx | ||
| ) |
Reset layer configuration.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerRotate | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| HAL_LCDC_RotateDef | angle | ||
| ) |
Set sepcified layer's rotate angle.
| lcdc | - LCD controller handle |
| layeridx | - Layer index |
| angle | - Rotate angle |
| HAL_StatusTypeDef HAL_LCDC_LayerSetBgColor | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Set layer background color (It is visible only while blended with LCDC_PIXEL_FORMAT_A8 layer format for now)
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| r | red[0~255] |
| g | green[0~255] |
| b | blue[0~255] |
| HAL_StatusTypeDef HAL_LCDC_LayerSetCmpr | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t | cmpr | ||
| ) |
Setup layer buffer compression ratio.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| cmpr | - Layer buffer compression ratio |
| HAL_StatusTypeDef HAL_LCDC_LayerSetData | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t * | pData, | ||
| uint16_t | x0, | ||
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1 | ||
| ) |
Set layer buffer data and it's coordinate.
| lcdc | LCD controller handle |
| pData | - Layer data |
| x0 | - Layer left to LCD top-left pixels |
| x1 | - Layer right to LCD top-left pixels |
| y0 | - Layer top to LCD top-left pixels |
| y1 | - Layer bottom to LCD top-left pixels |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerSetDataExt | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| uint8_t * | pData, | ||
| uint16_t | x0, | ||
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1, | ||
| uint16_t | total_width | ||
| ) |
Set layer buffer data and it's coordinate.
| lcdc | LCD controller handle |
| pData | - Layer data |
| x0 | - Layer left to LCD top-left pixels |
| x1 | - Layer right to LCD top-left pixels |
| y0 | - Layer top to LCD top-left pixels |
| y1 | - Layer bottom to LCD top-left pixels |
| total_width | - Layer original data width in pixels |
| layeridx | - Layer index |
| HAL_StatusTypeDef HAL_LCDC_LayerSetFormat | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| HAL_LCDC_PixelFormat | format | ||
| ) |
Ser layer buffer color format.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| format | - Buffer format |
| HAL_StatusTypeDef HAL_LCDC_LayerSetLTab | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| const LCDC_AColorDef * | pLTab | ||
| ) |
Set layer's look up table.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| pLTab | - Look up table |
| HAL_StatusTypeDef HAL_LCDC_LayerVMirror | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_LayerDef | layeridx, | ||
| bool | en | ||
| ) |
Enable layer.
| lcdc | LCD controller handle |
| layeridx | - Layer index |
| en | - enable |
| void HAL_LCDC_Next_Frame_TE | ( | LCDC_HandleTypeDef * | lcdc, |
| bool | en | ||
| ) |
Setup next frame's TE, auto restore to default TE after send framebuffer.
| lcdc | LCD controller handle |
| en | enable TE if ture |
| None |
| HAL_StatusTypeDef HAL_LCDC_RAMLESS_Init | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t * | buf | ||
| ) |
Buffer for saving HW auto refresh code, size is RAMLESS_AUTO_REFR_CODE_SIZE_IN_WORD.
| lcdc | LCD controller handle |
| buf | - Pointer to buffer |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_ReadDatas | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | addr, | ||
| uint32_t | addr_len, | ||
| uint8_t * | p_data, | ||
| uint32_t | data_len | ||
| ) |
Read data(s) from LCD register.
| lcdc | LCD controller handle |
| addr | LCD register address(For example: 0x12345678 will be sent as 0x12, 0x34, 0x56, 0x78) |
| addr_len | - LCD register address length |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_Reset | ( | LCDC_HandleTypeDef * | lcdc | ) |
Reset LCD controller hardware.
| lcdc | LCD controller handle |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_Resume | ( | LCDC_HandleTypeDef * | lcdc | ) |
Resume LCDC all registers from standby mode.
| lcdc | LCD controller handle |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_SendLayerData2Reg | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | addr, | ||
| uint32_t | addr_len | ||
| ) |
Send an address and layer data to LCD in synchronized mode.
| lcdc | LCD controller handle |
| addr | - Address to send |
| addr_len | - Address length in byte |
| HAL | status |
| HAL_StatusTypeDef HAL_LCDC_SendLayerData2Reg_IT | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | addr, | ||
| uint32_t | addr_len | ||
| ) |
Send an address and layer data to LCD in asynchronized mode.
| lcdc | LCD controller handle |
| addr | - Address to send |
| addr_len | - Address length in byte |
| HAL | status |
| void HAL_LCDC_SendLayerDataCpltCbk | ( | LCDC_HandleTypeDef * | lcdc | ) |
LCD controller send layer data complete callback.
| lcdc | LCD controller handle |
| None |
| void HAL_LCDC_SendLineCpltCbk | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | line | ||
| ) |
LCD controller sent lines(Base on HAL_LCDC_SetROIArea's y0) complete callback.
| lcdc | LCD controller handle |
| line | Sent lines |
| None |
| HAL_StatusTypeDef HAL_LCDC_SetBgColor | ( | LCDC_HandleTypeDef * | lcdc, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b | ||
| ) |
Set background color (RGB888 format)
| lcdc | LCD controller handle |
| r | red[0~255] |
| g | green[0~255] |
| b | blue[0~255] |
| HAL_StatusTypeDef HAL_LCDC_SetFreq | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | freq | ||
| ) |
Update LCDC output frequecy.
| lcdc | - LCD controller handle |
| freq | - Frequency in Hz |
| HAL_StatusTypeDef HAL_LCDC_SetOutFormat | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_PixelFormat | format | ||
| ) |
Change LCDC output format.
| lcdc | - LCD controller handle |
| format | - LCDC output format |
| HAL_StatusTypeDef HAL_LCDC_SetROI | ( | LCDC_HandleTypeDef * | lcdc, |
| LCDC_AreaDef * | area | ||
| ) |
Set LCDC output ROI area by an area pointer.
| lcdc | - LCD controller handle |
| area | - ROI area |
| HAL_StatusTypeDef HAL_LCDC_SetROIArea | ( | LCDC_HandleTypeDef * | lcdc, |
| uint16_t | x_0, | ||
| uint16_t | y_0, | ||
| uint16_t | x_1, | ||
| uint16_t | y_1 | ||
| ) |
Set LCDC output ROI area by coordinate.
| lcdc | - LCD controller handle |
| x_0 | - ROI area left to LCD top-left pixels |
| x_1 | - ROI area right to LCD top-left pixels |
| y_0 | - ROI area top to LCD top-left pixels |
| y_1 | - ROI area bottom to LCD top-left pixels |
| HAL_LCDC_IF_TypeDef HAL_LCDC_SetSPICfg | ( | LCDC_HandleTypeDef * | lcdc, |
| HAL_LCDC_IF_TypeDef | config | ||
| ) |
Set SPI interface configuration.
| lcdc | LCD controller handle |
| config | SPI interface type, must between LCDC_INTF_SPI_START and LCDC_INTF_SPI_END |
| Previous | LCDC interface configuration |
| void HAL_LCDC_TE_IRQHandler | ( | LCDC_HandleTypeDef * | lcdc | ) |
Send layer data when TE comming.
| lcdc | LCD controller handle |
| None |
| void HAL_LCDC_UseLCDC2TE | ( | LCDC_HandleTypeDef * | lcdc | ) |
Use LCDC2' TE signal on LCDC1.
| lcdc | LCD controller handle |
| None |
| HAL_StatusTypeDef HAL_LCDC_WriteDatas | ( | LCDC_HandleTypeDef * | lcdc, |
| uint32_t | addr, | ||
| uint32_t | addr_len, | ||
| uint8_t * | p_data, | ||
| uint32_t | data_len | ||
| ) |
Write data(s) to LCD register.
| lcdc | LCD controller handle |
| addr | LCD register address(For example: 0x12345678 will be sent as 0x12, 0x34, 0x56, 0x78) |
| addr_len | - LCD address register length |
| p_data | read back buffer |
| data_len | read back buffer size in byte |
| HAL | status |