usbcpower 2.1.0.0
USB-C Power Registers Settings

Settings for registers of USB-C Power Click driver. More...

Macros

#define USBCPOWER_CAP_POWER_ROLE_M   0x03
 USB-C Power description setting.
 
#define USBCPOWER_CAP_USBPD_CAP_M   0x04
 
#define USBCPOWER_CAP_I2CMLEVEL_VOLT_M   0x80
 
#define USBCPOWER_STATUS_PLUG_PRESENT_M   0x01
 USB-C Power description status value.
 
#define USBCPOWER_STATUS_CONN_STATE_M   0x0E
 
#define USBCPOWER_STATUS_PLUG_OR_M   0x10
 
#define USBCPOWER_STATUS_PORT_ROLE_M   0x20
 
#define USBCPOWER_STATUS_DATA_ROLE_M   0x40
 
#define USBCPOWER_STATUS_VBUS_STATUS_M   0x30
 
#define USBCPOWER_STATUS_USB_HOST_PRSNT_M   0xC0
 
#define USBCPOWER_STATUS_ACT_LEGACY_M   0x03
 
#define USBCPOWER_STATUS_BIST_M   0x08
 
#define USBCPOWER_RSP_OK   0x00
 USB-C Power description standard task response value.
 
#define USBCPOWER_RSP_PBMs   "PBMs"
 
#define USBCPOWER_RSP_PTCH   "PTCH"
 
#define USBCPOWER_RSP_APP   "APP "
 
#define USBCPOWER_RSP_BOOT   "BOOT"
 
#define USBCPOWER_RSP_DEVICE_INFO_NAME   "TPS65992"
 
#define USBCPOWER_CMD_SWSk   "4SWSk"
 USB-C Power description 4CC tasks command value.
 
#define USBCPOWER_CMD_SWSr   "4SWSr"
 
#define USBCPOWER_CMD_SWDF   "4SWDF"
 
#define USBCPOWER_CMD_SWUF   "4SWUF"
 
#define USBCPOWER_CMD_GSkC   "4GSkC"
 
#define USBCPOWER_CMD_GSrC   "4GSrC"
 
#define USBCPOWER_CMD_SSrC   "4SSrC"
 
#define USBCPOWER_CMD_PTCH   "4PTCH"
 
#define USBCPOWER_CMD_GO2P   "4GO2P"
 
#define USBCPOWER_CMD_PBMs   "4PBMs"
 
#define USBCPOWER_CMD_PBMc   "4PBMc"
 
#define USBCPOWER_CMD_PBMe   "4PBMe"
 
#define USBCPOWER_MODE_PTCH   0x00
 USB-C Power description of device modes value.
 
#define USBCPOWER_MODE_APP   0x01
 
#define USBCPOWER_MODE_BOOT   0x02
 
#define USBCPOWER_MODE_UNKNOWN   0x03
 
#define USBCPOWER_PD_CON_MODE_SOURCE   0x00
 
#define USBCPOWER_PD_CON_MODE_SINK   0x01
 
#define USBCPOWER_PD_MODE_SELECTOR   USBCPOWER_PD_CON_MODE_SOURCE
 
#define USBCPOWER_STATUS_NO_CONNECTION   0x00
 USB-C Power description of power status value.
 
#define USBCPOWER_STATUS_PORT_DISABLED   0x01
 
#define USBCPOWER_STATUS_AUDIO_CONNECTION   0x02
 
#define USBCPOWER_STATUS_DEBUG_CONNECTION   0x03
 
#define USBCPOWER_STATUS_NO_CONNECTION_Ra   0x04
 
#define USBCPOWER_STATUS_RESERVED   0x05
 
#define USBCPOWER_STATUS_CONNECT_NO_Ra   0x06
 
#define USBCPOWER_PWR_STATUS_USB   0x00
 
#define USBCPOWER_PWR_STATUS_TYPE_C_1_5A   0x01
 
#define USBCPOWER_PWR_STATUS_TYPE_C_3_0A   0x02
 
#define USBCPOWER_PWR_STATUS_CHG_ADV_DISABLE   0x00
 
#define USBCPOWER_PWR_STATUS_CHG_ADV_PROCESS   0x01
 
#define USBCPOWER_PWR_STATUS_CHG_ADV_COMPLETE   0x02
 
#define USBCPOWER_DEVICE_ADDRESS   0x21
 USB-C Power device address setting.
 

Detailed Description

Settings for registers of USB-C Power Click driver.

Macro Definition Documentation

◆ USBCPOWER_CAP_I2CMLEVEL_VOLT_M

#define USBCPOWER_CAP_I2CMLEVEL_VOLT_M   0x80

◆ USBCPOWER_CAP_POWER_ROLE_M

#define USBCPOWER_CAP_POWER_ROLE_M   0x03

USB-C Power description setting.

Specified setting for description of USB-C Power Click driver.

◆ USBCPOWER_CAP_USBPD_CAP_M

#define USBCPOWER_CAP_USBPD_CAP_M   0x04

◆ USBCPOWER_CMD_GO2P

#define USBCPOWER_CMD_GO2P   "4GO2P"

◆ USBCPOWER_CMD_GSkC

#define USBCPOWER_CMD_GSkC   "4GSkC"

◆ USBCPOWER_CMD_GSrC

#define USBCPOWER_CMD_GSrC   "4GSrC"

◆ USBCPOWER_CMD_PBMc

#define USBCPOWER_CMD_PBMc   "4PBMc"

◆ USBCPOWER_CMD_PBMe

#define USBCPOWER_CMD_PBMe   "4PBMe"

◆ USBCPOWER_CMD_PBMs

#define USBCPOWER_CMD_PBMs   "4PBMs"

◆ USBCPOWER_CMD_PTCH

#define USBCPOWER_CMD_PTCH   "4PTCH"

◆ USBCPOWER_CMD_SSrC

#define USBCPOWER_CMD_SSrC   "4SSrC"

◆ USBCPOWER_CMD_SWDF

#define USBCPOWER_CMD_SWDF   "4SWDF"

◆ USBCPOWER_CMD_SWSk

#define USBCPOWER_CMD_SWSk   "4SWSk"

USB-C Power description 4CC tasks command value.

Specified 4CC tasks command value for description of USB-C Power Click driver.

◆ USBCPOWER_CMD_SWSr

#define USBCPOWER_CMD_SWSr   "4SWSr"

◆ USBCPOWER_CMD_SWUF

#define USBCPOWER_CMD_SWUF   "4SWUF"

◆ USBCPOWER_DEVICE_ADDRESS

#define USBCPOWER_DEVICE_ADDRESS   0x21

USB-C Power device address setting.

Specified setting for device slave address selection of USB-C Power Click driver.

◆ USBCPOWER_MODE_APP

#define USBCPOWER_MODE_APP   0x01

◆ USBCPOWER_MODE_BOOT

#define USBCPOWER_MODE_BOOT   0x02

◆ USBCPOWER_MODE_PTCH

#define USBCPOWER_MODE_PTCH   0x00

USB-C Power description of device modes value.

Specified device modes value for description of USB-C Power Click driver.

◆ USBCPOWER_MODE_UNKNOWN

#define USBCPOWER_MODE_UNKNOWN   0x03

◆ USBCPOWER_PD_CON_MODE_SINK

#define USBCPOWER_PD_CON_MODE_SINK   0x01

◆ USBCPOWER_PD_CON_MODE_SOURCE

#define USBCPOWER_PD_CON_MODE_SOURCE   0x00

◆ USBCPOWER_PD_MODE_SELECTOR

#define USBCPOWER_PD_MODE_SELECTOR   USBCPOWER_PD_CON_MODE_SOURCE

◆ USBCPOWER_PWR_STATUS_CHG_ADV_COMPLETE

#define USBCPOWER_PWR_STATUS_CHG_ADV_COMPLETE   0x02

◆ USBCPOWER_PWR_STATUS_CHG_ADV_DISABLE

#define USBCPOWER_PWR_STATUS_CHG_ADV_DISABLE   0x00

◆ USBCPOWER_PWR_STATUS_CHG_ADV_PROCESS

#define USBCPOWER_PWR_STATUS_CHG_ADV_PROCESS   0x01

◆ USBCPOWER_PWR_STATUS_TYPE_C_1_5A

#define USBCPOWER_PWR_STATUS_TYPE_C_1_5A   0x01

◆ USBCPOWER_PWR_STATUS_TYPE_C_3_0A

#define USBCPOWER_PWR_STATUS_TYPE_C_3_0A   0x02

◆ USBCPOWER_PWR_STATUS_USB

#define USBCPOWER_PWR_STATUS_USB   0x00

◆ USBCPOWER_RSP_APP

#define USBCPOWER_RSP_APP   "APP "

◆ USBCPOWER_RSP_BOOT

#define USBCPOWER_RSP_BOOT   "BOOT"

◆ USBCPOWER_RSP_DEVICE_INFO_NAME

#define USBCPOWER_RSP_DEVICE_INFO_NAME   "TPS65992"

◆ USBCPOWER_RSP_OK

#define USBCPOWER_RSP_OK   0x00

USB-C Power description standard task response value.

Specified tasks response value for description of USB-C Power Click driver.

◆ USBCPOWER_RSP_PBMs

#define USBCPOWER_RSP_PBMs   "PBMs"

◆ USBCPOWER_RSP_PTCH

#define USBCPOWER_RSP_PTCH   "PTCH"

◆ USBCPOWER_STATUS_ACT_LEGACY_M

#define USBCPOWER_STATUS_ACT_LEGACY_M   0x03

◆ USBCPOWER_STATUS_AUDIO_CONNECTION

#define USBCPOWER_STATUS_AUDIO_CONNECTION   0x02

◆ USBCPOWER_STATUS_BIST_M

#define USBCPOWER_STATUS_BIST_M   0x08

◆ USBCPOWER_STATUS_CONN_STATE_M

#define USBCPOWER_STATUS_CONN_STATE_M   0x0E

◆ USBCPOWER_STATUS_CONNECT_NO_Ra

#define USBCPOWER_STATUS_CONNECT_NO_Ra   0x06

◆ USBCPOWER_STATUS_DATA_ROLE_M

#define USBCPOWER_STATUS_DATA_ROLE_M   0x40

◆ USBCPOWER_STATUS_DEBUG_CONNECTION

#define USBCPOWER_STATUS_DEBUG_CONNECTION   0x03

◆ USBCPOWER_STATUS_NO_CONNECTION

#define USBCPOWER_STATUS_NO_CONNECTION   0x00

USB-C Power description of power status value.

Specified power status information value for description of USB-C Power Click driver.

◆ USBCPOWER_STATUS_NO_CONNECTION_Ra

#define USBCPOWER_STATUS_NO_CONNECTION_Ra   0x04

◆ USBCPOWER_STATUS_PLUG_OR_M

#define USBCPOWER_STATUS_PLUG_OR_M   0x10

◆ USBCPOWER_STATUS_PLUG_PRESENT_M

#define USBCPOWER_STATUS_PLUG_PRESENT_M   0x01

USB-C Power description status value.

Specified status value for description of USB-C Power Click driver.

◆ USBCPOWER_STATUS_PORT_DISABLED

#define USBCPOWER_STATUS_PORT_DISABLED   0x01

◆ USBCPOWER_STATUS_PORT_ROLE_M

#define USBCPOWER_STATUS_PORT_ROLE_M   0x20

◆ USBCPOWER_STATUS_RESERVED

#define USBCPOWER_STATUS_RESERVED   0x05

◆ USBCPOWER_STATUS_USB_HOST_PRSNT_M

#define USBCPOWER_STATUS_USB_HOST_PRSNT_M   0xC0

◆ USBCPOWER_STATUS_VBUS_STATUS_M

#define USBCPOWER_STATUS_VBUS_STATUS_M   0x30