/* Run-time specific power supply configuration */structpower_supply_config{structdevice_node*of_node;structfwnode_handle*fwnode;/* Driver private data */void*drv_data;char**supplied_to;size_t num_supplicants;};/* Description of power supply */structpower_supply_desc{constchar*name;enumpower_...
用于获取属性值。enumpower_supply_propertypsp,unionpower_supply_propval*val);int(*set_property)(structpower_supply*psy,//PSY driver需要实现的回调函数,用于设置属性值。enumpower_supply_propertypsp,constunionpower_supply_propval*val);int(*property_is_writeable)(structpower_supply*psy,//返回指定的属性...
POWER_SUPPLY_PROP_STATUS = 0, //该PSY的status,主要是充电状态,包括:unknown,charging,discharging,not charging full, POWER_SUPPLY_PROP_CHARGE_TYPE,//充电类型 POWER_SUPPLY_PROP_HEALTH, //健康状况,包括:good dead over voltage等 POWER_SUPPLY_PROP_PRESENT, //电量百分比 POWER_SUPPLY_PROP_ONLINE, //...
power supply class将所有可能PSY属性,以枚举型变量(enum power_supply_property )的形式抽象出来,PSY driver可以根据设备的实际情况,从中选取一些。 enumpower_supply_property {/*Properties of type `int'*/POWER_SUPPLY_PROP_STATUS=0, POWER_SUPPLY_PROP_CHARGE_TYPE, POWER_SUPPLY_PROP_HEALTH, POWER_SUPPLY_...
val->intval = charge->usb_in;break;casePOWER_SUPPLY_PROP_STATUS: val->intval = charge->prop_status;break;casePOWER_SUPPLY_PROP_VOLTAGE_MAX: val->intval = charge->max_chrg_voltage;break;casePOWER_SUPPLY_PROP_CURRENT_MAX: val->intval = charge->max_chrg_current;break;default: ...
Home Gym Pull Up Bar Using Resistance Power Band Trainer, You can get more details about Home Gym Pull Up Bar Using Resistance Power Band Trainer from mobile site on Alibaba.com
20: const union power_supply_propval *val); 21: int (*property_is_writeable)(struct power_supply *psy, 22: enum power_supply_property psp); 23: void (*external_power_changed)(struct power_supply *psy); 24: void (*set_charged)(struct power_supply *psy); ...
union power_supply_propval *val); int (*set_property)(struct power_supply *psy,//用于设置psy属性的回调函数 enum power_supply_property psp, const union power_supply_propval *val); /* * property_is_writeable() will be called during registration ...
power supply class将所有可能PSY属性,以枚举型变量形式抽象出来,PSY driver可以根据设备的实际情况,从中选取一些。 代码语言:javascript 复制 enumpower_supply_property{/* Properties of type `int' */POWER_SUPPLY_PROP_STATUS=0,//该PSY的status,主要是充电状态,包括:unknown,charging,discharging,not charging fu...
How do i get the status of running COM+ application of remote servers using powershell How do I get to use the ADFS powershell cmdlets in server 2012 R2 How do I get video file duration in powershell script How do I give PowerShell access to folders? How do I handle ParameterBinding ...