How can I...
57
Use the I
2
C bus
Some instruments have an I
2
C connection on the extension connector. Refer to
the hardware manual for the exact pin numbers on the extension connector of
the instrument.
Support of I
2
C requires instrument drivers of version 6.0.5.0 or higher. If your
driver version is lower, please refer to www.tiepie.nl for the latest version of the
drivers.
To control devices on this bus, the following routines are available.
Get the I
2
C bus speed
word I2CGetSpeed( dword *dwSpeed )
Description:
The I
2
C bus can operate on two frequencies, 100 kHz and 400
kHz. This routine will read the current bus speed.
Input:
-
Output:
dwSpeed
The bus frequency in Hz
return value
E_NO_ERRORS
E_NO_HARDWARE
E_NOT_SUPPORTED
Set the I
2
C bus speed
word I2CSetSpeed( dword *dwSpeed )
Description:
The I
2
C bus can operate on two frequencies, 100 kHz and 400
kHz. This routine will set the bus speed to the closest valid bus
speed.
Input:
dwSpeed
The requested bus frequency in Hz
Output:
dwSpeed
The bus frequency that was actually set, in Hz
return value
E_NO_ERRORS
E_NO_HARDWARE
E_NOT_SUPPORTED
Summary of Contents for Handyscope HS3
Page 2: ......
Page 8: ...8 Introduction...
Page 65: ...Deprecated routines 65...
Page 67: ...TiePie engineering DLL programmer s manual rev 1 26...