AT45_FindDevice
Default mainpageat91libmemoriesspi-flashAT45_FindDevice
Description Source Call Graph
AT45_FindDevice
This function returns the At45Desc structure corresponding to the device connected It automatically initializes pAt45->pDesc field structure.
 
Syntax / parameters
At45Desc * AT45_FindDevice (At45 *pAt45, unsigned char status)

Name Type Default Description
pAt45 At45 *
  Pointer to an AT45 driver instance.
status unsigned char
  Device status register value.
 
Return value At45Desc *
   
Description
This function returns the At45Desc structure corresponding to the device connected It automatically initializes pAt45->pDesc field structure.
This function shall be called by the application before AT45_SendCommand. Returns 0 if successful; Otherwise, returns AT45_ERROR_LOCK if the At45 driver is in use or AT45_ERROR_SPI if there was an error with the SPI driver.
 
Source
The documentation for this Member was generated from the following files:
  • at45.c