USB-to-I2C Adapter (EV2300)¶
Auto-generated from driver source.
TI EV2300¶
Texas Instruments EV2300 USB-to-SMBus/I2C adapter (HID-based, not SCPI).
TI_EV2300 ¶
TI EV2300A USB-to-I2C/SMBus adapter driver.
Does NOT inherit from DeviceManager — communicates via USB HID,
not PyVISA/SCPI. Follows the same non-standard pattern as
:class:NI_PXIe_4139.
Usage::
ev = TI_EV2300()
ev.connect()
result = ev.read_word(0x08, 0x00)
print(result["value"])
ev.disconnect()
Linux permissions -- create /etc/udev/rules.d/99-ev2300.rules::
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="0036", MODE="0666"
Then: sudo udevadm control --reload-rules && sudo udevadm trigger
read_word ¶
Read a 16-bit LE word from register on i2c_addr.
write_word ¶
Write a 16-bit LE word to register on i2c_addr.
read_byte ¶
Read a single byte from register on i2c_addr.
write_byte ¶
Write a single byte to register on i2c_addr.
read_block ¶
Read a variable-length block from register on i2c_addr.
write_block ¶
Write a block (max 52 bytes) to register on i2c_addr.
probe_command ¶
probe_command(cmd: int, i2c_addr: int = 8, register: int = 0, data: bytes = b'', write_submit: bool = False) -> dict
Send an arbitrary command and return raw response.
query ¶
Return an IDN-like string for compatibility with the toolkit.
i2c_power ¶
Send I2CPower command (0x18) to enable/disable the I2C power rail.
This is a SILENT command -- the real EV2300 sends no HID response. The STM32 bridge accepts it silently too.
read_smbus_word ¶
SMBusTransport compat: read 16-bit word.
write_smbus_byte ¶
SMBusTransport compat: write single byte.
enumerate_devices
staticmethod
¶
Return list of all EV2300 devices found on the system.
Parameters¶
diagnostics : bool When True, log detailed info about all TI HID devices found (including bootloader-mode units) and any errors encountered.
count_bootloader_devices
staticmethod
¶
Return the number of EV2300 devices in bootloader mode.