Altera_avalon_fifo_write_ienable(), Altera_avalon_fifo_write_almostfull(), Altera_avalon_fifo_write_almostempty() – Altera Embedded Peripherals IP User Manual
Page 170: Altera_avalon_fifo_write_ienable() -15, Altera_avalon_fifo_write_almostfull() -15, Altera_avalon_fifo_write_almostempty() -15
![background image](https://www.manualsdir.com/files/763637/content/doc170.png)
Returns:
Returns 0 (
ALTERA_AVALON_FIFO_OK
) if successful,
ALTERA_AVALON_FIFO_
EVENT_CLEAR_ERROR
if unsuccessful.
Description:
Clears the specified bits of the
event
register.
altera_avalon_fifo_write_ienable()
Prototype:
int altera_avalon_fifo_write_ienable(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 value to write to the
interruptenable
register. See altera_avalon_
fifo_regs.h for individual interrupt bit masks.
Returns:
Returns 0 (
ALTERA_AVALON_FIFO_OK
) if successful,
ALTERA_AVALON_FIFO_
IENABLE_WRITE_ERROR
if unsuccessful.
Description:
Writes the specified bits of the
interruptenable
register.
altera_avalon_fifo_write_almostfull()
Prototype:
int altera_avalon_fifo_write_almostfull(alt_u32 address, alt_u32
data)
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
data
—the value for the almost full threshold level
Returns:
Returns 0 (
ALTERA_AVALON_FIFO_OK
) if successful,
ALTERA_AVALON_FIFO_
THRESHOLD_WRITE_ERROR
if unsuccessful.
Description:
Writes
data
to the
almostfull
register.
altera_avalon_fifo_write_almostempty()
Prototype:
int altera_avalon_fifo_write_almostempty(alt_u32 address, alt_u23
data)
Thread-safe:
No.
Available
from ISR:
No.
UG-01085
2014.24.07
altera_avalon_fifo_write_ienable()
16-15
On-Chip FIFO Memory Core
Altera Corporation