EVE's mediafifo controller. More...
Go to the source code of this file.
Functions | |
bool | EVE_MediaFifo_set (EVE_HalContext *phost, uint32_t address, uint32_t size) |
Set the media FIFO. | |
void | EVE_MediaFifo_close (EVE_HalContext *phost) |
uint32_t | EVE_MediaFifo_rp (EVE_HalContext *phost) |
Get the current read pointer. | |
uint32_t | EVE_MediaFifo_wp (EVE_HalContext *phost) |
Get the current write pointer. | |
uint32_t | EVE_MediaFifo_space (EVE_HalContext *phost) |
Get the currently available space. | |
bool | EVE_MediaFifo_wrMem (EVE_HalContext *phost, const uint8_t *buffer, uint32_t size, uint32_t *transfered) |
Write a buffer to the media FIFO. Waits if there is not enough space in the media FIFO. | |
void | debugBackupRamG (EVE_HalContext *phost) |
Backup the last 128 bytes of RAM_G, which may be used for an error message. | |
static bool | checkWait (EVE_HalContext *phost, uint32_t rpOrSpace) |
static bool | handleWait (EVE_HalContext *phost, uint16_t rpOrSpace) |
bool | EVE_MediaFifo_waitFlush (EVE_HalContext *phost, bool orCmdFlush) |
Wait for the media FIFO to fully empty. | |
uint32_t | EVE_MediaFifo_waitSpace (EVE_HalContext *phost, uint32_t size, bool orCmdFlush) |
Wait for the media FIFO to have at least the requested amount of free space. | |
EVE's mediafifo controller.
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 EVE_MediaFifo.c.
|
static |
Definition at line 301 of file EVE_MediaFifo.c.
void debugBackupRamG | ( | EVE_HalContext * | phost | ) |
Backup the last 128 bytes of RAM_G, which may be used for an error message.
phost | Pointer to Hal context |
Definition at line 1722 of file EVE_Util.c.
void EVE_MediaFifo_close | ( | EVE_HalContext * | phost | ) |
Closes the current media FIFO. Indication for HAL only
Definition at line 87 of file EVE_MediaFifo.c.
uint32_t EVE_MediaFifo_rp | ( | EVE_HalContext * | phost | ) |
Get the current read pointer.
phost | Pointer to Hal context |
Definition at line 99 of file EVE_MediaFifo.c.
bool EVE_MediaFifo_set | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
uint32_t | size | ||
) |
Set the media FIFO.
phost | Pointer to Hal context |
address | |
size |
Definition at line 45 of file EVE_MediaFifo.c.
uint32_t EVE_MediaFifo_space | ( | EVE_HalContext * | phost | ) |
Get the currently available space.
phost | Pointer to Hal context |
Definition at line 121 of file EVE_MediaFifo.c.
bool EVE_MediaFifo_waitFlush | ( | EVE_HalContext * | phost, |
bool | orCmdFlush | ||
) |
Wait for the media FIFO to fully empty.
phost | Pointer to Hal context |
orCmdFlush |
Definition at line 365 of file EVE_MediaFifo.c.
uint32_t EVE_MediaFifo_waitSpace | ( | EVE_HalContext * | phost, |
uint32_t | size, | ||
bool | orCmdFlush | ||
) |
Wait for the media FIFO to have at least the requested amount of free space.
phost | Pointer to Hal context |
size | |
orCmdFlush |
Definition at line 378 of file EVE_MediaFifo.c.
uint32_t EVE_MediaFifo_wp | ( | EVE_HalContext * | phost | ) |
Get the current write pointer.
phost | Pointer to Hal context |
Definition at line 110 of file EVE_MediaFifo.c.
bool EVE_MediaFifo_wrMem | ( | EVE_HalContext * | phost, |
const uint8_t * | buffer, | ||
uint32_t | size, | ||
uint32_t * | transfered | ||
) |
Write a buffer to the media FIFO. Waits if there is not enough space in the media FIFO.
phost | Pointer to Hal context |
buffer | |
size | |
transfered |
Definition at line 151 of file EVE_MediaFifo.c.
|
static |
Definition at line 337 of file EVE_MediaFifo.c.