PDStack Middleware Library
cy_stc_pdstack_dpm_pd_cmd_buf_t Struct Reference

Description

Struct to hold PD command buffer.

Warning
When providing a pointer to the extended data, ensure the original buffer is always 4-byte aligned, i.e, even if 1-byte data is required, 4 bytes should be used to store that data.

Data Fields

cy_en_pd_sop_t cmdSop
 SOP typ. More...
 
cy_en_pdstack_extd_msg_t extdType
 Extended message type. More...
 
cy_pdstack_extd_hdr_t extdHdr
 Extended header. More...
 
uint8_t noOfCmdDo
 No of data objects including VDM header. More...
 
uint8_t * datPtr
 Data pointer in case of the extended message only. More...
 
uint8_t timeout
 Timeout value in ms for a response. More...
 
cy_pd_pd_do_t cmdDo [CY_PD_MAX_NO_OF_DO]
 Command data objects. More...
 

Field Documentation

◆ cmdSop

cy_en_pd_sop_t cy_stc_pdstack_dpm_pd_cmd_buf_t::cmdSop

SOP typ.

◆ extdType

cy_en_pdstack_extd_msg_t cy_stc_pdstack_dpm_pd_cmd_buf_t::extdType

Extended message type.

◆ extdHdr

cy_pdstack_extd_hdr_t cy_stc_pdstack_dpm_pd_cmd_buf_t::extdHdr

Extended header.

◆ noOfCmdDo

uint8_t cy_stc_pdstack_dpm_pd_cmd_buf_t::noOfCmdDo

No of data objects including VDM header.

◆ datPtr

uint8_t* cy_stc_pdstack_dpm_pd_cmd_buf_t::datPtr

Data pointer in case of the extended message only.

◆ timeout

uint8_t cy_stc_pdstack_dpm_pd_cmd_buf_t::timeout

Timeout value in ms for a response.

If set to zero, the PD stack will not wait for a VDM response and jumps to the ready state after this buffer has been sent.

◆ cmdDo

cy_pd_pd_do_t cy_stc_pdstack_dpm_pd_cmd_buf_t::cmdDo[CY_PD_MAX_NO_OF_DO]

Command data objects.