tusb320

package
v0.0.0-...-57044a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

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

func GetCurrentMode() (mode byte, err error)

Get detected current advertisement, reading I2C data address 0x08 (CSR, (SLLSEN9E, Table 7) and extracting value CURRENT_MODE_ADVERTISE.

func GetDeviceID

func GetDeviceID() (id []byte, err error)

Get device identifier, reading I2C data address 0x00 - 0x07 (SLLSEN9E, Table 7).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL