Eve's connected flash helper functions. More...
Go to the source code of this file.
Functions | |
ft_bool_t | Esd_Calibrate (EVE_HalContext *phost) |
Do calibration. | |
ft_void_t | Ft_Gpu_HorizontalScanoutFilter (EVE_HalContext *phost, uint32_t physical_W, uint32_t physical_H) |
Adjust for non-sqare pixel panel. | |
void | App_WrDl_Buffer (Gpu_Hal_Context_t *phost, uint32_t cmd) |
Write DL command to buffer. | |
void | App_Flush_DL_Buffer (const Gpu_Hal_Context_t *phost) |
Flush DL buffer to Coprocessor. | |
void | App_Set_DlBuffer_Index (uint32_t index) |
Set DL buffer index. | |
void | GPU_DLSwap (Gpu_Hal_Context_t *phost, uint8_t DL_Swap_Type) |
API to check the status of previous DLSWAP and perform DLSWAP of new DL Check for the status of previous DLSWAP and if still not done wait for few ms and check again. | |
void | fadeout (EVE_HalContext *phost) |
Fadeout animation. | |
void | fadein (EVE_HalContext *phost) |
Fadein animation perform display fadein effect by changing the display PWM from 0 till 100 and finally 128. | |
void | Fifo_Init (Fifo_t *pFifo, uint32_t StartAddress, uint32_t Length, uint32_t HWReadRegAddress, uint32_t HWWriteRegAddress) |
Init mediafifo. | |
void | Fifo_Update (Gpu_Hal_Context_t *host, Fifo_t *pFifo) |
update both the read and write pointers | |
uint32_t | Fifo_Write (Gpu_Hal_Context_t *host, Fifo_t *pFifo, const uint8_t *buffer, uint32_t NumbytetoWrite) |
write and update the write register | |
void | Fifo_WriteWait (Gpu_Hal_Context_t *host, Fifo_t *pFifo, const uint8_t *buffer, uint32_t Numbyte) |
write and wait for the fifo to be empty. handle cases even if the Numbytes are more than freespace | |
void | Fifo_Write32 (Gpu_Hal_Context_t *host, Fifo_t *pFifo, uint32_t WriteWord) |
write one word and update the write register | |
uint32_t | Fifo_GetFreeSpace (Gpu_Hal_Context_t *host, Fifo_t *pFifo) |
get the free space in the fifo | |
int32_t | FlashHelper_GetSizeMB (Gpu_Hal_Context_t *phost) |
Variables | |
uint32_t | DlBuffer_Index |
Eve's connected flash helper functions.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file FlashHelper.c.
void App_Flush_DL_Buffer | ( | const Gpu_Hal_Context_t * | phost | ) |
Flush DL buffer to Coprocessor.
phost | Pointer to Hal context |
Definition at line 471 of file FlashHelper.c.
void App_Set_DlBuffer_Index | ( | uint32_t | index | ) |
void App_WrDl_Buffer | ( | Gpu_Hal_Context_t * | phost, |
uint32_t | cmd | ||
) |
Write DL command to buffer.
phost | Pointer to Hal context |
cmd | DL command |
Definition at line 444 of file FlashHelper.c.
ft_bool_t Esd_Calibrate | ( | EVE_HalContext * | phost | ) |
Do calibration.
Definition at line 42 of file FlashHelper.c.
void fadein | ( | EVE_HalContext * | phost | ) |
Fadein animation perform display fadein effect by changing the display PWM from 0 till 100 and finally 128.
phost | Pointer to Hal context |
Definition at line 542 of file FlashHelper.c.
void fadeout | ( | EVE_HalContext * | phost | ) |
Fadeout animation.
phost | Pointer to Hal context |
Definition at line 527 of file FlashHelper.c.
uint32_t Fifo_GetFreeSpace | ( | Gpu_Hal_Context_t * | host, |
Fifo_t * | pFifo | ||
) |
get the free space in the fifo
host | Pointer to Hal context |
pFifo | Fifo pointer |
Definition at line 701 of file FlashHelper.c.
void Fifo_Init | ( | Fifo_t * | pFifo, |
uint32_t | StartAddress, | ||
uint32_t | Length, | ||
uint32_t | HWReadRegAddress, | ||
uint32_t | HWWriteRegAddress | ||
) |
Init mediafifo.
pFifo | Fifo pointer |
StartAddress | Address on RAM_G |
Length | Fifo length |
HWReadRegAddress | REG_MEDIAFIFO_READ |
HWWriteRegAddress | REG_MEDIAFIFO_WRITE |
Definition at line 563 of file FlashHelper.c.
void Fifo_Update | ( | Gpu_Hal_Context_t * | host, |
Fifo_t * | pFifo | ||
) |
update both the read and write pointers
host | Pointer to Hal context |
pFifo | Fifo poiner |
Definition at line 581 of file FlashHelper.c.
uint32_t Fifo_Write | ( | Gpu_Hal_Context_t * | host, |
Fifo_t * | pFifo, | ||
const uint8_t * | buffer, | ||
uint32_t | NumbytetoWrite | ||
) |
write and update the write register
host | Pointer to Hal context |
pFifo | Fifo pointer |
buffer | |
NumbytetoWrite |
Definition at line 595 of file FlashHelper.c.
void Fifo_Write32 | ( | Gpu_Hal_Context_t * | host, |
Fifo_t * | pFifo, | ||
uint32_t | WriteWord | ||
) |
write one word and update the write register
host | Pointer to Hal context |
pFifo | Fifo pointer |
WriteWord | Word to write |
Definition at line 689 of file FlashHelper.c.
void Fifo_WriteWait | ( | Gpu_Hal_Context_t * | host, |
Fifo_t * | pFifo, | ||
const uint8_t * | buffer, | ||
uint32_t | Numbyte | ||
) |
write and wait for the fifo to be empty. handle cases even if the Numbytes are more than freespace
host | Pointer to Hal context |
pFifo | Fifo pointer |
buffer | |
Numbyte |
Definition at line 659 of file FlashHelper.c.
int32_t FlashHelper_GetSizeMB | ( | Gpu_Hal_Context_t * | phost | ) |
Definition at line 723 of file FlashHelper.c.
ft_void_t Ft_Gpu_HorizontalScanoutFilter | ( | EVE_HalContext * | phost, |
uint32_t | physical_W, | ||
uint32_t | physical_H | ||
) |
Adjust for non-sqare pixel panel.
phost | Pointer to Hal context |
physical_W | Panel width in inches |
physical_H | Panel height in inches |
Definition at line 385 of file FlashHelper.c.
void GPU_DLSwap | ( | Gpu_Hal_Context_t * | phost, |
uint8_t | DL_Swap_Type | ||
) |
API to check the status of previous DLSWAP and perform DLSWAP of new DL Check for the status of previous DLSWAP and if still not done wait for few ms and check again.
phost | Pointer to Hal context |
DL_Swap_Type | DL list swap type |
Definition at line 497 of file FlashHelper.c.
uint32_t DlBuffer_Index |
Definition at line 432 of file FlashHelper.c.