usbcsink4  2.1.0.0
Macros
USB-C Sink 4 Registers Settings

Settings for registers of USB-C Sink 4 Click driver. More...

Macros

#define USBCSINK4_TYPE_C_ST_PORT_DISCONN   0x00
 USB-C Sink 4 description setting. More...
 
#define USBCSINK4_TYPE_C_ST_PORT_CONN   0x01
 
#define USBCSINK4_TYPE_C_ST_PORT_BITMAKS   0x01
 
#define USBCSINK4_TYPE_C_ST_CC_1   0x00
 
#define USBCSINK4_TYPE_C_ST_CC_2   0x01
 
#define USBCSINK4_TYPE_C_ST_CC_BITMAKS   0x01
 
#define USBCSINK4_TYPE_C_ST_ATT_NTH   0x00
 
#define USBCSINK4_TYPE_C_ST_ATT_SRC   0x02
 
#define USBCSINK4_TYPE_C_ST_ATT_DEBUG   0x03
 
#define USBCSINK4_TYPE_C_ST_ATT_BITMAKS   0x07
 
#define USBCSINK4_TYPE_C_ST_CURR_0_9A   0x00
 
#define USBCSINK4_TYPE_C_ST_CURR_1A   0x01
 
#define USBCSINK4_TYPE_C_ST_CURR_3A   0x02
 
#define USBCSINK4_TYPE_C_ST_CURR_BITMAKS   0x03
 
#define USBCSINK4_CHARGING_MODE_ENABLE   0x00
 USB-C Sink 4 legacy charging mode support and status setting. More...
 
#define USBCSINK4_CHARGING_MODE_DISABLE   0x01
 
#define USBCSINK4_CHG_MODE_STATUS_CLEAR   0xFF
 
#define USBCSINK4_CHG_MODE_STATUS_NO_LGC   0x00
 USB-C Sink 4 active Legacy charging mode. More...
 
#define USBCSINK4_CHG_MODE_STATUS_BC1_2DCP_CDC   0x01
 
#define USBCSINK4_CHG_MODE_STATUS_QC2_1   0x02
 
#define USBCSINK4_CHG_MODE_STATUS_AFC   0x04
 
#define USBCSINK4_CHG_MODE_STATUS_APPLE   0x05
 
#define USBCSINK4_INTERRUPT_RESPONSE_NO   0x00
 USB-C Sink 4 active Legacy charging mode. More...
 
#define USBCSINK4_INTERRUPT_RESPONSE_DEV   0x01
 
#define USBCSINK4_INTERRUPT_RESPONSE_PD   0x02
 
#define USBCSINK4_VOLTAGE_SENS   0.1f
 USB-C Sink 4 voltage and current sensitivity setting. More...
 
#define USBCSINK4_CURRENT_SENS   0.05f
 
#define USBCSINK4_OVP_CONFIG_SIG_DISABLE   'D'
 USB-C Sink 4 OVP configuration data values. More...
 
#define USBCSINK4_OVP_CONFIG_SIG_RE_ENABLE   'C'
 
#define USBCSINK4_OVP_CONFIG_THOLD_DEFAULT   0x28
 
#define USBCSINK4_OVP_CONFIG_DBNC_DEFAULT   0x0A
 
#define USBCSINK4_SIG_RESET   'R'
 USB-C Sink 4 reset the device or the I2C block. More...
 
#define USBCSINK4_RESET_I2C   0x00
 
#define USBCSINK4_RESET_DEVICE   0x01
 
#define USBCSINK4_DEV_RSP_CMD_REG_WRITE   0x00
 USB-C Sink 4 device response data values. More...
 
#define USBCSINK4_DEV_RSP_ASYNC_EVENT   0x80
 
#define USBCSINK4_DEV_RSP_CODE_NO_RSP   0x00
 
#define USBCSINK4_DEV_RSP_CODE_SUCCESS   0x02
 
#define USBCSINK4_DEV_RSP_CODE_INVALID   0x05
 
#define USBCSINK4_DEV_RSP_CODE_UNEXPECTED   0x09
 
#define USBCSINK4_DEV_RSP_CODE_NOT_SUPPORTED   0x0A
 
#define USBCSINK4_DEV_RSP_CODE_TXN_FAILED   0x0C
 
#define USBCSINK4_DEV_RSP_CODE_PD_CMD_FAILED   0x0D
 
#define USBCSINK4_DEV_RSP_CODE_PORT_BUSY   0x12
 
#define USBCSINK4_DEV_RSP_CODE_RST_CPLT   0x80
 
#define USBCSINK4_DEV_RSP_CODE_MSG_QUEUE_OVF   0x81
 
#define USBCSINK4_DEV_RSP_CODE_OVC   0x82
 
#define USBCSINK4_DEV_RSP_CODE_OVV   0x83
 
#define USBCSINK4_DEV_RSP_CODE_PORT_CONN   0x84
 
#define USBCSINK4_DEV_RSP_CODE_PORT_DISCONN   0x85
 
#define USBCSINK4_DEV_RSP_CODE_PD_NEG_CPLT   0x86
 
#define USBCSINK4_DEV_RSP_CODE_SWAP_CPLT   0x87
 
#define USBCSINK4_DEV_RSP_CODE_PS_RDY   0x8A
 
#define USBCSINK4_DEV_RSP_CODE_GOTOMIN   0x8B
 
#define USBCSINK4_DEV_RSP_CODE_ACCEPT   0x8C
 
#define USBCSINK4_DEV_RSP_CODE_REJECT   0x8D
 
#define USBCSINK4_DEV_RSP_CODE_WAIT   0x8E
 
#define USBCSINK4_DEV_RSP_CODE_HARD_RST   0x8F
 
#define USBCSINK4_DEV_RSP_CODE_VDM_REC   0x90
 
#define USBCSINK4_DEV_RSP_CODE_SRC_CAPB   0x91
 
#define USBCSINK4_DEV_RSP_CODE_SINK_CAPB   0x92
 
#define USBCSINK4_DEV_RSP_CODE_HARD_RST_SENT   0x9A
 
#define USBCSINK4_DEV_RSP_CODE_SOFT_RST_SENT   0x9B
 
#define USBCSINK4_DEV_RSP_CODE_SRC_DIS   0x9D
 
#define USBCSINK4_DEV_RSP_CODE_NO_VDM_RES_REC   0x9F
 
#define USBCSINK4_SILICON_ID_BCR_LITE   0x20A2u
 USB-C Sink 4 silicon ID value. More...
 
#define USBCSINK4_DEVICE_ADDRESS   0x08
 USB-C Sink 4 device address setting. More...
 

Detailed Description

Settings for registers of USB-C Sink 4 Click driver.

Macro Definition Documentation

◆ USBCSINK4_CHARGING_MODE_DISABLE

#define USBCSINK4_CHARGING_MODE_DISABLE   0x01

◆ USBCSINK4_CHARGING_MODE_ENABLE

#define USBCSINK4_CHARGING_MODE_ENABLE   0x00

USB-C Sink 4 legacy charging mode support and status setting.

Specified setting for legacy charging mode support and status of USB-C Sink 4 Click driver.

◆ USBCSINK4_CHG_MODE_STATUS_AFC

#define USBCSINK4_CHG_MODE_STATUS_AFC   0x04

◆ USBCSINK4_CHG_MODE_STATUS_APPLE

#define USBCSINK4_CHG_MODE_STATUS_APPLE   0x05

◆ USBCSINK4_CHG_MODE_STATUS_BC1_2DCP_CDC

#define USBCSINK4_CHG_MODE_STATUS_BC1_2DCP_CDC   0x01

◆ USBCSINK4_CHG_MODE_STATUS_CLEAR

#define USBCSINK4_CHG_MODE_STATUS_CLEAR   0xFF

◆ USBCSINK4_CHG_MODE_STATUS_NO_LGC

#define USBCSINK4_CHG_MODE_STATUS_NO_LGC   0x00

USB-C Sink 4 active Legacy charging mode.

active Legacy charging mode of USB-C Sink 4 Click driver.

◆ USBCSINK4_CHG_MODE_STATUS_QC2_1

#define USBCSINK4_CHG_MODE_STATUS_QC2_1   0x02

◆ USBCSINK4_CURRENT_SENS

#define USBCSINK4_CURRENT_SENS   0.05f

◆ USBCSINK4_DEV_RSP_ASYNC_EVENT

#define USBCSINK4_DEV_RSP_ASYNC_EVENT   0x80

◆ USBCSINK4_DEV_RSP_CMD_REG_WRITE

#define USBCSINK4_DEV_RSP_CMD_REG_WRITE   0x00

USB-C Sink 4 device response data values.

Device response data values of USB-C Sink 4 Click driver.

◆ USBCSINK4_DEV_RSP_CODE_ACCEPT

#define USBCSINK4_DEV_RSP_CODE_ACCEPT   0x8C

◆ USBCSINK4_DEV_RSP_CODE_GOTOMIN

#define USBCSINK4_DEV_RSP_CODE_GOTOMIN   0x8B

◆ USBCSINK4_DEV_RSP_CODE_HARD_RST

#define USBCSINK4_DEV_RSP_CODE_HARD_RST   0x8F

◆ USBCSINK4_DEV_RSP_CODE_HARD_RST_SENT

#define USBCSINK4_DEV_RSP_CODE_HARD_RST_SENT   0x9A

◆ USBCSINK4_DEV_RSP_CODE_INVALID

#define USBCSINK4_DEV_RSP_CODE_INVALID   0x05

◆ USBCSINK4_DEV_RSP_CODE_MSG_QUEUE_OVF

#define USBCSINK4_DEV_RSP_CODE_MSG_QUEUE_OVF   0x81

◆ USBCSINK4_DEV_RSP_CODE_NO_RSP

#define USBCSINK4_DEV_RSP_CODE_NO_RSP   0x00

◆ USBCSINK4_DEV_RSP_CODE_NO_VDM_RES_REC

#define USBCSINK4_DEV_RSP_CODE_NO_VDM_RES_REC   0x9F

◆ USBCSINK4_DEV_RSP_CODE_NOT_SUPPORTED

#define USBCSINK4_DEV_RSP_CODE_NOT_SUPPORTED   0x0A

◆ USBCSINK4_DEV_RSP_CODE_OVC

#define USBCSINK4_DEV_RSP_CODE_OVC   0x82

◆ USBCSINK4_DEV_RSP_CODE_OVV

#define USBCSINK4_DEV_RSP_CODE_OVV   0x83

◆ USBCSINK4_DEV_RSP_CODE_PD_CMD_FAILED

#define USBCSINK4_DEV_RSP_CODE_PD_CMD_FAILED   0x0D

◆ USBCSINK4_DEV_RSP_CODE_PD_NEG_CPLT

#define USBCSINK4_DEV_RSP_CODE_PD_NEG_CPLT   0x86

◆ USBCSINK4_DEV_RSP_CODE_PORT_BUSY

#define USBCSINK4_DEV_RSP_CODE_PORT_BUSY   0x12

◆ USBCSINK4_DEV_RSP_CODE_PORT_CONN

#define USBCSINK4_DEV_RSP_CODE_PORT_CONN   0x84

◆ USBCSINK4_DEV_RSP_CODE_PORT_DISCONN

#define USBCSINK4_DEV_RSP_CODE_PORT_DISCONN   0x85

◆ USBCSINK4_DEV_RSP_CODE_PS_RDY

#define USBCSINK4_DEV_RSP_CODE_PS_RDY   0x8A

◆ USBCSINK4_DEV_RSP_CODE_REJECT

#define USBCSINK4_DEV_RSP_CODE_REJECT   0x8D

◆ USBCSINK4_DEV_RSP_CODE_RST_CPLT

#define USBCSINK4_DEV_RSP_CODE_RST_CPLT   0x80

◆ USBCSINK4_DEV_RSP_CODE_SINK_CAPB

#define USBCSINK4_DEV_RSP_CODE_SINK_CAPB   0x92

◆ USBCSINK4_DEV_RSP_CODE_SOFT_RST_SENT

#define USBCSINK4_DEV_RSP_CODE_SOFT_RST_SENT   0x9B

◆ USBCSINK4_DEV_RSP_CODE_SRC_CAPB

#define USBCSINK4_DEV_RSP_CODE_SRC_CAPB   0x91

◆ USBCSINK4_DEV_RSP_CODE_SRC_DIS

#define USBCSINK4_DEV_RSP_CODE_SRC_DIS   0x9D

◆ USBCSINK4_DEV_RSP_CODE_SUCCESS

#define USBCSINK4_DEV_RSP_CODE_SUCCESS   0x02

◆ USBCSINK4_DEV_RSP_CODE_SWAP_CPLT

#define USBCSINK4_DEV_RSP_CODE_SWAP_CPLT   0x87

◆ USBCSINK4_DEV_RSP_CODE_TXN_FAILED

#define USBCSINK4_DEV_RSP_CODE_TXN_FAILED   0x0C

◆ USBCSINK4_DEV_RSP_CODE_UNEXPECTED

#define USBCSINK4_DEV_RSP_CODE_UNEXPECTED   0x09

◆ USBCSINK4_DEV_RSP_CODE_VDM_REC

#define USBCSINK4_DEV_RSP_CODE_VDM_REC   0x90

◆ USBCSINK4_DEV_RSP_CODE_WAIT

#define USBCSINK4_DEV_RSP_CODE_WAIT   0x8E

◆ USBCSINK4_DEVICE_ADDRESS

#define USBCSINK4_DEVICE_ADDRESS   0x08

USB-C Sink 4 device address setting.

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

◆ USBCSINK4_INTERRUPT_RESPONSE_DEV

#define USBCSINK4_INTERRUPT_RESPONSE_DEV   0x01

◆ USBCSINK4_INTERRUPT_RESPONSE_NO

#define USBCSINK4_INTERRUPT_RESPONSE_NO   0x00

USB-C Sink 4 active Legacy charging mode.

active Legacy charging mode of USB-C Sink 4 Click driver.

◆ USBCSINK4_INTERRUPT_RESPONSE_PD

#define USBCSINK4_INTERRUPT_RESPONSE_PD   0x02

◆ USBCSINK4_OVP_CONFIG_DBNC_DEFAULT

#define USBCSINK4_OVP_CONFIG_DBNC_DEFAULT   0x0A

◆ USBCSINK4_OVP_CONFIG_SIG_DISABLE

#define USBCSINK4_OVP_CONFIG_SIG_DISABLE   'D'

USB-C Sink 4 OVP configuration data values.

OVP configuration data values of USB-C Sink 4 Click driver.

◆ USBCSINK4_OVP_CONFIG_SIG_RE_ENABLE

#define USBCSINK4_OVP_CONFIG_SIG_RE_ENABLE   'C'

◆ USBCSINK4_OVP_CONFIG_THOLD_DEFAULT

#define USBCSINK4_OVP_CONFIG_THOLD_DEFAULT   0x28

◆ USBCSINK4_RESET_DEVICE

#define USBCSINK4_RESET_DEVICE   0x01

◆ USBCSINK4_RESET_I2C

#define USBCSINK4_RESET_I2C   0x00

◆ USBCSINK4_SIG_RESET

#define USBCSINK4_SIG_RESET   'R'

USB-C Sink 4 reset the device or the I2C block.

reset the device or the I2C block of USB-C Sink 4 Click driver.

◆ USBCSINK4_SILICON_ID_BCR_LITE

#define USBCSINK4_SILICON_ID_BCR_LITE   0x20A2u

USB-C Sink 4 silicon ID value.

Silicon ID value of USB-C Sink 4 Click driver.

◆ USBCSINK4_TYPE_C_ST_ATT_BITMAKS

#define USBCSINK4_TYPE_C_ST_ATT_BITMAKS   0x07

◆ USBCSINK4_TYPE_C_ST_ATT_DEBUG

#define USBCSINK4_TYPE_C_ST_ATT_DEBUG   0x03

◆ USBCSINK4_TYPE_C_ST_ATT_NTH

#define USBCSINK4_TYPE_C_ST_ATT_NTH   0x00

◆ USBCSINK4_TYPE_C_ST_ATT_SRC

#define USBCSINK4_TYPE_C_ST_ATT_SRC   0x02

◆ USBCSINK4_TYPE_C_ST_CC_1

#define USBCSINK4_TYPE_C_ST_CC_1   0x00

◆ USBCSINK4_TYPE_C_ST_CC_2

#define USBCSINK4_TYPE_C_ST_CC_2   0x01

◆ USBCSINK4_TYPE_C_ST_CC_BITMAKS

#define USBCSINK4_TYPE_C_ST_CC_BITMAKS   0x01

◆ USBCSINK4_TYPE_C_ST_CURR_0_9A

#define USBCSINK4_TYPE_C_ST_CURR_0_9A   0x00

◆ USBCSINK4_TYPE_C_ST_CURR_1A

#define USBCSINK4_TYPE_C_ST_CURR_1A   0x01

◆ USBCSINK4_TYPE_C_ST_CURR_3A

#define USBCSINK4_TYPE_C_ST_CURR_3A   0x02

◆ USBCSINK4_TYPE_C_ST_CURR_BITMAKS

#define USBCSINK4_TYPE_C_ST_CURR_BITMAKS   0x03

◆ USBCSINK4_TYPE_C_ST_PORT_BITMAKS

#define USBCSINK4_TYPE_C_ST_PORT_BITMAKS   0x01

◆ USBCSINK4_TYPE_C_ST_PORT_CONN

#define USBCSINK4_TYPE_C_ST_PORT_CONN   0x01

◆ USBCSINK4_TYPE_C_ST_PORT_DISCONN

#define USBCSINK4_TYPE_C_ST_PORT_DISCONN   0x00

USB-C Sink 4 description setting.

Specified setting for description of USB-C Sink 4 Click driver.

◆ USBCSINK4_VOLTAGE_SENS

#define USBCSINK4_VOLTAGE_SENS   0.1f

USB-C Sink 4 voltage and current sensitivity setting.

Specified setting for description of USB-C Sink 4 Click driver.