class MessageId
Defined at line 33 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
Type-safe wrapper for USB message ID manipulation.
For best readability, use the fully-qualified name `usb_pd::MessageId`.
usbpd3.1 6.2.1.1.3 "Message ID"
Public Methods
void MessageId ()
Default-initialized Message IDs start at zero.
Defined at line 36 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
void MessageId (uint8_t bits)
Support explicit casting from uint8_t.
Defined at line 39 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
void MessageId (const MessageId & )
Value type, copying allowed.
Defined at line 42 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
MessageId & operator= (const MessageId & )
Defined at line 43 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
void ~MessageId ()
Trivially destructible.
Defined at line 46 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
uint8_t operator unsigned char ()
Support explicit casting to uint8_t.
Defined at line 49 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
bool operator== (const MessageId & other)
In C++20, equality comparison can be defaulted.
Defined at line 52 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
bool operator!= (const MessageId & other)
Defined at line 53 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
MessageId Next ()
Defined at line 55 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h
void Reset ()
Defined at line 60 of file ../../src/devices/power/drivers/fusb302/usb-pd-message.h