control-tps6598x¶
CLI reference¶
glasgow run control-tps6598x¶
Read and write TI TPS6598x USB PD controller registers.
usage: glasgow run control-tps6598x [-h] [-V VOLTS] [--scl PIN] [--sda PIN]
[--i2c-address ADDR]
OPERATION ...
- -h, --help¶
show this help message and exit
- -V <volts>, --voltage <volts>¶
configure I/O standard and power supply (range: 1.8..5 V, or 'S<port>' to use sense pin; default: unchanged)
- --scl <pin>¶
bind I²C clock to PIN (default: 'A0', required)
- --sda <pin>¶
bind I²C data to PIN (default: 'A1', required)
- --i2c-address <addr>¶
I2C address of the controller (default: 0x38)
glasgow run control-tps6598x read-all¶
usage: glasgow run control-tps6598x read-all [-h]
- -h, --help¶
show this help message and exit
glasgow run control-tps6598x read-reg¶
usage: glasgow run control-tps6598x read-reg [-h] ADDRESS
- address¶
register address
- -h, --help¶
show this help message and exit
glasgow run control-tps6598x write-reg¶
usage: glasgow run control-tps6598x write-reg [-h] ADDRESS DATA
- address¶
register address
- data¶
data to write, as hex bytes
- -h, --help¶
show this help message and exit
API reference¶
- class glasgow.applet.control.tps6598x.TPS6598xInterface(logger: Logger, i2c_iface: I2CControllerInterface, i2c_address: int = 0x38)¶