
Returns: Returns 0 (ALTERA_AVALON_FIFO_OK) if successful, ALTERA_AVALON_FIFO_FULL
if unsuccessful.
Description: Writes the packet status information to the write_address. Only valid when
Enable packet data is on.
altera_avalon_fifo_read_fifo()
Prototype: int altera_avalon_fifo_read_fifo(alt_u32 read_address, alt_u32
ctrl_address)
Thread-safe: No.
Available
from ISR:
No.
Include: <altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>
Parameters: read_address—the base address of the FIFO read slave
ctrl_address—the base address of the FIFO control slave
Returns: Returns the data from address offset 0, or 0 if the FIFO is empty.
Description: Gets the data addressed by read_address.
R**altera_avalon_fifo_read_other_info()
Prototype:
int altera_avalon_fifo_read_other_info(alt_u32 read_address)
Thread-safe: No.
Available
from ISR:
No.
Include: <altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>
Parameters: read_address—the base address of the FIFO read slave
Returns: Returns the packet status information from address offset 1 of the Avalon
interface. See the Avalon Interface Specifications section for the ordering of the
packet status information.
Description: Reads the packet status information from the specified read_address. Only
valid when Enable packet data is on.
UG-01085
2014.24.07
altera_avalon_fifo_read_fifo()
16-17
On-Chip FIFO Memory Core
Altera Corporation
Send Feedback
Comentários a estes Manuais