File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1515 * Indicates battery charging capabilites that were detected on a USB port.
1616 */
1717typedef enum {
18+ // NOTE: These values are part of the MicroPython API, don't change the numbers.
19+
1820 /** The USB cable is not connected (no VBUS). */
19- PBDRV_USB_BCD_NONE ,
21+ PBDRV_USB_BCD_NONE = 0 ,
2022 /** The USB cable is connected to a non-standard charger or PS/2 port. */
21- PBDRV_USB_BCD_NONSTANDARD ,
23+ PBDRV_USB_BCD_NONSTANDARD = 1 ,
2224 /** The USB cable is connected to standard downstream port. */
23- PBDRV_USB_BCD_STANDARD_DOWNSTREAM ,
25+ PBDRV_USB_BCD_STANDARD_DOWNSTREAM = 2 ,
2426 /** The USB cable is connected to charging downstream port. */
25- PBDRV_USB_BCD_CHARGING_DOWNSTREAM ,
27+ PBDRV_USB_BCD_CHARGING_DOWNSTREAM = 3 ,
2628 /** The USB cable is connected to dedicated charging port. */
27- PBDRV_USB_BCD_DEDICATED_CHARGING ,
29+ PBDRV_USB_BCD_DEDICATED_CHARGING = 4 ,
2830} pbdrv_usb_bcd_t ;
2931
3032#if PBDRV_CONFIG_USB
You can’t perform that action at this time.
0 commit comments