Rev 4704 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4704 | Rev 4756 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | */ |
44 | */ |
45 | #define DYN_FIFO_MAGIC_VALUE 0x58627659 |
45 | #define DYN_FIFO_MAGIC_VALUE 0x58627659 |
46 | 46 | ||
47 | /** Returns the next queue index. |
47 | /** Returns the next queue index. |
48 | * The queue field is circular. |
48 | * The queue field is circular. |
49 | * @param fifo The dynamic queue. Input parameter. |
49 | * @param[in] fifo The dynamic queue. |
50 | * @param index The actual index to be shifted. Input parameter. |
50 | * @param[in] index The actual index to be shifted. |
51 | */ |
51 | */ |
52 | #define NEXT_INDEX( fifo, index ) ((( index ) + 1 ) % (( fifo )->size + 1 )) |
52 | #define NEXT_INDEX( fifo, index ) ((( index ) + 1 ) % (( fifo )->size + 1 )) |
53 | 53 | ||
54 | /** Checks if the queue is valid. |
54 | /** Checks if the queue is valid. |
55 | * @param fifo The dynamic queue. Input parameter. |
55 | * @param[in] fifo The dynamic queue. |
56 | * @returns TRUE if the queue is valid. |
56 | * @returns TRUE if the queue is valid. |
57 | * @returns FALSE otherwise. |
57 | * @returns FALSE otherwise. |
58 | */ |
58 | */ |
59 | int dyn_fifo_is_valid( dyn_fifo_ref fifo ); |
59 | int dyn_fifo_is_valid( dyn_fifo_ref fifo ); |
60 | 60 |