文件名称:
IPowerEventListener.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
2.77 KB
下载地址:
文本预览:
# IPowerEventListener
## **Overview**
**Related Modules:**
[Core](Core.md)
**Description:**
Defines the power management functions provided by the HDF for the driver.
To use the power management mechanism provided by the HDF, implement operations of **[IPowerEventListener](IPowerEventListener.md)** and invoke \{@linkHdfDeviceRegisterPowerListener\} to register the operations with the HDF.
**Since:**
1.0
## **Summary**
## Data Fields
## **Details**
## **Field Documentation**
## Resume
```
void(* IPowerEventListener::Resume) (struct [HdfDeviceObject](HdfDeviceObject.md) *deviceObject)
```
**Description:**
Wakes up the driver device. The driver developer implements the operation.
## Suspend
```
void(* IPowerEventListener::Suspend) (struct [HdfDeviceObject](HdfDeviceObject.md) *deviceObject)
```
**Description:**
Hibernates the driver device. The driver developer implements the operation.
## **Overview**
**Related Modules:**
[Core](Core.md)
**Description:**
Defines the power management functions provided by the HDF for the driver.
To use the power management mechanism provided by the HDF, implement operations of **[IPowerEventListener](IPowerEventListener.md)** and invoke \{@linkHdfDeviceRegisterPowerListener\} to register the operations with the HDF.
**Since:**
1.0
## **Summary**
## Data Fields
Resume )(struct HdfDeviceObject *deviceObject) | |
Suspend )(struct HdfDeviceObject *deviceObject) |
## **Details**
## **Field Documentation**
## Resume
```
void(* IPowerEventListener::Resume) (struct [HdfDeviceObject](HdfDeviceObject.md) *deviceObject)
```
**Description:**
Wakes up the driver device. The driver developer implements the operation.
## Suspend
```
void(* IPowerEventListener::Suspend) (struct [HdfDeviceObject](HdfDeviceObject.md) *deviceObject)
```
**Description:**
Hibernates the driver device. The driver developer implements the operation.
点赞
回复
X