control-tps6598x¶
CLI reference¶
glasgow run control-tps6598x¶
Read and write TI TPS6598x USB PD controller registers.
usage: glasgow run control-tps6598x [-h] [-V SPEC] [--scl PIN] [--sda PIN]
[--i2c-address ADDR]
OPERATION ...
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --scl <pin>¶
bind the applet I/O line ‘scl’ to PIN (default: ‘A0’, required)
- --sda <pin>¶
bind the applet I/O line ‘sda’ 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)¶