unsigned int AT26D_ReadJedecId(At26 *pAt26) { unsigned char error; unsigned int id = 0; SANITY_CHECK(pAt26); // Issue a read ID command error = AT26_SendCommand(pAt26, AT26_READ_JEDEC_ID, 1, (unsigned char *) &id, 3, 0, 0, 0); ASSERT(!error, "-F- AT26_GetJedecId: Could not issue command.\n\r"); // Wait for transfer to finish AT26D_Wait(pAt26); return id; }