1、数据结构
1.1 flash_ops_uid_read_method
/*! @brief Enumeration of flash UID retrieval methods
*/
typedef enum
{
/*! UID read method 0
* Typically used by:
* GigaDevice
* Winbond
* Puya
* ISSI
* Some XMC devices
*
* Read sequence:
* 0x4B UID read command
* 0x00 Address[0]
* 0x00 Address[1]
* 0x00 Address[2]
* 0x00 Dummy byte
* 16 Bytes read
*/
FLASH_OPS_UID_READ_METHOD0,
/*! UID read method 1
* Typically used by:
* Adesto
* Fidelix
* Macronix
*
* Read sequence:
* 0xB1 OTP enter command
* 0x03 SPI read command
* 0x00 Address[0]
* 0x00 Address[1]
* 0x00 Address[2]
* 16 Bytes read
* 0xC1 OTP exit command
*/
FLASH_OPS_UID_READ_METHOD1,
/*! UID read method 2
* Typically used by:
* Cypress (Sp