Description
Source
Call Graph
AT45_SendCommand
Sends a command to the dataflash through the SPI.


Syntax / parameters
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
|
|
|
Description
Sends a command to the dataflash through the SPI.
The command is identified by its command code and the number of bytes to transfer (1 + number of address bytes + number of dummy bytes). If data needs to be received, then a data buffer must be provided. This function does not block; its optional callback will be invoked when the transfer completes.
Source
The documentation for this Member was generated from the following files:
at45.c