/
usb_moded-modes.h
51 lines (43 loc) · 1.79 KB
/
usb_moded-modes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
Copyright (C) 2010 Nokia Corporation. All rights reserved.
Author: Philippe De Swert <philippe.de-swert@nokia.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the Lesser GNU General Public License
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the Lesser GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
*/
/* possible values for the mode
the first two are internal only.
*/
#define MODE_UNDEFINED "undefined"
#define MODE_ASK "ask"
#define MODE_MASS_STORAGE "mass_storage"
#define MODE_DEVELOPER "developer_mode"
#define MODE_MTP "mtp_mode"
#define MODE_HOST "host_mode"
#define MODE_CONNECTION_SHARING "connection_sharing"
#define MODE_DIAG "diag_mode"
#define MODE_ADB "adb_mode"
#define MODE_PC_SUITE "pc_suite"
#define MODE_CHARGING "charging_only"
/**
*
* MODE_CHARGING : user manually selected charging mode
* MODE_CHARGING_FALLBACK : mode selection is not done by the user so we fallback to a charging mode to get some power
* MODE_CHARGER : there is a dedicated charger connected to the USB port
*
* the two last ones cannot be set and are not full modes
**/
#define MODE_CHARGING_FALLBACK "charging_only_fallback"
#define MODE_CHARGER "dedicated_charger"
void send_supported_modes_signal(void);
void send_available_modes_signal(void);
void send_hidden_modes_signal(void);
void send_whitelisted_modes_signal(void);