usbcsource 2.0.0.0
USB-C Source Registers Settings

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

Macros

#define USBCSOURCE_SEL_PDO1   0x01
 USB-C Source description setting.
 
#define USBCSOURCE_SEL_PDO2   0x02
 
#define USBCSOURCE_SEL_PDO3   0x03
 
#define USBCSOURCE_SEL_PDO4   0x04
 
#define USBCSOURCE_SEL_PDO5   0x05
 
#define USBCSOURCE_PDO_NVM_VOLT_CFG_9_V   0x00
 USB-C PDO NVM voltage configuration.
 
#define USBCSOURCE_PDO_NVM_VOLT_CFG_15_V   0x01
 
#define USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V1   0x02
 
#define USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V2   0x03
 
#define USBCSOURCE_PDO_NVM_CUR_FLEX_I   0x00
 USB-C PDO NVM current configuration.
 
#define USBCSOURCE_PDO_NVM_CUR_1_50_A   0x01
 
#define USBCSOURCE_PDO_NVM_CUR_1_75_A   0x02
 
#define USBCSOURCE_PDO_NVM_CUR_2_00_A   0x03
 
#define USBCSOURCE_PDO_NVM_CUR_2_25_A   0x04
 
#define USBCSOURCE_PDO_NVM_CUR_2_50_A   0x05
 
#define USBCSOURCE_PDO_NVM_CUR_2_75_A   0x06
 
#define USBCSOURCE_PDO_NVM_CUR_3_00_A   0x07
 
#define USBCSOURCE_PDO_NVM_CUR_3_25_A   0x08
 
#define USBCSOURCE_PDO_NVM_CUR_3_50_A   0x09
 
#define USBCSOURCE_PDO_NVM_CUR_3_75_A   0x0A
 
#define USBCSOURCE_PDO_NVM_CUR_4_00_A   0x0B
 
#define USBCSOURCE_PDO_NVM_CUR_4_25_A   0x0C
 
#define USBCSOURCE_PDO_NVM_CUR_4_50_A   0x0D
 
#define USBCSOURCE_PDO_NVM_CUR_4_75_A   0x0E
 
#define USBCSOURCE_PDO_NVM_CUR_5_00_A   0x0F
 
#define USBCSOURCE_RESET_DIS   0x00
 USB-C software reset.
 
#define USBCSOURCE_RESET_EN   0x01
 
#define USBCSOURCE_ALERT_STAT_HARD_RESET_AL   0x80
 USB-C alert state.
 
#define USBCSOURCE_ALERT_STAT_PORT_STAT_AL   0x40
 
#define USBCSOURCE_ALERT_STAT_TYPEC_MON_AL   0x20
 
#define USBCSOURCE_ALERT_STAT_CC_HW_FAULT_AL   0x10
 
#define USBCSOURCE_ALERT_STAT_DPM_STAT_AL   0x08
 
#define USBCSOURCE_ALERT_STAT_PE_STAT_AL   0x04
 
#define USBCSOURCE_ALERT_STAT_PRT_STAT_AL   0x02
 
#define USBCSOURCE_ALERT_STAT_PHY_STAT_AL   0x01
 
#define USBCSOURCE_ATTACHED_DEVICE_NONE_ATT   0x00
 USB-C attached device.
 
#define USBCSOURCE_ATTACHED_DEVICE_SNK_ATT   0x01
 
#define USBCSOURCE_ATTACHED_DEVICE_SRC_ATT   0x02
 
#define USBCSOURCE_ATTACHED_DEVICE_DBG_ATT   0x03
 
#define USBCSOURCE_ATTACHED_DEVICE_AUD_ATT   0x04
 
#define USBCSOURCE_ATTACHED_DEVICE_POW_ACC_ATT   0x05
 
#define USBCSOURCE_LOW_POWER_STANDBY_OFF   0x00
 USB-C low power standby.
 
#define USBCSOURCE_LOW_POWER_STANDBY_ON   0x01
 
#define USBCSOURCE_POWER_MODE_SNK   0x00
 USB-C power mode.
 
#define USBCSOURCE_POWER_MODE_SRC   0x01
 
#define USBCSOURCE_DATA_MODE_UFP   0x00
 USB-C data mode.
 
#define USBCSOURCE_DATA_MODE_DFP   0x01
 
#define USBCSOURCE_CONN_UNATTACHED   0x00
 USB-C connection attach.
 
#define USBCSOURCE_CONN_ATTACHED   0x01
 
#define USBCSOURCE_VBUS_READY_DISCONNECTED   0x00
 USB-C VBUS settings.
 
#define USBCSOURCE_VBUS_READY_CONNECTED   0x01
 
#define USBCSOURCE_VBUS_VSAFE0V_0_8V_HIGHER   0x00
 
#define USBCSOURCE_VBUS_VSAFE0V_0_8V_LOWER   0x01
 
#define USBCSOURCE_VBUS_VALID_3_9V_LOWER   0x00
 
#define USBCSOURCE_VBUS_VALID_3_9V_HIGHER   0x01
 
#define USBCSOURCE_STATUS_ERROR   0x00
 USB-C status.
 
#define USBCSOURCE_STATUS_SUCCESS   0x01
 
#define USBCSOURCE_I2C_SLAVE_ADR_GND   0x28
 USB-C Source device address setting.
 
#define USBCSOURCE_I2C_SLAVE_ADR_VCC   0x29
 

Detailed Description

Settings for registers of USB-C Source Click driver.

Macro Definition Documentation

◆ USBCSOURCE_ALERT_STAT_CC_HW_FAULT_AL

#define USBCSOURCE_ALERT_STAT_CC_HW_FAULT_AL   0x10

◆ USBCSOURCE_ALERT_STAT_DPM_STAT_AL

#define USBCSOURCE_ALERT_STAT_DPM_STAT_AL   0x08

◆ USBCSOURCE_ALERT_STAT_HARD_RESET_AL

#define USBCSOURCE_ALERT_STAT_HARD_RESET_AL   0x80

USB-C alert state.

Specified alert state setting of USB-C Source Click driver.

◆ USBCSOURCE_ALERT_STAT_PE_STAT_AL

#define USBCSOURCE_ALERT_STAT_PE_STAT_AL   0x04

◆ USBCSOURCE_ALERT_STAT_PHY_STAT_AL

#define USBCSOURCE_ALERT_STAT_PHY_STAT_AL   0x01

◆ USBCSOURCE_ALERT_STAT_PORT_STAT_AL

#define USBCSOURCE_ALERT_STAT_PORT_STAT_AL   0x40

◆ USBCSOURCE_ALERT_STAT_PRT_STAT_AL

#define USBCSOURCE_ALERT_STAT_PRT_STAT_AL   0x02

◆ USBCSOURCE_ALERT_STAT_TYPEC_MON_AL

#define USBCSOURCE_ALERT_STAT_TYPEC_MON_AL   0x20

◆ USBCSOURCE_ATTACHED_DEVICE_AUD_ATT

#define USBCSOURCE_ATTACHED_DEVICE_AUD_ATT   0x04

◆ USBCSOURCE_ATTACHED_DEVICE_DBG_ATT

#define USBCSOURCE_ATTACHED_DEVICE_DBG_ATT   0x03

◆ USBCSOURCE_ATTACHED_DEVICE_NONE_ATT

#define USBCSOURCE_ATTACHED_DEVICE_NONE_ATT   0x00

USB-C attached device.

Specified attached device setting of USB-C Source Click driver.

◆ USBCSOURCE_ATTACHED_DEVICE_POW_ACC_ATT

#define USBCSOURCE_ATTACHED_DEVICE_POW_ACC_ATT   0x05

◆ USBCSOURCE_ATTACHED_DEVICE_SNK_ATT

#define USBCSOURCE_ATTACHED_DEVICE_SNK_ATT   0x01

◆ USBCSOURCE_ATTACHED_DEVICE_SRC_ATT

#define USBCSOURCE_ATTACHED_DEVICE_SRC_ATT   0x02

◆ USBCSOURCE_CONN_ATTACHED

#define USBCSOURCE_CONN_ATTACHED   0x01

◆ USBCSOURCE_CONN_UNATTACHED

#define USBCSOURCE_CONN_UNATTACHED   0x00

USB-C connection attach.

Specified connection attach setting of USB-C Source Click driver.

◆ USBCSOURCE_DATA_MODE_DFP

#define USBCSOURCE_DATA_MODE_DFP   0x01

◆ USBCSOURCE_DATA_MODE_UFP

#define USBCSOURCE_DATA_MODE_UFP   0x00

USB-C data mode.

Specified data mode setting of USB-C Source Click driver.

◆ USBCSOURCE_I2C_SLAVE_ADR_GND

#define USBCSOURCE_I2C_SLAVE_ADR_GND   0x28

USB-C Source device address setting.

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

◆ USBCSOURCE_I2C_SLAVE_ADR_VCC

#define USBCSOURCE_I2C_SLAVE_ADR_VCC   0x29

◆ USBCSOURCE_LOW_POWER_STANDBY_OFF

#define USBCSOURCE_LOW_POWER_STANDBY_OFF   0x00

USB-C low power standby.

Specified low power standby setting of USB-C Source Click driver.

◆ USBCSOURCE_LOW_POWER_STANDBY_ON

#define USBCSOURCE_LOW_POWER_STANDBY_ON   0x01

◆ USBCSOURCE_PDO_NVM_CUR_1_50_A

#define USBCSOURCE_PDO_NVM_CUR_1_50_A   0x01

◆ USBCSOURCE_PDO_NVM_CUR_1_75_A

#define USBCSOURCE_PDO_NVM_CUR_1_75_A   0x02

◆ USBCSOURCE_PDO_NVM_CUR_2_00_A

#define USBCSOURCE_PDO_NVM_CUR_2_00_A   0x03

◆ USBCSOURCE_PDO_NVM_CUR_2_25_A

#define USBCSOURCE_PDO_NVM_CUR_2_25_A   0x04

◆ USBCSOURCE_PDO_NVM_CUR_2_50_A

#define USBCSOURCE_PDO_NVM_CUR_2_50_A   0x05

◆ USBCSOURCE_PDO_NVM_CUR_2_75_A

#define USBCSOURCE_PDO_NVM_CUR_2_75_A   0x06

◆ USBCSOURCE_PDO_NVM_CUR_3_00_A

#define USBCSOURCE_PDO_NVM_CUR_3_00_A   0x07

◆ USBCSOURCE_PDO_NVM_CUR_3_25_A

#define USBCSOURCE_PDO_NVM_CUR_3_25_A   0x08

◆ USBCSOURCE_PDO_NVM_CUR_3_50_A

#define USBCSOURCE_PDO_NVM_CUR_3_50_A   0x09

◆ USBCSOURCE_PDO_NVM_CUR_3_75_A

#define USBCSOURCE_PDO_NVM_CUR_3_75_A   0x0A

◆ USBCSOURCE_PDO_NVM_CUR_4_00_A

#define USBCSOURCE_PDO_NVM_CUR_4_00_A   0x0B

◆ USBCSOURCE_PDO_NVM_CUR_4_25_A

#define USBCSOURCE_PDO_NVM_CUR_4_25_A   0x0C

◆ USBCSOURCE_PDO_NVM_CUR_4_50_A

#define USBCSOURCE_PDO_NVM_CUR_4_50_A   0x0D

◆ USBCSOURCE_PDO_NVM_CUR_4_75_A

#define USBCSOURCE_PDO_NVM_CUR_4_75_A   0x0E

◆ USBCSOURCE_PDO_NVM_CUR_5_00_A

#define USBCSOURCE_PDO_NVM_CUR_5_00_A   0x0F

◆ USBCSOURCE_PDO_NVM_CUR_FLEX_I

#define USBCSOURCE_PDO_NVM_CUR_FLEX_I   0x00

USB-C PDO NVM current configuration.

Specified PDO NVM current configuration setting of USB-C Source Click driver.

◆ USBCSOURCE_PDO_NVM_VOLT_CFG_15_V

#define USBCSOURCE_PDO_NVM_VOLT_CFG_15_V   0x01

◆ USBCSOURCE_PDO_NVM_VOLT_CFG_9_V

#define USBCSOURCE_PDO_NVM_VOLT_CFG_9_V   0x00

USB-C PDO NVM voltage configuration.

Specified PDO NVM voltage configuration setting of USB-C Source Click driver.

◆ USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V1

#define USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V1   0x02

◆ USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V2

#define USBCSOURCE_PDO_NVM_VOLT_CFG_FLEX_V2   0x03

◆ USBCSOURCE_POWER_MODE_SNK

#define USBCSOURCE_POWER_MODE_SNK   0x00

USB-C power mode.

Specified power mode setting of USB-C Source Click driver.

◆ USBCSOURCE_POWER_MODE_SRC

#define USBCSOURCE_POWER_MODE_SRC   0x01

◆ USBCSOURCE_RESET_DIS

#define USBCSOURCE_RESET_DIS   0x00

USB-C software reset.

Specified software reset setting of USB-C Source Click driver.

◆ USBCSOURCE_RESET_EN

#define USBCSOURCE_RESET_EN   0x01

◆ USBCSOURCE_SEL_PDO1

#define USBCSOURCE_SEL_PDO1   0x01

USB-C Source description setting.

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

USB-C PDO select setting.

Specified PDO select setting of USB-C Source Click driver.

◆ USBCSOURCE_SEL_PDO2

#define USBCSOURCE_SEL_PDO2   0x02

◆ USBCSOURCE_SEL_PDO3

#define USBCSOURCE_SEL_PDO3   0x03

◆ USBCSOURCE_SEL_PDO4

#define USBCSOURCE_SEL_PDO4   0x04

◆ USBCSOURCE_SEL_PDO5

#define USBCSOURCE_SEL_PDO5   0x05

◆ USBCSOURCE_STATUS_ERROR

#define USBCSOURCE_STATUS_ERROR   0x00

USB-C status.

Specified status setting of USB-C Source Click driver.

◆ USBCSOURCE_STATUS_SUCCESS

#define USBCSOURCE_STATUS_SUCCESS   0x01

◆ USBCSOURCE_VBUS_READY_CONNECTED

#define USBCSOURCE_VBUS_READY_CONNECTED   0x01

◆ USBCSOURCE_VBUS_READY_DISCONNECTED

#define USBCSOURCE_VBUS_READY_DISCONNECTED   0x00

USB-C VBUS settings.

Specified VBUS setting of USB-C Source Click driver.

◆ USBCSOURCE_VBUS_VALID_3_9V_HIGHER

#define USBCSOURCE_VBUS_VALID_3_9V_HIGHER   0x01

◆ USBCSOURCE_VBUS_VALID_3_9V_LOWER

#define USBCSOURCE_VBUS_VALID_3_9V_LOWER   0x00

◆ USBCSOURCE_VBUS_VSAFE0V_0_8V_HIGHER

#define USBCSOURCE_VBUS_VSAFE0V_0_8V_HIGHER   0x00

◆ USBCSOURCE_VBUS_VSAFE0V_0_8V_LOWER

#define USBCSOURCE_VBUS_VSAFE0V_0_8V_LOWER   0x01