28 #define ISF_FIFO_ERR_NO_MEM (1)
29 #define ISF_FIFO_ERR_USER_BUF (2)
30 #define ISF_FIFO_ERR_BUSY (3)
31 #define ISF_FIFO_ERR_INVALID_PTR (4)
32 #define ISF_FIFO_ERR_NO_INIT (5)
33 #define ISF_FIFO_FULL (6)
34 #define ISF_FIFO_NO_MORE_ENTRIES (7)
131 semaphore_t bufferLock;
135 #define ISF_FIFO_ERR_NO_MEM (1)
136 #define ISF_FIFO_ERR_USER_BUF (2)
137 #define ISF_FIFO_ERR_BUSY (3)
138 #define ISF_FIFO_ERR_INVALID_PTR (4)
139 #define ISF_FIFO_ERR_NO_INIT (5)
140 #define ISF_FIFO_FULL (6)
141 #define ISF_FIFO_NO_MORE_ENTRIES (7)
isf_fifo_status_t isf_fifo_try_lock(isf_fifo_t *pFifo)
Attempt to lock a sample buffer for exclusive access.
isf_fifo_status_t isf_fifo_lock(isf_fifo_t *pFifo)
Lock a sample buffer for exclusive access.
isf_fifo_status_t isf_fifo_unlock(isf_fifo_t *pFifo)
Release the exclusive access lock on a sample buffer.
isf_fifo_status_t isf_fifo_el_increment(isf_fifo_t *pFifo)
Routine increments the insert pointer after direct access.
isf_fifo_status_t isf_fifo_el_clear(isf_fifo_t *pFifo)
Routine to clear the fifo.
isf_fifo_status_t isf_fifo_resize(isf_fifo_t *pFifo, uint16 newCapacity)
Routine to copy the whole sample buffer.
isf_fifo_status_t isf_fifo_init(isf_fifo_t *pFifo, void *pData, uint16 sampleSize, uint16 bufferCapacity)
Initializes a new fifo structure with a provided buffer.
isf_fifo_status_t isf_fifo_alloc(isf_fifo_t *pFifo, uint16 sampleSize, uint16 bufferCapacity)
Initializes a fifo structure and allocates a new fifo buffer.
isf_fifo_status_t isf_fifo_free(isf_fifo_t *pFifo)
free a fifo's sample buffer.
Main ISF header file. Contains code common to all ISF components.
uint16 isf_fifo_get_buffer_size(isf_fifo_t *pFifo)
Routine to query the current fifo size (bytes)
unsigned short int uint16
void * isf_fifo_el_get_insert_pointer(isf_fifo_t *pFifo)
Routine returns the insert pointer for direct access.
isf_fifo_status_t isf_fifo_data_copy(isf_fifo_t *pFifo, void *samplePtr)
Routine to copy the whole sample buffer.
isf_fifo_status_t isf_fifo_el_traverse(isf_fifo_t *pFifo, void **pSamplePtr)
Routine to traverse a fifo To initiate the traversal set pSamplePtr to NULL. The function will set th...