Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Create a Battery Supply PDO Source value See Table 6-12 Battery Supply PDO - Source. More...
#include <usbc_pd.h>
Data Fields | ||
struct { | ||
uint32_t max_power: 10 | ||
Maximum Allowable Power in 250mW units. More... | ||
uint32_t min_voltage: 10 | ||
Minimum Voltage in 50mV units. More... | ||
uint32_t max_voltage: 10 | ||
Maximum Voltage in 50mV units. More... | ||
enum pdo_type type: 2 | ||
Battery supply. More... | ||
}; | ||
uint32_t | raw_value | |
Raw PDO value. | ||
Create a Battery Supply PDO Source value See Table 6-12 Battery Supply PDO - Source.
struct { ... } pd_battery_supply_pdo_source |
uint32_t pd_battery_supply_pdo_source::max_power |
Maximum Allowable Power in 250mW units.
uint32_t pd_battery_supply_pdo_source::max_voltage |
Maximum Voltage in 50mV units.
uint32_t pd_battery_supply_pdo_source::min_voltage |
Minimum Voltage in 50mV units.
uint32_t pd_battery_supply_pdo_source::raw_value |
Raw PDO value.
enum pdo_type pd_battery_supply_pdo_source::type |
Battery supply.
SET TO PDO_BATTERY