LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages

Description

Functions

double I2CGetSpeed (TpDeviceHandle_t hDevice)
 Get the current I2C bus frequency. More...
 
double I2CGetSpeedMax (TpDeviceHandle_t hDevice)
 Get the maximum I2C bus frequency. More...
 
double I2CSetSpeed (TpDeviceHandle_t hDevice, double dSpeed)
 Set the I2C bus frequency. More...
 

Function Documentation

double I2CGetSpeed ( TpDeviceHandle_t  hDevice)

Get the current I2C bus frequency.

Parameters
hDeviceA device handle.
Returns
Bus frequency in Hz.
Since
0.4.0
double I2CGetSpeedMax ( TpDeviceHandle_t  hDevice)

Get the maximum I2C bus frequency.

Parameters
hDeviceA device handle.
Returns
Maximum bus frequency in Hz.
Since
0.4.0
double I2CSetSpeed ( TpDeviceHandle_t  hDevice,
double  dSpeed 
)

Set the I2C bus frequency.

Parameters
hDeviceA device handle.
dSpeedThe requested bus frequency in Hz.
Returns
Bus frequency that was actually set, in Hz.
Since
0.4.0