48 #include "../inc/hw_memmap.h" 49 #include "../inc/hw_ospi.h" 50 #include "../inc/hw_types.h" 68 #define OSPI_STIG_READ_DATA_LOWER OSPI_O_FLASH_RD_DATA_LOWER 69 #define OSPI_STIG_READ_DATA_UPPER OSPI_O_FLASH_RD_DATA_UPPER 78 #define OSPI_STIG_MEMORY_BANK_TRANSFER_ENABLE OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_ENABLE 79 #define OSPI_STIG_MEMORY_BANK_TRANSFER_DISABLE OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_DISABLE 83 #define OSPI_STIG_WRITE_DATA_ENABLE OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA_ENABLE 84 #define OSPI_STIG_WRITE_DATA_DISABLE OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_DISABLE 90 #define OSPI_STIG_MODE_BIT_ENABLE OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_ENABLE 91 #define OSPI_STIG_MODE_BIT_DISABLE OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_DISABLE 95 #define OSPI_STIG_COMMAND_ADDRESS_ENABLE OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_ENABLE 96 #define OSPI_STIG_COMMAND_ADDRESS_DISABLE OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_DISABLE 100 #define OSPI_STIG_READ_DATA_ENABLE OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_ENABLE 101 #define OSPI_STIG_READ_DATA_DISABLE OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_DISABLE Write enable.
Definition: ospi.h:131
Level of protected block.
Definition: ospi.h:115
Level of protected block.
Definition: ospi.h:117
Write status/configuration register.
Definition: ospi.h:126
Chip erase (60h or C7h)
Definition: ospi.h:133
uint8_t stigModeBitEN
Definition: ospi.h:155
Normal read.
Definition: ospi.h:128
DIO-SPI mode (Instruction sent on DQ0 and DQ1)
Definition: ospi.h:143
Quad SPI en (35h or 38h)
Definition: ospi.h:134
Quad SPI mode Enable.
Definition: ospi.h:119
uint8_t stigAddrNumBytes
Definition: ospi.h:154
Sector erase.
Definition: ospi.h:132
Reset Enable.
Definition: ospi.h:136
uint32_t OSPIGetSTIGDataRegister(uint32_t regSelect)
Returns the read data or status register value.
Status register write protect.
Definition: ospi.h:120
OSPISTIGCommand
Sub group of used JEDEC commands.
Definition: ospi.h:124
OSPIFlashStatusRegister
OSPI flash status register bit indication.
Definition: ospi.h:111
uint8_t stigRdEn
Definition: ospi.h:151
Write in progress bit.
Definition: ospi.h:113
uint8_t stigRDNumBytes
Definition: ospi.h:152
Reset Memory.
Definition: ospi.h:137
uint8_t stigWrNumBytes
Definition: ospi.h:157
Normal write.
Definition: ospi.h:127
void OSPIStartSTIGCommand(uint32_t configReg)
Execute the STIG command.
uint8_t stigWrEn
Definition: ospi.h:156
QIO-SPI mode (Instruction sent on DQ0,DQ1,DQ2 and DQ3)
Definition: ospi.h:144
level of protected block
Definition: ospi.h:118
Write enable latch.
Definition: ospi.h:114
OSPIInstructionType
Definition: ospi.h:140
uint8_t stigOpcode
Definition: ospi.h:150
Quad disable (0xf5 or ffh)
Definition: ospi.h:135
Level of protected block.
Definition: ospi.h:116
Read status register.
Definition: ospi.h:130
Standard SPI mode (instruction always shifted into the device on DQ0 only)
Definition: ospi.h:142
Fast read.
Definition: ospi.h:129
uint8_t stigAddrEn
Definition: ospi.h:153
uint8_t stigNumDummyCycles
Definition: ospi.h:158
void OSPISetCommandAddress(uint32_t address)
Set the address for the STIG write/read command.
OIO-SPI mode (Instruction sent on DQ[7:0].
Definition: ospi.h:145
uint8_t stigMemoryEn
Definition: ospi.h:159
void OSPIExecuteSTIGWriteCommand(OSPISTIGConfig_t OspiStigCommand)
Configure and execute the STIG command.