Ev3devKit.Devices.PowerSupply.SupplyType – ev3devkit Reference Manual
Packages
ev3devkit
Ev3devKit
Devices
PowerSupply
SupplyType
BATTERY
MAINS
UNKNOWN
UPS
USB
USB_ACA
USB_CDP
USB_DCP
from_string
to_string
SupplyType
Description:
public
enum
SupplyType
Represents the type of a power supply.
Content:
Enum values:
UNKNOWN
-
Unknown type.
BATTERY
-
Battery.
UPS
-
Uninterpretable power supply.
MAINS
-
Line power.
USB
-
Standard Downstream Port.
USB_DCP
-
Dedicated Charging Port.
USB_CDP
-
Charging Downstream Port
USB_ACA
-
Static methods:
public
static
SupplyType
from_string
(
string
type)
Converts a string to a supply type.
Methods:
public
string
to_string
()
Convert the supply type to a string for display.