Altera_avalon_write_fifo(), Altera_avalon_write_other_info(), Altera_avalon_write_fifo() -16 – Altera Embedded Peripherals IP User Manual

Page 171: Altera_avalon_write_other_info() -16

Advertising
background image

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

address

—the base address of the FIFO control slave

data

—the value for the almost empty threshold level

Returns:

Returns 0 (

ALTERA_AVALON_FIFO_OK

) if successful,

ALTERA_AVALON_FIFO_

THRESHOLD_WRITE_ERROR

if unsuccessful.

Description:

Writes

data

to the

almostempty

register.

altera_avalon_write_fifo()

Prototype:

int altera_avalon_write_fifo(alt_u32 write_address, alt_u32 ctrl_

address, alt_u32 data)

Thread-safe:

No.

Available

from ISR:

No.

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

write_address

—the base address of the FIFO write slave

ctrl_address

—the base address of the FIFO control slave

data

—the value to write to address offset 0 for Avalon-MM to Avalon-ST

transfers, the value to write to the single address available for Avalon-MM to

Avalon-MM transfers. See the Avalon Interface Specifications section for the

data ordering.

Returns:

Returns 0 (

ALTERA_AVALON_FIFO_OK

) if successful,

ALTERA_AVALON_FIFO_FULL

if unsuccessful.

Description:

Writes

data

to the specified address if the FIFO is not full.

altera_avalon_write_other_info()

Prototype:

int altera_avalon_write_other_info(alt_u32 write_address, alt_u32

ctrl_address, alt_u32 data)

Thread-safe:

No.

Available

from ISR:

No.

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

write_address

—the base address of the FIFO write slave

ctrl_address

—the base address of the FIFO control slave

data

—the packet status information to write to address offset 1 of the Avalon

interface. See the Avalon Interface Specifications section for the ordering of the

packet status information.

16-16

altera_avalon_write_fifo()

UG-01085

2014.24.07

Altera Corporation

On-Chip FIFO Memory Core

Send Feedback

Advertising