Specifications

alt_dma_rxchan_reg() on page 14-17
alt_dma_txchan_close() on page 14-18
alt_dma_txchan_ioctl() on page 14-19
alt_dma_txchan_open() on page 14-20
alt_dma_txchan_reg() on page 14-21
alt_dma_txchan_space() on page 14-26
alt_flash_open_dev()
Prototype
alt_flash_fd* alt_flash_open_dev(const char* name)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
No.
Available from ISR
No.
Include
<sys/alt_flash.h>
Description
The alt_flash_open_dev() function opens a flash device. After it is opened, you can perform the
following operations:
Write to a flash device using alt_write_flash()
Read from a flash device using alt_read_flash()
Control individual flash blocks using alt_get_flash_info(), alt_erase_flash_block(), or
alt_write_flash_block().
Call the alt_flash_open_dev function only when operating in single-threaded mode.
Return
The return value is zero upon failure. Any other value indicates success.
Related Information
alt_flash_close_dev() on page 14-22
alt_get_flash_info() on page 14-29
alt_read_flash() on page 14-47
alt_write_flash() on page 14-52
alt_write_flash_block() on page 14-53
14-28
alt_flash_open_dev()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback