Hello Smerico,
regarding Diolan U2C board...and its communcation to .DLL file
Can you help me with "U2C_Read" function, to implement using Wrapper DLL, I tried but not getting. (If u can give a small example)
For this Function "U2C_Read", I tried to use Wrapper DLL, i give input "handle device" and other input is a pointer to a structure.
* This structure contains all required information to perform I2C transaction
*/
typedef struct _U2C_TRANSACTION
{
BYTE nSlaveDeviceAddress; /*!< I2C Slave device address in 7 bit format */
BYTE nMemoryAddressLength; /*!< Slave Device Internal address size */
DWORD nMemoryAddress; /*!< Slave Device Internal address (Memory address) */
WORD nBufferLength; /*!< Transaction buffer length. Can be from 1 up to 256 */
BYTE Buffer[256]; /*!< Transaction Buffer */
} __PACKED_ATTR U2C_TRANSACTION, *PU2C_TRANSACTION;
Can you tell me how to pass the pointer to this above structure to the .dll file of the DIOLAN