HPM SDK
HPMicro Software Development Kit
hpm_serial_nor_host.h File Reference
#include "hpm_common.h"
#include "sfdp_def.h"

Go to the source code of this file.

Data Structures

struct  hpm_serial_nor_info_t
 information of serial nor flash More...
 
struct  hpm_nor_host_dma_control_t
 dma control param of serial nor flash host More...
 
struct  hpm_nor_host_param_t
 param and operation of serial nor flash host More...
 
struct  hpm_sfdp_read_para_t
 spi nor read parameters structure More...
 
struct  hpm_sfdp_program_para_t
 spi nor program parameters structure More...
 
struct  hpm_serial_nor_host_param_t
 param of serial nor flash host More...
 
struct  hpm_serial_nor_transfer_seq_t
 operation sequence of serial nor flash More...
 
struct  serial_nor_host_ops_t
 operation of serial nor flash host More...
 
struct  hpm_serial_nor_host_t
 serial nor flash host parameters structure More...
 
struct  hpm_serial_nor_t
 serial nor flash parameters structure More...
 

Macros

#define SERIAL_NOR_HOST_SUPPORT_SINGLE_IO_MODE   (1UL << 0)
 
#define SERIAL_NOR_HOST_SUPPORT_DUAL_IO_MODE   (1UL << 1)
 
#define SERIAL_NOR_HOST_SUPPORT_QUAD_IO_MODE   (1UL << 2)
 
#define SERIAL_NOR_HOST_SUPPORT_SPI_INTERFACE   (1UL << 3)
 
#define SERIAL_NOR_HOST_SUPPORT_DMA   (1UL << 8)
 
#define SERIAL_NOR_HOST_CS_CONTROL_AUTO   (1UL << 9)
 

Enumerations

enum  hpm_serial_nor_seq_io_mode_t { single_io_mode = 0 , dual_io_mode , quad_io_mode }
 IO mode of serial nor flash sequence. More...
 
enum  hpm_serial_nor_seq_addr_bit_t { flash_addrlen_24bit = 0 , flash_addrlen_32bit }
 number of address bits of serial nor flash sequence More...
 
enum  hpm_serial_nor_seq_direction_t { write_direction = 0 , read_direction }
 transfer direction serial nor flash sequence More...
 

Functions

hpm_stat_t serial_nor_host_ops_use_spi (hpm_serial_nor_t *dev)
 serial nor host operation is use spi operation More...
 

Macro Definition Documentation

◆ SERIAL_NOR_HOST_CS_CONTROL_AUTO

#define SERIAL_NOR_HOST_CS_CONTROL_AUTO   (1UL << 9)

◆ SERIAL_NOR_HOST_SUPPORT_DMA

#define SERIAL_NOR_HOST_SUPPORT_DMA   (1UL << 8)

◆ SERIAL_NOR_HOST_SUPPORT_DUAL_IO_MODE

#define SERIAL_NOR_HOST_SUPPORT_DUAL_IO_MODE   (1UL << 1)

◆ SERIAL_NOR_HOST_SUPPORT_QUAD_IO_MODE

#define SERIAL_NOR_HOST_SUPPORT_QUAD_IO_MODE   (1UL << 2)

◆ SERIAL_NOR_HOST_SUPPORT_SINGLE_IO_MODE

#define SERIAL_NOR_HOST_SUPPORT_SINGLE_IO_MODE   (1UL << 0)

◆ SERIAL_NOR_HOST_SUPPORT_SPI_INTERFACE

#define SERIAL_NOR_HOST_SUPPORT_SPI_INTERFACE   (1UL << 3)

Enumeration Type Documentation

◆ hpm_serial_nor_seq_addr_bit_t

number of address bits of serial nor flash sequence

Enumerator
flash_addrlen_24bit 
flash_addrlen_32bit 

◆ hpm_serial_nor_seq_direction_t

transfer direction serial nor flash sequence

Enumerator
write_direction 
read_direction 

◆ hpm_serial_nor_seq_io_mode_t

IO mode of serial nor flash sequence.

Enumerator
single_io_mode 
dual_io_mode 
quad_io_mode 

Function Documentation

◆ serial_nor_host_ops_use_spi()

hpm_stat_t serial_nor_host_ops_use_spi ( hpm_serial_nor_t dev)

serial nor host operation is use spi operation

Parameters
[in]devserial nor device
Returns
hpm_stat_t: status_success if success