This is a C# (.NET 3.5) library that is built to interface with the Microchip MCP2210 USB to SPI device.
The library is using the MIT License and it's open for commercial usage.
The only dependency is HidSharp, a multi-platform library that supports Windows, MacOS, and Linux (hidraw). You can find it here. The reason why I used this library, is related to its simplicity, documentation and stability. And, of course, the ISC license, that is compatible with the MIT one.
The library supports all the features of the MCP2210, which are explained in
the datasheet.
The main interface is given by the IUsbToSpiDevice
, that contains the modules
used to interface with various parts of the device.
The modules are the following:
INonVoltatileRam
: the non-volatile RAM moduleIVolatileRam
: the volatile RAM moduleIExternalInterruptPin
: the external interrupt pin moduleISpiDataTransfer
: the SPI data transfer moduleIEepromMemory
: the EEPROM module
If you need any help, don't exitate to ask me any question.
The library is documented and there's not the wiki page yet.