Structure to hold PDStack middleware configuration information.
Data Fields | |
uint32_t | signature |
Structure signature - 'PDSC'. | |
uint16_t | version |
Configuration parameter version. More... | |
uint8_t | mfgLenInfo |
Length of manufacturer information. More... | |
uint8_t | reserved0 |
Reserved byte for alignment. More... | |
uint16_t | mfgVid |
Manufacturer vendor ID. More... | |
uint16_t | mfgPid |
Manufacturer product ID. More... | |
const uint8_t * | mfgName |
Manufacturer name. More... | |
uint8_t | scedbEn |
Extended source capability message support: 1 - Enable support 0 - Disable support. | |
uint8_t | skedbEn |
Extended sink capability message support: 1 - Enable support 0 - Disable support. | |
const uint8_t * | extSrcCap |
Pointer to the extended source capability message byte array. More... | |
uint8_t | extSrcCapSize |
Size of extended source capability message in bytes. More... | |
uint8_t | extSrcCapResvd [3] |
Reserved for alignment. More... | |
const uint8_t * | extSnkCap |
Pointer to the extended sink capability message byte array. More... | |
uint8_t | extSnkCapSize |
Size of extended sink capability message in bytes. More... | |
uint8_t | extSnkCapResvd [3] |
Reserved for alignment. More... | |
uint8_t | portRole |
PD port role: 0 - Sink 1 - Source 2 - Dual-role. | |
uint8_t | defPortRole |
Default port role in case of dual role ports: 0 - Sink 1 - Source. | |
uint8_t | curLevel |
Type-C current level (Rp value) used as a source: 0 - 900 mA 1 - 1.5 A 2 - 3 A. | |
uint8_t | cableDiscCount |
Number of cable discovery attempts to be made. More... | |
uint8_t | srcPdoFlags [2] |
B29:B20 of the first 5 V fixed source PDO. More... | |
uint8_t | snkPdoFlags [2] |
B29:B20 of the first 5 V fixed sink PDO. More... | |
uint8_t | drpToggleEn |
Whether the Rp-Rd toggle is enabled in the unattached state. More... | |
uint8_t | rpSupported |
Bitmask that specifies supported Rp values: Bit 0 - 900 mA Rp Bit 1 - 1.5 A Rp Bit 2 - 3 A Rp. | |
uint8_t | pdOpEn |
Whether USB PD operation is supported on the port: 1 - Enable PD operation 0 - Disable PD operation. | |
uint8_t | prefPwrRole |
Whether Try.Src or Try.Sink is enabled for the port: 0 - No Try.Src or Try.Sink supported 1 - Try.Src supported 2 - Try.Sink supported. | |
uint8_t | portDis |
Whether the PD port is to be disabled at start-up. More... | |
uint8_t | cableDiscEn |
Whether cable discovery is enabled as part of the source state machine. More... | |
uint8_t | deadBatSupp |
Whether dead battery operation is supported: 1 - Dead battery operation is supported 0 - Dead battery operation is not supported. | |
uint8_t | errorRecoveryEn |
Whether Type-C error recovery is enabled: 1 - Enable error recovery 0 - Disable error recovery. | |
uint8_t | accessoryEn |
Whether to enable/disable accessory mode: 1 - Enable accessory mode 0 - Disable accessory mode. | |
uint8_t | rpDetachEn |
Whether to enable/disable the disconnect detect mechanism using Rp in the sink role: 1 - Enable disconnect detect using Rp in sink role 0 - Disable disconnect detect using Rp in sink role. | |
uint8_t | vconnRetain |
Whether Vconn supply should be left enabled even if the EMCA's cable VDO indicates that Vconn is not required. More... | |
uint8_t | frsConfig |
Fast role swap feature enabled flags: Bit 0 - FRS receive enable Bit 1 - FRS transmit enable. | |
uint8_t | srcPdoCount |
Number of source PDOs supported (max. More... | |
uint8_t | defSrcPdoMask |
Bitmask that enables specified entries in the Src. More... | |
uint8_t | snkPdoCount |
Number of sink PDOs supported (max. More... | |
uint8_t | defSnkPdoMask |
Bitmask that enables specified entries in the sink PDO list. More... | |
uint32_t | srcPdo [7] |
Source PDO list. More... | |
uint32_t | snkPdo [7] |
Sink PDO list. More... | |
uint16_t | snkPdoMinMaxCur [7] |
Sink PDO Min/Max current list. More... | |
uint16_t | reserved2 |
Reserved for future use. More... | |
uint32_t | pdRevision |
Get_Revision message response. More... | |
uint32_t | srcInfo |
Get_Source_Info message response. More... | |
uint8_t | eprSrcPdoCount |
Number of EPR source PDOs supported. More... | |
uint8_t | eprSrcPdoMask |
Bit-mask enabling each EPR source PDO. More... | |
uint8_t | eprSnkPdoCount |
Number of EPR sink PDOs supported. More... | |
uint8_t | eprSnkPdoMask |
Bit-mask enabling each EPR sink PDO. More... | |
uint32_t | eprSrcPdo [6] |
EPR source PDO list. More... | |
uint32_t | eprSnkPdo [6] |
EPR sink PDO list. More... | |
uint16_t cy_stc_pdstack_port_cfg_t::version |
Configuration parameter version.
Consists of 8-bit major (bits 15:8) and 8-bit minor (bits 7:0) version.
uint8_t cy_stc_pdstack_port_cfg_t::mfgLenInfo |
Length of manufacturer information.
0 - For no information. 5 to 26: For valid information.
uint8_t cy_stc_pdstack_port_cfg_t::reserved0 |
Reserved byte for alignment.
uint16_t cy_stc_pdstack_port_cfg_t::mfgVid |
Manufacturer vendor ID.
Range 0x0000 - 0xFFFF.
uint16_t cy_stc_pdstack_port_cfg_t::mfgPid |
Manufacturer product ID.
Range 0x0000 - 0xFFFF.
const uint8_t* cy_stc_pdstack_port_cfg_t::mfgName |
Manufacturer name.
Null terminated string.
const uint8_t* cy_stc_pdstack_port_cfg_t::extSrcCap |
Pointer to the extended source capability message byte array.
uint8_t cy_stc_pdstack_port_cfg_t::extSrcCapSize |
Size of extended source capability message in bytes.
uint8_t cy_stc_pdstack_port_cfg_t::extSrcCapResvd[3] |
Reserved for alignment.
const uint8_t* cy_stc_pdstack_port_cfg_t::extSnkCap |
Pointer to the extended sink capability message byte array.
uint8_t cy_stc_pdstack_port_cfg_t::extSnkCapSize |
Size of extended sink capability message in bytes.
uint8_t cy_stc_pdstack_port_cfg_t::extSnkCapResvd[3] |
Reserved for alignment.
uint8_t cy_stc_pdstack_port_cfg_t::cableDiscCount |
Number of cable discovery attempts to be made.
Range: 0x00 - 0x14
uint8_t cy_stc_pdstack_port_cfg_t::srcPdoFlags[2] |
B29:B20 of the first 5 V fixed source PDO.
uint8_t cy_stc_pdstack_port_cfg_t::snkPdoFlags[2] |
B29:B20 of the first 5 V fixed sink PDO.
uint8_t cy_stc_pdstack_port_cfg_t::drpToggleEn |
Whether the Rp-Rd toggle is enabled in the unattached state.
uint8_t cy_stc_pdstack_port_cfg_t::portDis |
Whether the PD port is to be disabled at start-up.
uint8_t cy_stc_pdstack_port_cfg_t::cableDiscEn |
Whether cable discovery is enabled as part of the source state machine.
1 - Enable cable discovery 0 - Disable cable discovery
uint8_t cy_stc_pdstack_port_cfg_t::vconnRetain |
Whether Vconn supply should be left enabled even if the EMCA's cable VDO indicates that Vconn is not required.
uint8_t cy_stc_pdstack_port_cfg_t::srcPdoCount |
Number of source PDOs supported (max.
value is 7)
uint8_t cy_stc_pdstack_port_cfg_t::defSrcPdoMask |
Bitmask that enables specified entries in the Src.
PDO list.
uint8_t cy_stc_pdstack_port_cfg_t::snkPdoCount |
Number of sink PDOs supported (max.
value is 7)
uint8_t cy_stc_pdstack_port_cfg_t::defSnkPdoMask |
Bitmask that enables specified entries in the sink PDO list.
uint32_t cy_stc_pdstack_port_cfg_t::srcPdo[7] |
Source PDO list.
uint32_t cy_stc_pdstack_port_cfg_t::snkPdo[7] |
Sink PDO list.
uint16_t cy_stc_pdstack_port_cfg_t::snkPdoMinMaxCur[7] |
Sink PDO Min/Max current list.
uint16_t cy_stc_pdstack_port_cfg_t::reserved2 |
Reserved for future use.
uint32_t cy_stc_pdstack_port_cfg_t::pdRevision |
Get_Revision message response.
uint32_t cy_stc_pdstack_port_cfg_t::srcInfo |
Get_Source_Info message response.
uint8_t cy_stc_pdstack_port_cfg_t::eprSrcPdoCount |
Number of EPR source PDOs supported.
Non-zero value enables EPR source operation. Range: 0 - 6
uint8_t cy_stc_pdstack_port_cfg_t::eprSrcPdoMask |
Bit-mask enabling each EPR source PDO.
uint8_t cy_stc_pdstack_port_cfg_t::eprSnkPdoCount |
Number of EPR sink PDOs supported.
Non-zero value enables EPR sink operation. Range: 0 - 6
uint8_t cy_stc_pdstack_port_cfg_t::eprSnkPdoMask |
Bit-mask enabling each EPR sink PDO.
uint32_t cy_stc_pdstack_port_cfg_t::eprSrcPdo[6] |
EPR source PDO list.
uint32_t cy_stc_pdstack_port_cfg_t::eprSnkPdo[6] |
EPR sink PDO list.