![Ratoc Systems REX-USB61 Скачать руководство пользователя страница 60](http://html.mh-extra.com/html/ratoc-systems/rex-usb61/rex-usb61_user-manual_788102060.webp)
4. API function reference
Page.4-15
General on
I2C mode
VC
RS_STATUS usb61_i2c_bus_reset( HANDLE hUsb61Device );
VB
Function
Usb61I2cBusReset(ByVal hUsb61Device As Long) As Long
Definition
VB.NET
Function
Usb61I2cBusReset(ByVal hUsb61Device As Integer)
As Integer
Description
Reset I2C bus. Set the Stop condition to the I2C bus
Parameters
[IN] hUsb61Device : handle of an REX-USB61 device
Return
Values
RS_SUCCESS Function call succeeded.
Error code (refer. 4-5) Function call failed.
VC
RS_STATUS
usb61_i2c_set_freq( HANDLE hUsb61Device,
RS_I2C_FREQ fI2cFreq );
VB
Function
Usb61I2cSetFreq(ByVal hUsb61Device As Long,
ByVal fI2cFreq As Integer) As Long
Definition
VB.NET
Function
Usb61I2cSetFreq(ByVal hUsb61Device As Integer,
ByVal fI2cFreq As Short) As Integer
Description
Configures I2C bus frequency
Parameters
[IN] hUsb61Device : handle of an REX-USB61 device
[IN] fI2cFreq :the frequency of I2C bus
enumerated type of freqency by using the defined symbol as the following:
RS_I2C_FREQ_1M 1MHz
RS_I2C_FREQ_400K 400KHz
RS_I2C_FREQ_100K 100KHz
Return
Values
RS_SUCCESS Function call succeeded.
Error code (refer. 4-5) Function call failed.
VC
RS_STATUS
usb61_i2c_set_freq_ex( HANDLE hUsb61Device,
USHORT Frequency, USHORT *pActualFrequency);
VB
Function
Usb61I2cSetFreqEx(ByVal hUsb61Device As Long,
ByVal Frequency As Long,
pActualFrequency As Long) As Long
Definition
VB.NET
Function
Usb61I2cSetFreqEx(ByVal hUsb61Device As Integer,
ByVal Frequency As Integer,
ByRef pActualFrequency As Integer) As Integer
Description
Configures the I2C bus frequency in kilohertz.
Can be set from 47 to 100KHz.
The actual frequency value to be set return to the pActualFrequency.
Parameters
[IN] hUsb61Device : Handle of an REX-USB61 device
[IN] Frequency : The frequency to request on I2C bus
[OUT] pActualFrequency : The actual frequency value to be set
Return
Values
RS_SUCCESS Function call succeeded.
Error code (refer. 4-5) Function call failed.
Содержание REX-USB61
Страница 1: ...USB SPI I2C Protocol Emulator 2013 10 Rev 1 0 ...
Страница 75: ...RATOC Systems Inc All rights reserved ...