Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spi_flash_get_size

Functions

uint32 spi_flash_get_size (void)
 Get size of SPI Flash. More...
 

uint32 spi_flash_get_size ( void  )

Get size of SPI Flash.

Returns with uint32 value which is total flash size
.

Returns
Size of Flash
Author
M.S.M
Version
1.0
Note
Returned value in Mb (Mega Bit).
Returns
SPI flash size in case of success and a ZERO value in case of failure.

References M2M_ERR, M2M_INFO, and spi_flash_rdid().