I'm novice in Lazarus and try to use Microchip SimpleIO.dll for communication with MCP2200 chip (USB to COM converter)
Microchip SimpleIO.dll written in C and all examples written for C language and Basic. I try to find any examples for Lazarus, but unsuccessfully.
dll API looks like
Simple IO API
Summary:
void __stdcall SimpleIOClass::InitMCP2200(unsigned int VendorID, unsigned int ProductID)
bool __stdcall SimpleIOClass::IsConnected()
bool __stdcall SimpleIOClass::ConfigureMCP2200(unsigned char IOMap, unsigned long BaudRateParam, unsigned int RxLEDMode, unsigned int TxLEDMode, bool FLOW, bool ULOAD, bool SSPND)
bool __stdcall SimpleIOClass::WritePort(unsigned int portValue)
bool __stdcall SimpleIOClass::ReadPort(unsigned int *returnvalue)
How to correctly declare and use this dll?