4. API function reference
Page.4-8
(4-3)
List of API functions
The list of API functions is as the below:
Table 4-1. API Function Names and Descriptions
Function name
Description
usb61_open()
Open the REX-USB61 device
usb61_close()
Close the REX-USB61 device.
usb61_power_control() Control
the supply power to the device
usb61_get_fw_version()
Get the version number of firmware
usb61_get_dll_version()
Get the version number of DLL
usb61_get_hw_info()
Retrieve the hardware information for the
SPI/I2C bus operation
usb61_mode_change()
Configure SPI/I2C mode
and Master/Slave operation
usb61_set_interval()
Configure the interval time of sending byte
data to the SPI/I2C bus
usb61_gpo_write()
Output to the GPO pin on I2C mode
usb61_i2c_pullup()
Set pullup on I2C bus
(Each pin of SDA and SCL)
usb61_i2c_bus_reset()
Reset I2C bus
usb61_i2c_set_freq()
Configures I2C bus frequency
usb61_i2c_set_freq_ex()
Configures
the I2C bus frequency in
kilohertz
usb61_i2c_read_master()
Read a stream of bytes from the I2C slave
device
usb61_i2c_read_master_ex()
Read a stream of bytes from the I2C slave
device with sub-address
usb61_i2c_write_master()
Write a stream of bytes to the I2C slave
device
usb61_i2c_read_slave()
Read a stream of bytes from the I2C
master device
usb61_i2c_set_response_data()
Set the data for sending to master device
on I2C slave mode
usb61_spi_set_freq()
Set the SPI bus frequency in kilohertz
usb61_spi_transmit_master()
Write a stream of bytes to the downstream
SPI slave device
*
After write, set SS line status to High
usb61_spi_transmit_master_hold_ss() Write a stream of bytes to the downstream
SPI slave device
*
After write, not set SS line status to High
Содержание REX-USB61
Страница 1: ...USB SPI I2C Protocol Emulator 2013 10 Rev 1 0 ...
Страница 75: ...RATOC Systems Inc All rights reserved ...