PDStack Middleware Library 2.0
cy_stc_pdstack_pd_packet_t Struct Reference


Struct to hold a PD packet.

Data Fields

cy_en_pd_sop_t sop
 Packet type. More...
uint8_t len
 Length in data objects. More...
uint8_t msg
 Message code. More...
cy_en_pd_port_role_t dataRole
 Data role. More...
cy_pd_pd_hdr_t hdr
 Message header. More...
cy_pd_pd_do_t dat [CY_PD_MAX_NO_OF_DO]
 Data objects associated with the message. More...

Field Documentation

◆ sop

cy_en_pd_sop_t cy_stc_pdstack_pd_packet_t::sop

Packet type.

◆ len

uint8_t cy_stc_pdstack_pd_packet_t::len

Length in data objects.

◆ msg

uint8_t cy_stc_pdstack_pd_packet_t::msg

Message code.

◆ dataRole

cy_en_pd_port_role_t cy_stc_pdstack_pd_packet_t::dataRole

Data role.

◆ hdr

cy_pd_pd_hdr_t cy_stc_pdstack_pd_packet_t::hdr

Message header.

◆ dat

cy_pd_pd_do_t cy_stc_pdstack_pd_packet_t::dat[CY_PD_MAX_NO_OF_DO]

Data objects associated with the message.