image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
EVE_MediaFifo.h
Go to the documentation of this file.
1
36#ifndef EVE_MEDIAFIFO__H
37#define EVE_MEDIAFIFO__H
38#include "EVE_HalDefs.h"
39
40/**************************
41** COPROCESSOR MEDIAFIFO **
42***************************/
43
44#ifdef EVE_SUPPORT_MEDIAFIFO
45
49
53
56
59
62
70
74EVE_HAL_EXPORT bool EVE_MediaFifo_waitFlush(EVE_HalContext *phost, bool orCmdFlush);
75
79
80#else
81
82#define EVE_MediaFifo_set(phost, address, size) (false)
83#define EVE_MediaFifo_rp(phost) (0)
84#define EVE_MediaFifo_wp(phost) (0)
85#define EVE_MediaFifo_space(phost) (~0)
86#define EVE_MediaFifo_wrMem(phost, buffer, size, transfered) (false)
87#define EVE_MediaFifo_waitFlush(phost) (false)
88#define EVE_MediaFifo_waitSpace(phost, size) (false)
89
90#endif
91
92#endif /* #ifndef EVE_HAL_INCL__H */
93
94/* end of file */
#define EVE_HAL_EXPORT
Eve_Hal framework APIs.
unsigned int uint32_t
unsigned char uint8_t
EVE_HAL_EXPORT uint32_t EVE_MediaFifo_wp(EVE_HalContext *phost)
Get the current write pointer.
EVE_HAL_EXPORT 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_HAL_EXPORT uint32_t EVE_MediaFifo_space(EVE_HalContext *phost)
Get the currently available space.
EVE_HAL_EXPORT bool EVE_MediaFifo_set(EVE_HalContext *phost, uint32_t address, uint32_t size)
Set the media FIFO.
EVE_HAL_EXPORT uint32_t EVE_MediaFifo_rp(EVE_HalContext *phost)
Get the current read pointer.
EVE_HAL_EXPORT bool EVE_MediaFifo_waitFlush(EVE_HalContext *phost, bool orCmdFlush)
Wait for the media FIFO to fully empty.
EVE_HAL_EXPORT void EVE_MediaFifo_close(EVE_HalContext *phost)
EVE_HAL_EXPORT 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.
static ft_uint32_t ft_uint8_t * buffer
Definition FT_Gpu_Hal.h:139