MCP2210 Library
An Open Source MCP2210 Library for Linux.
|
#include <mcp2210.h>
Public Attributes | |
unsigned int | NumberOfBytesReceived |
unsigned int | SPIEngineStatus |
unsigned char | DataReceived [60] |
int | ErrorCode |
SPI data transfer status definition
unsigned char SPIDataTransferStatusDef::DataReceived[60] |
The buffer contains received data. Actual amount of data is determined by NumberOfBytesReceived.
The error code returned
unsigned int SPIDataTransferStatusDef::NumberOfBytesReceived |
Number of bytes received
unsigned int SPIDataTransferStatusDef::SPIEngineStatus |
SPI transfer engine status
0x10: SPI transfer finished, no data to send 0x20: SPI transfer started, no data to receive 0x30: SPI data accepted, command completed successfully