ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::fusb302b::PdMsg Struct Reference

#include <pd.h>

Public Member Functions

void set_header (uint16_t header)
 
uint16_t get_coded_header () const
 

Data Fields

uint8_t type {0}
 
PdSpecRevision spec_rev {PD_SPEC_REV_2}
 
uint8_t id {0}
 
uint8_t num_of_obj {0}
 
bool extended {false}
 
uint32_t data_objects [PD_MAX_NUM_DATA_OBJECTS] {}
 

Detailed Description

Definition at line 91 of file pd.h.

Member Function Documentation

◆ get_coded_header()

uint16_t esphome::fusb302b::PdMsg::get_coded_header ( ) const

Definition at line 48 of file pd.cpp.

◆ set_header()

void esphome::fusb302b::PdMsg::set_header ( uint16_t header)

Definition at line 40 of file pd.cpp.

Field Documentation

◆ data_objects

uint32_t esphome::fusb302b::PdMsg::data_objects[PD_MAX_NUM_DATA_OBJECTS] {}

Definition at line 97 of file pd.h.

◆ extended

bool esphome::fusb302b::PdMsg::extended {false}

Definition at line 96 of file pd.h.

◆ id

uint8_t esphome::fusb302b::PdMsg::id {0}

Definition at line 94 of file pd.h.

◆ num_of_obj

uint8_t esphome::fusb302b::PdMsg::num_of_obj {0}

Definition at line 95 of file pd.h.

◆ spec_rev

PdSpecRevision esphome::fusb302b::PdMsg::spec_rev {PD_SPEC_REV_2}

Definition at line 93 of file pd.h.

◆ type

uint8_t esphome::fusb302b::PdMsg::type {0}

Definition at line 92 of file pd.h.


The documentation for this struct was generated from the following files: