|
ESPHome 2026.11.0-dev
|
A contract packed into one word so it can be shared between tasks as an atomic. More...
#include <pd.h>
Public Member Functions | |
| bool | is_set () const |
| float | voltage () const |
| float | current () const |
Static Public Member Functions | |
| static PackedContract | from (const PdContract &contract) |
Data Fields | |
| uint32_t | value {0} |
A contract packed into one word so it can be shared between tasks as an atomic.
0 means there is no contract (nothing attached).
|
inline |
|
inlinestatic |
|
inline |