usb_moded  0.86.0+mer57
Macros
usb_moded-modes.h File Reference

Go to the source code of this file.

Macros

#define MODE_UNDEFINED   "undefined"
 
#define MODE_BUSY   "busy"
 
#define MODE_CHARGER   "dedicated_charger"
 
#define MODE_CHARGING_FALLBACK   "charging_only_fallback"
 
#define MODE_ASK   "ask"
 
#define MODE_CHARGING   "charging_only"
 

Detailed Description

Copyright (c) 2010 Nokia Corporation. All rights reserved. Copyright (c) 2013 - 2020 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.de-sw.nosp@m.ert@.nosp@m.nokia.nosp@m..com
Philippe De Swert phili.nosp@m.pped.nosp@m.eswer.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Thomas Perl m@thp.nosp@m..io
Martin Jones marti.nosp@m.n.jo.nosp@m.nes@j.nosp@m.olla.nosp@m.mobil.nosp@m.e.co.nosp@m.m
Andrew den Exter andre.nosp@m.w.de.nosp@m.n.ext.nosp@m.er@j.nosp@m.olla..nosp@m.com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.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

Definition in file usb_moded-modes.h.

Macro Definition Documentation

◆ MODE_ASK

#define MODE_ASK   "ask"

Pending mode selection

While mode selection dialog is shown to user, pc connection is used for charging.

Definition at line 74 of file usb_moded-modes.h.

◆ MODE_BUSY

#define MODE_BUSY   "busy"

Pending mode activation

Used for signaling "in between modes" state.

Definition at line 57 of file usb_moded-modes.h.

◆ MODE_CHARGER

#define MODE_CHARGER   "dedicated_charger"

Connected to a dedicated charger

Definition at line 60 of file usb_moded-modes.h.

◆ MODE_CHARGING

#define MODE_CHARGING   "charging_only"

Charging only selected

Definition at line 77 of file usb_moded-modes.h.

◆ MODE_CHARGING_FALLBACK

#define MODE_CHARGING_FALLBACK   "charging_only_fallback"

Blocked mode selection

While prerequisites for dynamic mode activation are not met e.g. device is locked, pc connection is used for charging.

Definition at line 67 of file usb_moded-modes.h.

◆ MODE_UNDEFINED

#define MODE_UNDEFINED   "undefined"

No cable connected

Definition at line 51 of file usb_moded-modes.h.