This kit includes everything you need to create I2C Bus applications - iPort Windows to I2C Host Adapter (#MIIC-201G) and iPort Software Development Kit for Windows, Professional Edition (201-SDKW-P).
The I2C Software Development Kit for Windows Professional Edition includes our Dynamic Linked Libraries (DLL) for use in both 16-bit and 32-bit WindowsTM operating environments. When used with our iPort (#MIIC-201)Windows to I2C Host Adapter, this kit allows you to write custom Windows 3.x, 95+, or NT 3.5+ based I2C applications in Visual C/C++, MFC, Delphi, Visual Basic, or most other Windows application development tool that supports calls to a DLL.
In addition to our DLLs, this kit contains our Programmer's Guide and application examples in several popular Windows programming languages that enable your PC to become an active I2C Master or Slave device, transmitting and receiving I2C messages between your PC and one or more I2C devices across an I2C Bus. Each I2C message can include from 1 to 64K bytes of 8-bit ASCII Text or Binary data.
DLL functions are used by your application program to submit a request for I2C Bus Master message transfers to occur, to respond to I2C Bus Slave transfers, and to get the status of a previous operation or transfer. These DLL functions can then generate an event once the iPort operation is complete.
DLL Functions include:
I2COpen() - Open a link to the iPort device.
I2CClose() - Close the iPort link.
I2CMasterTx() - Master Transmit an I2C message.
I2CMasterRxExt(*) - Master Receive an I2C message.
I2CMasterTxRx(*) - Master Transmit and Receive (for SMBus Smart Battery Devices).
I2CGetStatus() - Get current iPort link status.
I2CGetMasterRxMsg() - Get a Master Receive Message.
I2CGetSlaveRxMsg() - Get a Slave Receive Message.
I2CChangeSlaveAddress() - Change iPort's I2C Slave Address.
I2CChangeSlaveGCEnable() - Change iPort's General Call Enable.
I2CSlaveTx() - Slave Transmit an I2C message.
(*) New for I2C32200.DLL and I2C200.DLL
Complete descriptions and sample applications of these functions are provided in product documentation.
In order to communicate with another I2C device, the following steps must be taken:
- Establish a link with the iPort with the I2COpen function.
- Master transmit I2C messages with the I2CMasterTx function.
- Master receive I2C messages with the I2CMasterRxExt and I2CGetMasterRxMsg functions.
- Slave transmit I2C messages with the I2CSlaveTx function.
- Slave receive I2C messages with the I2CGetSlaveRxMsg function.
- Terminate the link with the iPort with the I2CClose function.
Our DLLs provide four Application Program Interface (API) methods that support a variety of programming environments and application requirements. These methods include:
1. DLL Function Return Value
Each DLL function returns a value that can be used to detect if the operation was accepted or denied.
2. Application Window Message
If an Application specifies an Application Window Message Number during the