USB Libraries Help > USB Device Libraries > USB Device Layer Library > Library Interface > g) Data Types and Constants > USB_DEVICE_POWER_STATE Enumeration
MPLAB Harmony USB Stack
USB_DEVICE_POWER_STATE Enumeration

Device Power state 

This enumeration defines the possible power states of the device. The application specifies this state to the device layer (through the USB_DEVICE_PowerStateSet function) to let the device layer know if this USB Device is presently bus or self powered.

C
typedef enum {
  USB_DEVICE_POWER_STATE_BUS_POWERED,
  USB_DEVICE_POWER_STATE_SELF_POWERED
} USB_DEVICE_POWER_STATE;
Members
Members 
Description 
USB_DEVICE_POWER_STATE_BUS_POWERED 
Device is bus powered 
USB_DEVICE_POWER_STATE_SELF_POWERED 
Device is self powered 
Remarks

None.