unsigned char AT45_SendCommand (At45 *pAt45, unsigned char cmd, unsigned char cmdSize, unsigned char *pData, unsigned int dataSize, unsigned int address, SpidCallback callback, void *pArgument) |
Name | Type | Default | Description |
pAt45 | At45 * |
Pointer to an At45 driver instance. |
|
cmd | unsigned char |
Command code. |
|
cmdSize | unsigned char |
Size of command code + address bytes + dummy bytes. |
|
pData | unsigned char * |
Data buffer. |
|
dataSize | unsigned int |
Number of data bytes to send/receive. |
|
address | unsigned int |
Address at which the command is performed if meaningful. |
|
callback | SpidCallback |
Optional callback to invoke at end of transfer. |
|
pArgument | void * |
Optional parameter to the callback function. |
|
Return value | unsigned char |