Altera_avalon_fifo_read_event(), Altera_avalon_fifo_read_level(), Altera_avalon_fifo_clear_event() – Altera Embedded Peripherals IP User Manual

Page 169: Altera_avalon_fifo_read_event() -14, Altera_avalon_fifo_read_level() -14, Altera_avalon_fifo_clear_event() -14

Advertising
background image

Description:

Gets the value of the

almostempty

register.

altera_avalon_fifo_read_event()

Prototype:

int altera_avalon_fifo_read_event(alt_u32 address, alt_u32 mask)

Thread-safe:

No.

Available

from ISR:

No.

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

address

—the base address of the FIFO control slave

mask

—masks the read value from the

event

register

Returns:

Returns the logical

AND

of the

event

register and the mask.

Description:

Gets the logical

AND

of the

event

register and the mask. To read single bits of the

event register use the single bit masks, for example:

ALTERA_AVALON_FIFO_FIFO_

EVENT_F_MSK

. To read the entire

event

register use the full mask:

ALTERA_

AVALON_FIFO_EVENT_ALL

.

altera_avalon_fifo_read_level()

Prototype:

int altera_avalon_fifo_read_level(alt_u32 address)

Thread-safe:

No.

Available

from ISR:

No.

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

address

—the base address of the FIFO control slave

Returns:

Returns the fill level of the FIFO.

Description:

Gets the fill level of the FIFO.

altera_avalon_fifo_clear_event()

Prototype:

int altera_avalon_fifo_clear_event(alt_u32 address, alt_u32 mask)

Thread-safe:

No.

Available

from ISR:

No.

Include:

<altera_avalon_fifo_regs.h>, <altera_avalon_fifo_utils.h>

Parameters:

address

—the base address of the FIFO control slave

mask

—the mask to use for bit-clearing (1 means clear this bit, 0 means do not

clear)

16-14

altera_avalon_fifo_read_event()

UG-01085

2014.24.07

Altera Corporation

On-Chip FIFO Memory Core

Send Feedback

Advertising