Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.71 KB

usb_moded-modes.h

File metadata and controls

49 lines (41 loc) · 1.71 KB
 
Mar 22, 2011
Mar 22, 2011
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
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
*/
Apr 28, 2015
Apr 28, 2015
21
22
/* possible values for the mode
the first two are internal only.
Mar 22, 2011
Mar 22, 2011
23
*/
Apr 28, 2015
Apr 28, 2015
24
Mar 22, 2011
Mar 22, 2011
25
26
#define MODE_UNDEFINED "undefined"
#define MODE_ASK "ask"
Apr 28, 2015
Apr 28, 2015
27
#define MODE_MASS_STORAGE "mass_storage"
Mar 1, 2012
Mar 1, 2012
28
#define MODE_DEVELOPER "developer_mode"
Jul 19, 2012
Jul 19, 2012
29
#define MODE_MTP "mtp_mode"
Feb 22, 2014
Feb 22, 2014
30
#define MODE_HOST "host_mode"
Feb 24, 2014
Feb 24, 2014
31
#define MODE_CONNECTION_SHARING "connection_sharing"
Oct 13, 2015
Oct 13, 2015
32
#define MODE_DIAG "diag_mode"
Apr 23, 2015
Apr 23, 2015
33
#define MODE_ADB "adb_mode"
Apr 28, 2015
Apr 28, 2015
34
35
#define MODE_PC_SUITE "pc_suite"
#define MODE_CHARGING "charging_only"
Apr 28, 2015
Apr 28, 2015
36
37
38
39
40
41
42
/**
*
* 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
*
Apr 28, 2015
Apr 28, 2015
43
* the two last ones cannot be set and are not full modes
Apr 28, 2015
Apr 28, 2015
44
**/
Apr 28, 2015
Apr 28, 2015
45
46
#define MODE_CHARGING_FALLBACK "charging_only_fallback"
#define MODE_CHARGER "dedicated_charger"
Dec 15, 2015
Dec 15, 2015
47
48
void send_supported_modes_signal(void);
Apr 4, 2016
Apr 4, 2016
49
void send_hidden_modes_signal(void);