usb_moded  0.86.0+mer57
usb_moded-modes.h
Go to the documentation of this file.
1 
31 #ifndef USB_MODED_MODES_H_
32 # define USB_MODED_MODES_H_
33 
34 /* ========================================================================= *
35  * Constants
36  * ========================================================================= */
37 
38 /* ------------------------------------------------------------------------- *
39  * Internal modes
40  *
41  * These modes are defined internally within usb-moded and are thus
42  * always available.
43  *
44  * Generally speaking these are also activated automatically and thus
45  * not really selectable - except:
46  * - MODE_ASK which can be set as default mode
47  * - MODE_CHARGING which can be acticated on request too
48  * ------------------------------------------------------------------------- */
49 
51 # define MODE_UNDEFINED "undefined"
52 
57 # define MODE_BUSY "busy"
58 
60 # define MODE_CHARGER "dedicated_charger"
61 
67 # define MODE_CHARGING_FALLBACK "charging_only_fallback"
68 
74 # define MODE_ASK "ask"
75 
77 # define MODE_CHARGING "charging_only"
78 
79 /* ------------------------------------------------------------------------- *
80  * Dynamic modes
81  *
82  * These modes are defined in usb-moded configuration files.
83  *
84  * From usb-moded point of view mode names have no special meaning,
85  * but a set of known values is still defined (and are likely to
86  * have localized name presentation in UI context).
87  * ------------------------------------------------------------------------- */
88 
89 # define MODE_MASS_STORAGE "mass_storage"
90 # define MODE_DEVELOPER "developer_mode"
91 # define MODE_MTP "mtp_mode"
92 # define MODE_HOST "host_mode"
93 # define MODE_CONNECTION_SHARING "connection_sharing"
94 # define MODE_DIAG "diag_mode"
95 # define MODE_ADB "adb_mode"
96 # define MODE_PC_SUITE "pc_suite"
97 
98 #endif /* USB_MODED_MODES_H_ */