HPM SDK
HPMicro Software Development Kit
sfdp_def.h File Reference
#include <stdint.h>
#include "hpm_common.h"

Go to the source code of this file.

Macros

#define SERIAL_FLASH_READ_SFDP   (0x5AU)
 
#define SERIAL_FLASH_READ_MANUFACTURE_ID   (0x9FU)
 
#define SFDP_SIGNATURE   (0x50444653UL) /* ASCII: SFDP */
 
#define SFDP_VERSION_MAJOR_1_0   (1U)
 
#define SFDP_VERSION_MINOR_0   (0U) /* JESD216 */
 
#define SFDP_VERSION_MINOR_A   (5U) /* JESD216A */
 
#define SFDP_VERSION_MINOR_B   (6U) /* JESD216B */
 
#define SFDP_VERSION_MINOR_C   (7U) /* JESD216C */
 
#define SFDP_VERSION_MINOR_D   (8U) /* JESD216D */
 
#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REV0   (36U)
 
#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVA   (64U)
 
#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVB   SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVA
 
#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVC   (80U)
 
#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVD   SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVC
 
#define PARAMETER_ID_BASIC_SPIPROTOCOL   (0xFF00U)
 
#define PARAMETER_ID_SECTOR_MAP   (0xFF81U)
 
#define PARAMETER_ID_4BYTEADDRESS_INSTRUCTION_TABLE   (0xFF84U)
 
#define PARAMETER_ID_XSPIPROFILE1_0   (0xFF05U)
 
#define PARAMETER_ID_XSPIOROFILE2_0   (0xFF06U)
 
#define PARAMETER_ID_STACTRLCFGREGMAP   (0xFF87U)
 
#define PARAMETER_ID_OPIENABLESEQ   (0xFF09U)
 
#define PARAMETER_ID_CMDSEQ_CHANGE_TO_OCTAL_DDR   (0xFF0AU)
 
#define NORFLASH_ADDRESSBITS_3B   (0U)
 
#define NORFLASH_ADDRESSBITS_3B_4B   (1U)
 
#define NORFLASH_ADDRESSBITS_4B   (2U)
 
#define COMMAND_EXTENSION_SAME_AS_COMMAND   (0U)
 
#define COMMAND_EXTENSION_INVERSE_OF_COMMAND   (1U)
 
#define COMMAND_AND_COMMANDEXTENSION_16BITWORD   (2U)
 
#define ENTER_OCTAL_MODE_OPTION0   HPM_BITSMASK(1U, 1)
 
#define ENTER_OCTAL_MODE_OPTION1   HPM_BITSMASK(1U, 2)
 
#define SERIALNOR_CMD_BASICREAD_3B   (0x03U)
 
#define SERIALNOR_CMD_BASICREAD_4B   (0x13U)
 
#define SERIALNOR_CMD_PAGEPROGRAM_1_1_1_3B   (0x02U)
 
#define SERIALNOR_CMD_PAGEPROGRAM_1_1_1_4B   (0x12U)
 
#define SERIALNOR_CMD_PAGEPROGRAM_1_4_4_4B   (0x3EU)
 
#define SERIALNOR_CMD_PAGEPROGRAM_1_1_4_4B   (0x34U)
 
#define SERIALNOR_CMD_READ_SDR_1_4_4_3B   (0xEBU)
 
#define SERIALNOR_CMD_READ_DDR_1_4_4_3B   (0xEDU)
 
#define SERIALNOR_CMD_READ_SDR_1_4_4_4B   (0xECU)
 
#define SERIALNOR_CMD_READ_SDR_1_1_4_4B   (0x6CU)
 
#define SERIALNOR_CMD_READ_DDR_1_4_4_4B   (0xEEU)
 
#define SERIALNOR_CMD_CHIPERASE   (0x60U)
 
#define SERIALNOR_CMD_WRITEENABLE   (0x06U)
 
#define SERIALNOR_CMD_WRITE_STATUS_REG1   (0x01U)
 
#define SERIALNOR_CMD_READ_STATUS_REG1   (0x05U)
 
#define SERIALNOR_CMD_WRITE_STATUS_REG2   (0x3EU)
 
#define SERIALNOR_CMD_READ_STATUS_REG2   (0x3FU)
 
#define SERIALNOR_CMD_READ_FLAGREG   (0x70U)
 
#define SERIALNOR_CMD_READID   (0x9FU)
 
#define SERIALNOR_CMD_READ_DDR_4B   (0x0CU)
 
#define SERIALNOR_CMD_READ_DDR_3B   (0x0BU)
 
#define SERIALNOR_CMD_SE4K_3B   (0x20U)
 
#define SERIALNOR_CMD_SE4K_4B   (0x21U)
 
#define SERIALNOR_CMD_SE64K_3B   (0xD8U)
 
#define SERIALNOR_CMD_SE64K_4B   (0xDCU)
 

Typedefs

typedef union _sfdp_header sfdp_header_t
 
typedef union _sfdp_parameter_header sfdp_parameter_header_t
 
typedef union _jedec_flash_param_table jedec_flash_param_table_t
 
typedef union _jedec_4byte_addressing_inst_table jedec_4byte_addressing_inst_table_t
 
typedef union _jedec_cmd_sequence_change_to_octal_mode jedec_cmd_sequence_change_to_octal_mode_t
 
typedef union _jedec_x_spi_profile1_0_table_t jedec_x_spi_profile1_0_table_t
 
typedef union _jedec_status_control_configuration_reg_map jedec_status_control_configuration_reg_map_t
 
typedef struct _jdec_query_table jedec_info_table_t
 

Macro Definition Documentation

◆ COMMAND_AND_COMMANDEXTENSION_16BITWORD

#define COMMAND_AND_COMMANDEXTENSION_16BITWORD   (2U)

◆ COMMAND_EXTENSION_INVERSE_OF_COMMAND

#define COMMAND_EXTENSION_INVERSE_OF_COMMAND   (1U)

◆ COMMAND_EXTENSION_SAME_AS_COMMAND

#define COMMAND_EXTENSION_SAME_AS_COMMAND   (0U)

◆ ENTER_OCTAL_MODE_OPTION0

#define ENTER_OCTAL_MODE_OPTION0   HPM_BITSMASK(1U, 1)

◆ ENTER_OCTAL_MODE_OPTION1

#define ENTER_OCTAL_MODE_OPTION1   HPM_BITSMASK(1U, 2)

◆ NORFLASH_ADDRESSBITS_3B

#define NORFLASH_ADDRESSBITS_3B   (0U)

◆ NORFLASH_ADDRESSBITS_3B_4B

#define NORFLASH_ADDRESSBITS_3B_4B   (1U)

◆ NORFLASH_ADDRESSBITS_4B

#define NORFLASH_ADDRESSBITS_4B   (2U)

◆ PARAMETER_ID_4BYTEADDRESS_INSTRUCTION_TABLE

#define PARAMETER_ID_4BYTEADDRESS_INSTRUCTION_TABLE   (0xFF84U)

◆ PARAMETER_ID_BASIC_SPIPROTOCOL

#define PARAMETER_ID_BASIC_SPIPROTOCOL   (0xFF00U)

◆ PARAMETER_ID_CMDSEQ_CHANGE_TO_OCTAL_DDR

#define PARAMETER_ID_CMDSEQ_CHANGE_TO_OCTAL_DDR   (0xFF0AU)

◆ PARAMETER_ID_OPIENABLESEQ

#define PARAMETER_ID_OPIENABLESEQ   (0xFF09U)

◆ PARAMETER_ID_SECTOR_MAP

#define PARAMETER_ID_SECTOR_MAP   (0xFF81U)

◆ PARAMETER_ID_STACTRLCFGREGMAP

#define PARAMETER_ID_STACTRLCFGREGMAP   (0xFF87U)

◆ PARAMETER_ID_XSPIOROFILE2_0

#define PARAMETER_ID_XSPIOROFILE2_0   (0xFF06U)

◆ PARAMETER_ID_XSPIPROFILE1_0

#define PARAMETER_ID_XSPIPROFILE1_0   (0xFF05U)

◆ SERIAL_FLASH_READ_MANUFACTURE_ID

#define SERIAL_FLASH_READ_MANUFACTURE_ID   (0x9FU)

◆ SERIAL_FLASH_READ_SFDP

#define SERIAL_FLASH_READ_SFDP   (0x5AU)

◆ SERIALNOR_CMD_BASICREAD_3B

#define SERIALNOR_CMD_BASICREAD_3B   (0x03U)

◆ SERIALNOR_CMD_BASICREAD_4B

#define SERIALNOR_CMD_BASICREAD_4B   (0x13U)

◆ SERIALNOR_CMD_CHIPERASE

#define SERIALNOR_CMD_CHIPERASE   (0x60U)

◆ SERIALNOR_CMD_PAGEPROGRAM_1_1_1_3B

#define SERIALNOR_CMD_PAGEPROGRAM_1_1_1_3B   (0x02U)

◆ SERIALNOR_CMD_PAGEPROGRAM_1_1_1_4B

#define SERIALNOR_CMD_PAGEPROGRAM_1_1_1_4B   (0x12U)

◆ SERIALNOR_CMD_PAGEPROGRAM_1_1_4_4B

#define SERIALNOR_CMD_PAGEPROGRAM_1_1_4_4B   (0x34U)

◆ SERIALNOR_CMD_PAGEPROGRAM_1_4_4_4B

#define SERIALNOR_CMD_PAGEPROGRAM_1_4_4_4B   (0x3EU)

◆ SERIALNOR_CMD_READ_DDR_1_4_4_3B

#define SERIALNOR_CMD_READ_DDR_1_4_4_3B   (0xEDU)

◆ SERIALNOR_CMD_READ_DDR_1_4_4_4B

#define SERIALNOR_CMD_READ_DDR_1_4_4_4B   (0xEEU)

◆ SERIALNOR_CMD_READ_DDR_3B

#define SERIALNOR_CMD_READ_DDR_3B   (0x0BU)

◆ SERIALNOR_CMD_READ_DDR_4B

#define SERIALNOR_CMD_READ_DDR_4B   (0x0CU)

◆ SERIALNOR_CMD_READ_FLAGREG

#define SERIALNOR_CMD_READ_FLAGREG   (0x70U)

◆ SERIALNOR_CMD_READ_SDR_1_1_4_4B

#define SERIALNOR_CMD_READ_SDR_1_1_4_4B   (0x6CU)

◆ SERIALNOR_CMD_READ_SDR_1_4_4_3B

#define SERIALNOR_CMD_READ_SDR_1_4_4_3B   (0xEBU)

◆ SERIALNOR_CMD_READ_SDR_1_4_4_4B

#define SERIALNOR_CMD_READ_SDR_1_4_4_4B   (0xECU)

◆ SERIALNOR_CMD_READ_STATUS_REG1

#define SERIALNOR_CMD_READ_STATUS_REG1   (0x05U)

◆ SERIALNOR_CMD_READ_STATUS_REG2

#define SERIALNOR_CMD_READ_STATUS_REG2   (0x3FU)

◆ SERIALNOR_CMD_READID

#define SERIALNOR_CMD_READID   (0x9FU)

◆ SERIALNOR_CMD_SE4K_3B

#define SERIALNOR_CMD_SE4K_3B   (0x20U)

◆ SERIALNOR_CMD_SE4K_4B

#define SERIALNOR_CMD_SE4K_4B   (0x21U)

◆ SERIALNOR_CMD_SE64K_3B

#define SERIALNOR_CMD_SE64K_3B   (0xD8U)

◆ SERIALNOR_CMD_SE64K_4B

#define SERIALNOR_CMD_SE64K_4B   (0xDCU)

◆ SERIALNOR_CMD_WRITE_STATUS_REG1

#define SERIALNOR_CMD_WRITE_STATUS_REG1   (0x01U)

◆ SERIALNOR_CMD_WRITE_STATUS_REG2

#define SERIALNOR_CMD_WRITE_STATUS_REG2   (0x3EU)

◆ SERIALNOR_CMD_WRITEENABLE

#define SERIALNOR_CMD_WRITEENABLE   (0x06U)

◆ SFDP_BASIC_PROTOCOL_TABLE_SIZE_REV0

#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REV0   (36U)

◆ SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVA

#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVA   (64U)

◆ SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVB

#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVB   SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVA

◆ SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVC

#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVC   (80U)

◆ SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVD

#define SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVD   SFDP_BASIC_PROTOCOL_TABLE_SIZE_REVC

◆ SFDP_SIGNATURE

#define SFDP_SIGNATURE   (0x50444653UL) /* ASCII: SFDP */

◆ SFDP_VERSION_MAJOR_1_0

#define SFDP_VERSION_MAJOR_1_0   (1U)

◆ SFDP_VERSION_MINOR_0

#define SFDP_VERSION_MINOR_0   (0U) /* JESD216 */

◆ SFDP_VERSION_MINOR_A

#define SFDP_VERSION_MINOR_A   (5U) /* JESD216A */

◆ SFDP_VERSION_MINOR_B

#define SFDP_VERSION_MINOR_B   (6U) /* JESD216B */

◆ SFDP_VERSION_MINOR_C

#define SFDP_VERSION_MINOR_C   (7U) /* JESD216C */

◆ SFDP_VERSION_MINOR_D

#define SFDP_VERSION_MINOR_D   (8U) /* JESD216D */

Typedef Documentation

◆ jedec_4byte_addressing_inst_table_t

typedef union _jedec_4byte_addressing_inst_table jedec_4byte_addressing_inst_table_t

◆ jedec_cmd_sequence_change_to_octal_mode_t

typedef union _jedec_cmd_sequence_change_to_octal_mode jedec_cmd_sequence_change_to_octal_mode_t

◆ jedec_flash_param_table_t

typedef union _jedec_flash_param_table jedec_flash_param_table_t

◆ jedec_info_table_t

typedef struct _jdec_query_table jedec_info_table_t

◆ jedec_status_control_configuration_reg_map_t

typedef union _jedec_status_control_configuration_reg_map jedec_status_control_configuration_reg_map_t

◆ jedec_x_spi_profile1_0_table_t

typedef union _jedec_x_spi_profile1_0_table_t jedec_x_spi_profile1_0_table_t

◆ sfdp_header_t

typedef union _sfdp_header sfdp_header_t

◆ sfdp_parameter_header_t

typedef union _sfdp_parameter_header sfdp_parameter_header_t