void AT45D_Read(At45 *pAt45, unsigned char *pBuffer, unsigned int size, unsigned int address) { unsigned char error; SANITY_CHECK(pAt45); SANITY_CHECK(pBuffer); // Issue a continuous read array command error = AT45_SendCommand(pAt45, AT45_CONTINUOUS_READ_LEG, 8, pBuffer, size, address, 0, 0); ASSERT(!error, "-F- AT45_Read: Failed to issue command\n\r"); // Wait for the read command to execute while (AT45_IsBusy(pAt45)) { AT45D_Wait(pAt45); } }