Documentation ¶
Overview ¶
Package tusb320 supports communication with the Texas Instruments TUSB320 USB Type-C port controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( I2CBus = 0 I2CAddress = 0x61 )
View Source
var CurrentMode = map[byte]string{
0x00: "0.5 A",
0x01: "1.5 A",
0x02: "0.5 A",
0x03: "3.0 A",
}
Current mode values and meaning (SSLSEN9E, Table 7).
Functions ¶
func GetCurrentMode ¶
Get detected current advertisement, reading I2C data address 0x08 (CSR, (SLLSEN9E, Table 7) and extracting value CURRENT_MODE_ADVERTISE.
func GetDeviceID ¶
Get device identifier, reading I2C data address 0x00 - 0x07 (SLLSEN9E, Table 7).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.