sqiflash 2.0.0.0
SQI FLASH Registers Settings

Settings for registers of SQI FLASH Click driver. More...

Macros

#define SQIFLASH_STATUS_WEL   0x02
 SQI FLASH description setting.
 
#define SQIFLASH_STATUS_WSE   0x04
 
#define SQIFLASH_STATUS_WSP   0x08
 
#define SQIFLASH_STATUS_WPLD   0x10
 
#define SQIFLASH_STATUS_SEC   0x20
 
#define SQIFLASH_STATUS_RES   0x40
 
#define SQIFLASH_STATUS_BUSY   0x80
 
#define SQIFLASH_CFG_RES   0x01
 
#define SQIFLASH_CFG_IOC   0x02
 
#define SQIFLASH_CFG_BPNV   0x08
 
#define SQIFLASH_CFG_WPEN   0x80
 
#define SQIFLASH_INSTR_NOP   0x00
 SQI FLASH Instructions.
 
#define SQIFLASH_INSTR_RSTEN   0x66
 
#define SQIFLASH_INSTR_RST   0x99
 
#define SQIFLASH_INSTR_EQIO   0x38
 
#define SQIFLASH_INSTR_RSTQIO   0xFF
 
#define SQIFLASH_INSTR_RDSR   0x05
 
#define SQIFLASH_INSTR_WRSR   0x01
 
#define SQIFLASH_INSTR_RDCR   0x35
 
#define SQIFLASH_INSTR_READ   0x03
 
#define SQIFLASH_INSTR_HS_READ   0x0B
 
#define SQIFLASH_INSTR_SQOR   0x6B
 
#define SQIFLASH_INSTR_SQIOR   0xEB
 
#define SQIFLASH_INSTR_SDOR   0x3B
 
#define SQIFLASH_INSTR_SDIOR   0xBB
 
#define SQIFLASH_INSTR_SB   0xC0
 
#define SQIFLASH_INSTR_RBSQI   0x0C
 
#define SQIFLASH_INSTR_RBSPI   0xEC
 
#define SQIFLASH_INSTR_JEDECID   0x9F
 
#define SQIFLASH_INSTR_QUAD_JID   0xAF
 
#define SQIFLASH_INSTR_SFDP   0x5A
 
#define SQIFLASH_INSTR_WREN   0x06
 
#define SQIFLASH_INSTR_WRDI   0x04
 
#define SQIFLASH_INSTR_SE   0x20
 
#define SQIFLASH_INSTR_BE   0xD8
 
#define SQIFLASH_INSTR_CE   0xC7
 
#define SQIFLASH_INSTR_PP   0x02
 
#define SQIFLASH_INSTR_SPI_QUAD   0x32
 
#define SQIFLASH_INSTR_WRSU   0xB0
 
#define SQIFLASH_INSTR_WRRE   0x30
 
#define SQIFLASH_INSTR_RBPR   0x72
 
#define SQIFLASH_INSTR_WBPR   0x42
 
#define SQIFLASH_INSTR_LBPR   0x8D
 
#define SQIFLASH_INSTR_NVWLDR   0xE8
 
#define SQIFLASH_INSTR_ULBPR   0x98
 
#define SQIFLASH_INSTR_RSID   0x88
 
#define SQIFLASH_INSTR_PSID   0xA5
 
#define SQIFLASH_INSTR_LSID   0x85
 
#define SQIFLASH_START_PAGE_ADDRESS   0x010000ul
 
#define SQIFLASH_END_PAGE_ADDRESS   0x7FFFFFul
 
#define SQIFLASH_FLASH_PAGE_SIZE   256
 
#define SQIFLASH_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SQIFLASH_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of SQI FLASH Click driver.

Macro Definition Documentation

◆ SQIFLASH_CFG_BPNV

#define SQIFLASH_CFG_BPNV   0x08

◆ SQIFLASH_CFG_IOC

#define SQIFLASH_CFG_IOC   0x02

◆ SQIFLASH_CFG_RES

#define SQIFLASH_CFG_RES   0x01

◆ SQIFLASH_CFG_WPEN

#define SQIFLASH_CFG_WPEN   0x80

◆ SQIFLASH_END_PAGE_ADDRESS

#define SQIFLASH_END_PAGE_ADDRESS   0x7FFFFFul

◆ SQIFLASH_FLASH_PAGE_SIZE

#define SQIFLASH_FLASH_PAGE_SIZE   256

◆ SQIFLASH_INSTR_BE

#define SQIFLASH_INSTR_BE   0xD8

◆ SQIFLASH_INSTR_CE

#define SQIFLASH_INSTR_CE   0xC7

◆ SQIFLASH_INSTR_EQIO

#define SQIFLASH_INSTR_EQIO   0x38

◆ SQIFLASH_INSTR_HS_READ

#define SQIFLASH_INSTR_HS_READ   0x0B

◆ SQIFLASH_INSTR_JEDECID

#define SQIFLASH_INSTR_JEDECID   0x9F

◆ SQIFLASH_INSTR_LBPR

#define SQIFLASH_INSTR_LBPR   0x8D

◆ SQIFLASH_INSTR_LSID

#define SQIFLASH_INSTR_LSID   0x85

◆ SQIFLASH_INSTR_NOP

#define SQIFLASH_INSTR_NOP   0x00

SQI FLASH Instructions.

Specified instructions for description of SQI FLASH Click driver.

◆ SQIFLASH_INSTR_NVWLDR

#define SQIFLASH_INSTR_NVWLDR   0xE8

◆ SQIFLASH_INSTR_PP

#define SQIFLASH_INSTR_PP   0x02

◆ SQIFLASH_INSTR_PSID

#define SQIFLASH_INSTR_PSID   0xA5

◆ SQIFLASH_INSTR_QUAD_JID

#define SQIFLASH_INSTR_QUAD_JID   0xAF

◆ SQIFLASH_INSTR_RBPR

#define SQIFLASH_INSTR_RBPR   0x72

◆ SQIFLASH_INSTR_RBSPI

#define SQIFLASH_INSTR_RBSPI   0xEC

◆ SQIFLASH_INSTR_RBSQI

#define SQIFLASH_INSTR_RBSQI   0x0C

◆ SQIFLASH_INSTR_RDCR

#define SQIFLASH_INSTR_RDCR   0x35

◆ SQIFLASH_INSTR_RDSR

#define SQIFLASH_INSTR_RDSR   0x05

◆ SQIFLASH_INSTR_READ

#define SQIFLASH_INSTR_READ   0x03

◆ SQIFLASH_INSTR_RSID

#define SQIFLASH_INSTR_RSID   0x88

◆ SQIFLASH_INSTR_RST

#define SQIFLASH_INSTR_RST   0x99

◆ SQIFLASH_INSTR_RSTEN

#define SQIFLASH_INSTR_RSTEN   0x66

◆ SQIFLASH_INSTR_RSTQIO

#define SQIFLASH_INSTR_RSTQIO   0xFF

◆ SQIFLASH_INSTR_SB

#define SQIFLASH_INSTR_SB   0xC0

◆ SQIFLASH_INSTR_SDIOR

#define SQIFLASH_INSTR_SDIOR   0xBB

◆ SQIFLASH_INSTR_SDOR

#define SQIFLASH_INSTR_SDOR   0x3B

◆ SQIFLASH_INSTR_SE

#define SQIFLASH_INSTR_SE   0x20

◆ SQIFLASH_INSTR_SFDP

#define SQIFLASH_INSTR_SFDP   0x5A

◆ SQIFLASH_INSTR_SPI_QUAD

#define SQIFLASH_INSTR_SPI_QUAD   0x32

◆ SQIFLASH_INSTR_SQIOR

#define SQIFLASH_INSTR_SQIOR   0xEB

◆ SQIFLASH_INSTR_SQOR

#define SQIFLASH_INSTR_SQOR   0x6B

◆ SQIFLASH_INSTR_ULBPR

#define SQIFLASH_INSTR_ULBPR   0x98

◆ SQIFLASH_INSTR_WBPR

#define SQIFLASH_INSTR_WBPR   0x42

◆ SQIFLASH_INSTR_WRDI

#define SQIFLASH_INSTR_WRDI   0x04

◆ SQIFLASH_INSTR_WREN

#define SQIFLASH_INSTR_WREN   0x06

◆ SQIFLASH_INSTR_WRRE

#define SQIFLASH_INSTR_WRRE   0x30

◆ SQIFLASH_INSTR_WRSR

#define SQIFLASH_INSTR_WRSR   0x01

◆ SQIFLASH_INSTR_WRSU

#define SQIFLASH_INSTR_WRSU   0xB0

◆ SQIFLASH_SET_DATA_SAMPLE_EDGE

#define SQIFLASH_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with sqiflash_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ SQIFLASH_SET_DATA_SAMPLE_MIDDLE

#define SQIFLASH_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SQIFLASH_START_PAGE_ADDRESS

#define SQIFLASH_START_PAGE_ADDRESS   0x010000ul

◆ SQIFLASH_STATUS_BUSY

#define SQIFLASH_STATUS_BUSY   0x80

◆ SQIFLASH_STATUS_RES

#define SQIFLASH_STATUS_RES   0x40

◆ SQIFLASH_STATUS_SEC

#define SQIFLASH_STATUS_SEC   0x20

◆ SQIFLASH_STATUS_WEL

#define SQIFLASH_STATUS_WEL   0x02

SQI FLASH description setting.

Specified setting for description of SQI FLASH Click driver.

◆ SQIFLASH_STATUS_WPLD

#define SQIFLASH_STATUS_WPLD   0x10

◆ SQIFLASH_STATUS_WSE

#define SQIFLASH_STATUS_WSE   0x04

◆ SQIFLASH_STATUS_WSP

#define SQIFLASH_STATUS_WSP   0x08