* example power_supply_get_property()). */ int (*get_property)(struct power_supply *psy,//用于获取psy属性的回调函数 enum power_supply_property psp, union power_supply_propval *val); int (*set_property)(struct power_supply *psy,//用于设置psy属性的回调函数 enum power_supply_property psp,...
psy相关的定义在/include/linux/power_supply.h。 psy_desc是psy子系统中最重要的结构体,该描述符定义了psy的属性property,以及相关的set/get/is_writeable接口,is_writeable即文件节点的“w”权限,所有节点默认是可读的。从get函数可以看到调用该函数需要指定某个psy和psp(属性),结果保存在val中,值得一提的是,val...
psy相关的定义在/include/linux/power_supply.h。 psy_desc是psy子系统中最重要的结构体,该描述符定义了psy的属性property,以及相关的set/get/is_writeable接口,is_writeable即文件节点的“w”权限,所有节点默认是可读的。从get函数可以看到调用该函数需要指定某个psy和psp(属性),结果保存在val中,值得一提的是,val...
/* 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_...
struct power_supply表示一个psy供电设备,比如电池、AC、USB,一般可通过devm_power_supply_register函数注册成一个psy设备,在注册设备之前需要定义好该设备的psy_desc。 3. 相关接口函数 相关的函数主要在psy_core.c和psy_sysfs.c中,core主要负责设备状态变化逻辑,sysfs主要负责文件节点相关逻辑。
structpower_supply_desc{constchar*name;//!< power_supply的名字 By: jixuan 2021年6月15日enumpower_supply_typetype;//!< 类型 By: jixuan 2021年6月15日enumpower_supply_property*properties;//!< 属性 By: jixuan 2021年6月15日size_tnum_properties;int(*get_property)(structpower_supply *psy,...
/include/linux/power_supply.h。 psy_desc是psy子系统中最重要的结构体,该描述符定义了psy的属性property,以及相关的set/get/is_writeable接口,is_writeable即文件节点的“w”权限,所有节点默认是可读的。从get函数可以看到调用该函数需要指定某个psy和psp(属性),结果保存在val中,值得一提的是,val是个union类型,...
Join Alibaba Cloud Marketplace Today On-boarding with us Become marketplace technology partner $1000 couponfor new marketplace partners Get it now On-boarding review can be completed within2 days Apply now Gain access to dedicated support from our technical experts ...
Water cooled power supply Programmable power supply Rectifier Battery charger 17855881278 Dongyang Minghui Electrical Equipment Co., LtdContact us 脉冲电源 Your location: HOME > product > 脉冲电源 < > NAME:脉冲电源 NO:209 功能描述: click count:1199 PrevbackNext product desc联系...
WLAN_1.3.6.1.4.1.2011.6.139.13.1.1.122 hwAPPowerFailResumeTrap Trap Buffer信息解释 Power resume from failure. (APMAC=[APMAC], APName=[APName], APID=[APID], APPowerId=[APPowerId], FaultID=[FaultID], FaultReasonDesc=[FaultReasonDesc]) AP电源失败恢复。 Trap属性 Trap属性描述 Alarm or ...