#include <spiFlash_list.h>
Data Fields | |
| const char * | part_no |
| String representation of Part Number (e.g., "W25Q128"). | |
| u32 | jedec_id |
| Expected JEDEC ID (Manuf + Type + Cap). | |
| u32 | flags |
| Capability Flags (Flash Capability Flags). | |
| flash_hook | post_init_hook |
| Optional callback (NULL if unused). | |
SPI Flash Device Descriptor.
If user's specific Flash chip is not supported by the factory library, user can define a custom descriptor. This allows the driver to recognize the chip and apply specific vendor profiles or initialization logic.
Steps to Implement:
Below are the example of how to create a custom flash descriptor and register it to the driver.
Definition at line 343 of file spiFlash_list.h.
| u32 spiFlash_info_t::flags |
Capability Flags (Flash Capability Flags).
Definition at line 346 of file spiFlash_list.h.
| u32 spiFlash_info_t::jedec_id |
Expected JEDEC ID (Manuf + Type + Cap).
Definition at line 345 of file spiFlash_list.h.
| const char* spiFlash_info_t::part_no |
String representation of Part Number (e.g., "W25Q128").
Definition at line 344 of file spiFlash_list.h.
| flash_hook spiFlash_info_t::post_init_hook |
Optional callback (NULL if unused).
Definition at line 347 of file spiFlash_list.h.