MCP2210 Library
An Open Source MCP2210 Library for Linux.
|
#include <mcp2210.h>
Public Attributes | |
unsigned long | BitRate |
unsigned int | IdleChipSelectValue |
unsigned int | ActiveChipSelectValue |
unsigned int | CSToDataDelay |
unsigned int | LastDataByteToCSDelay |
unsigned int | SubsequentDataByteDelay |
unsigned int | BytesPerSPITransfer |
unsigned int | SPIMode |
int | ErrorCode |
SPI transfer settings definition
unsigned int SPITransferSettingsDef::ActiveChipSelectValue |
MSB LSB CS8 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0
unsigned long SPITransferSettingsDef::BitRate |
Bit Rate (bps)
unsigned int SPITransferSettingsDef::BytesPerSPITransfer |
Number of bytes to be transfered per SPI transaction
unsigned int SPITransferSettingsDef::CSToDataDelay |
Chip select to data delay delay = value x 100 ns
The error code returned
unsigned int SPITransferSettingsDef::IdleChipSelectValue |
MSB LSB CS8 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0
unsigned int SPITransferSettingsDef::LastDataByteToCSDelay |
Last data byte to chip select (de-asserted) delay delay = value x 100 ns
unsigned int SPITransferSettingsDef::SPIMode |
SPI Mode 0x00: SPI mode 0 0x01: SPI mode 1 0x02; SPI mode 2 0x03: SPI mode 3
unsigned int SPITransferSettingsDef::SubsequentDataByteDelay |
Delay between subsequent data bytes delay = value x 100 ns