58 #ifndef __ALT_QSPI_H__ 59 #define __ALT_QSPI_H__ 1127 const size_t num_bytes);
1239 const size_t num_bytes);
1339 #define ALT_QSPI_SRAM_FIFO_SIZE (512) 1344 #define ALT_QSPI_SRAM_FIFO_ENTRY_COUNT (512 / sizeof(uint32_t)) 1504 uint32_t * burst_type_sz);
1531 const uint32_t burst_type_sz);
Definition: alt_qspi.h:515
uint32_t alt_qspi_mode_bit_config_get(void)
Definition: alt_qspi.c:1216
Definition: alt_qspi.h:508
Definition: alt_qspi.h:489
ALT_STATUS_CODE alt_qspi_indirect_read_cancel(void)
Definition: alt_qspi.c:1737
ALT_STATUS_CODE alt_qspi_indirect_write_start(const uint32_t flash_addr, const size_t num_bytes)
Definition: alt_qspi.c:1793
ALT_STATUS_CODE alt_qspi_device_size_config_get(ALT_QSPI_DEV_SIZE_CONFIG_t *cfg)
Definition: alt_qspi.c:1245
Definition: alt_qspi.h:682
Definition: alt_qspi.h:473
ALT_STATUS_CODE alt_qspi_dma_enable(void)
Definition: alt_qspi.c:2127
bool wrprot_enable
Definition: alt_qspi.h:556
ALT_STATUS_CODE alt_qspi_device_read_config_set(const ALT_QSPI_DEV_INST_CONFIG_t *cfg)
Definition: alt_qspi.c:1339
struct ALT_QSPI_DEV_SIZE_CONFIG_s ALT_QSPI_DEV_SIZE_CONFIG_t
ALT_STATUS_CODE alt_qspi_mode_bit_enable(void)
Definition: alt_qspi.c:1207
ALT_STATUS_CODE alt_qspi_indirect_write_finish(void)
Definition: alt_qspi.c:1869
bool alt_qspi_indirect_write_is_complete(void)
Definition: alt_qspi.c:1927
uint32_t dummy_cycles
Definition: alt_qspi.h:714
ALT_QSPI_CLK_PHASE_e
Definition: alt_qspi.h:569
ALT_QSPI_MODE_t addr_xfer_type
Definition: alt_qspi.h:696
Definition: alt_qspi.h:527
ALT_STATUS_CODE alt_qspi_enable(void)
Definition: alt_qspi.c:422
ALT_STATUS_CODE alt_qspi_erase_subsector(const uint32_t addr)
Definition: alt_qspi.c:1988
ALT_STATUS_CODE alt_qspi_erase_sector(const uint32_t addr)
Definition: alt_qspi.c:2005
Definition: alt_qspi.h:506
ALT_QSPI_BAUD_DIV_t alt_qspi_baud_rate_div_get(void)
Definition: alt_qspi.c:1134
ALT_STATUS_CODE alt_qspi_init(void)
Definition: alt_qspi.c:312
ALT_STATUS_CODE alt_qspi_ahb_remap_address_set(const uint32_t ahb_remap_addr)
Definition: alt_qspi.c:1625
uint32_t alt_qspi_sram_partition_get(void)
Definition: alt_qspi.c:1937
uint32_t cs_sot
Definition: alt_qspi.h:647
ALT_QSPI_MODE_e
Definition: alt_qspi.h:467
ALT_STATUS_CODE alt_qspi_disable(void)
Definition: alt_qspi.c:415
ALT_STATUS_CODE alt_qspi_uninit(void)
Definition: alt_qspi.c:407
Definition: alt_qspi.h:514
Definition: alt_qspi.h:254
uint32_t cs_dads
Definition: alt_qspi.h:621
Definition: alt_qspi.h:602
ALT_STATUS_CODE alt_qspi_int_enable(const uint32_t mask)
Definition: alt_qspi.c:565
Definition: alt_qspi.h:193
Definition: alt_qspi.h:240
Definition: alt_qspi.h:503
uint32_t cs_da
Definition: alt_qspi.h:613
ALT_QSPI_CLK_POLARITY_t clk_pol
Definition: alt_qspi.h:609
ALT_STATUS_CODE alt_qspi_device_size_config_set(const ALT_QSPI_DEV_SIZE_CONFIG_t *cfg)
Definition: alt_qspi.c:1274
Definition: alt_qspi.h:588
enum ALT_QSPI_BAUD_DIV_e ALT_QSPI_BAUD_DIV_t
ALT_STATUS_CODE alt_qspi_dma_disable(void)
Definition: alt_qspi.c:2118
Definition: alt_qspi.h:216
ALT_STATUS_CODE alt_qspi_ahb_address_remap_enable(void)
Definition: alt_qspi.c:1647
Definition: alt_qspi.h:585
uint32_t rd_datacap
Definition: alt_qspi.h:659
Definition: alt_qspi.h:232
Definition: alt_qspi.h:182
uint32_t block_size
Definition: alt_qspi.h:529
uint32_t alt_qspi_indirect_write_watermark_get(void)
Definition: alt_qspi.c:1907
uint32_t page_size
Definition: alt_qspi.h:534
Definition: alt_qspi.h:571
uint32_t alt_qspi_ahb_remap_address_get(void)
Definition: alt_qspi.c:1619
Definition: alt_qspi.h:574
struct ALT_QSPI_DEV_INST_CONFIG_s ALT_QSPI_DEV_INST_CONFIG_t
ALT_STATUS_CODE alt_qspi_indirect_write_watermark_set(const uint32_t watermark)
Definition: alt_qspi.c:1913
ALT_STATUS_CODE alt_qspi_indirect_read_finish(void)
Definition: alt_qspi.c:1732
bool alt_qspi_is_idle(void)
Definition: alt_qspi.c:586
Definition: alt_qspi.h:502
ALT_STATUS_CODE alt_qspi_timing_config_get(ALT_QSPI_TIMING_CONFIG_t *cfg)
Definition: alt_qspi.c:1504
ALT_STATUS_CODE alt_qspi_device_write_config_get(ALT_QSPI_DEV_INST_CONFIG_t *cfg)
Definition: alt_qspi.c:1410
uint32_t upper_wrprot_block
Definition: alt_qspi.h:550
enum ALT_QSPI_CS_MODE_e ALT_QSPI_CS_MODE_t
Definition: alt_qspi.h:248
Definition: alt_qspi.h:177
Definition: alt_qspi.h:224
Definition: alt_qspi.h:517
ALT_STATUS_CODE alt_qspi_sram_partition_set(const uint32_t read_part_size)
Definition: alt_qspi.c:1947
ALT_STATUS_CODE alt_qspi_dma_config_get(uint32_t *single_type_sz, uint32_t *burst_type_sz)
Definition: alt_qspi.c:2136
ALT_STATUS_CODE alt_qspi_direct_disable(void)
Definition: alt_qspi.c:1601
uint32_t cs_eot
Definition: alt_qspi.h:634
Definition: alt_qspi.h:204
Definition: alt_qspi.h:491
uint32_t op_code
Definition: alt_qspi.h:684
ALT_STATUS_CODE alt_qspi_indirect_write_cancel(void)
Definition: alt_qspi.c:1878
ALT_STATUS_CODE alt_qspi_read(void *dest, uint32_t src, size_t size)
Definition: alt_qspi.c:694
ALT_STATUS_CODE alt_qspi_timing_config_set(const ALT_QSPI_TIMING_CONFIG_t *cfg)
Definition: alt_qspi.c:1524
uint32_t alt_qspi_indirect_read_fill_level(void)
Definition: alt_qspi.c:1746
enum ALT_QSPI_CLK_PHASE_e ALT_QSPI_CLK_PHASE_t
ALT_QSPI_MODE_t inst_type
Definition: alt_qspi.h:687
enum ALT_QSPI_CLK_POLARITY_e ALT_QSPI_CLK_POLARITY_t
ALT_QSPI_CLK_PHASE_t clk_phase
Definition: alt_qspi.h:604
Definition: alt_qspi.h:504
ALT_STATUS_CODE alt_qspi_indirect_read_start(const uint32_t flash_addr, const size_t num_bytes)
Definition: alt_qspi.c:1669
ALT_STATUS_CODE alt_qspi_chip_select_config_get(uint32_t *cs, ALT_QSPI_CS_MODE_t *cs_mode)
Definition: alt_qspi.c:1156
Definition: alt_qspi.h:476
ALT_STATUS_CODE alt_qspi_mode_bit_config_set(const uint32_t mode_bits)
Definition: alt_qspi.c:1223
ALT_STATUS_CODE alt_qspi_int_disable(const uint32_t mask)
Definition: alt_qspi.c:546
ALT_QSPI_CS_MODE_e
Definition: alt_qspi.h:487
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
ALT_QSPI_BAUD_DIV_e
Definition: alt_qspi.h:500
Definition: alt_qspi.h:505
ALT_STATUS_CODE alt_qspi_baud_rate_div_set(const ALT_QSPI_BAUD_DIV_t baud_rate_div)
Definition: alt_qspi.c:1140
ALT_STATUS_CODE alt_qspi_indirect_read_watermark_set(const uint32_t watermark)
Definition: alt_qspi.c:1760
ALT_STATUS_CODE alt_qspi_mode_bit_disable(void)
Definition: alt_qspi.c:1198
Definition: alt_qspi.h:167
uint32_t addr_size
Definition: alt_qspi.h:539
enum ALT_QSPI_MODE_e ALT_QSPI_MODE_t
ALT_STATUS_CODE alt_qspi_device_write_config_set(const ALT_QSPI_DEV_INST_CONFIG_t *cfg)
Definition: alt_qspi.c:1427
Definition: alt_qspi.h:510
Definition: alt_qspi.h:513
Definition: alt_qspi.h:199
uint32_t alt_qspi_int_status_get(void)
Definition: alt_qspi.c:525
ALT_STATUS_CODE alt_qspi_direct_enable(void)
Definition: alt_qspi.c:1610
ALT_STATUS_CODE alt_qspi_int_clear(const uint32_t mask)
Definition: alt_qspi.c:532
enum ALT_QSPI_INT_STATUS_e ALT_QSPI_INT_STATUS_t
uint32_t alt_qspi_indirect_write_fill_level(void)
Definition: alt_qspi.c:1899
Definition: alt_qspi.h:509
unsigned size
Definition: tte.h:74
Definition: alt_qspi.h:516
Definition: alt_qspi.h:188
Definition: alt_qspi.h:512
ALT_STATUS_CODE alt_qspi_erase_chip(void)
Definition: alt_qspi.c:2034
ALT_STATUS_CODE alt_qspi_device_read_config_get(ALT_QSPI_DEV_INST_CONFIG_t *cfg)
Definition: alt_qspi.c:1325
Definition: alt_qspi.h:507
ALT_QSPI_CLK_POLARITY_e
Definition: alt_qspi.h:583
Definition: alt_qspi.h:469
bool alt_qspi_indirect_read_is_complete(void)
Definition: alt_qspi.c:1774
ALT_STATUS_CODE alt_qspi_dma_config_set(const uint32_t single_type_sz, const uint32_t burst_type_sz)
Definition: alt_qspi.c:2171
ALT_STATUS_CODE alt_qspi_ahb_address_remap_disable(void)
Definition: alt_qspi.c:1638
uint32_t alt_qspi_indirect_read_watermark_get(void)
Definition: alt_qspi.c:1754
ALT_STATUS_CODE alt_qspi_chip_select_config_set(const uint32_t cs, const ALT_QSPI_CS_MODE_t cs_mode)
Definition: alt_qspi.c:1167
uint32_t lower_wrprot_block
Definition: alt_qspi.h:544
ALT_QSPI_MODE_t data_xfer_type
Definition: alt_qspi.h:705
struct ALT_QSPI_TIMING_CONFIG_s ALT_QSPI_TIMING_CONFIG_t
Definition: alt_qspi.h:511
ALT_QSPI_INT_STATUS_e
Definition: alt_qspi.h:157
ALT_STATUS_CODE alt_qspi_write(uint32_t dest, const void *src, size_t size)
Definition: alt_qspi.c:809