usbengines/usbotgwatcher/inc/panic.h
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 /*
       
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Central place for debug-type macros & functions
       
    15  *
       
    16  */
       
    17 #ifndef C_PANIC_H
       
    18 #define C_PANIC_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <e32debug.h>
       
    22 
       
    23 _LIT(KUsbWatcherPanic, "UsbOTGWatcher");
       
    24 
       
    25 enum TUsbWatcherPanic
       
    26     {
       
    27     ECanNotGetIdPinProperty, //0
       
    28     EWrongIdPinState, //1
       
    29     ECanNotGetVBusProperty, //2
       
    30     EWrongVBusState, //3
       
    31     ECanNotGetOtgStateProperty, //4
       
    32     ENotifierIsActiveAlready, //5
       
    33     EWrongNotifierCategory, //6
       
    34     EUsbWatcherBadErrorCode, //7
       
    35     ECanNotFindIdPinObserver, //8
       
    36     ECanNotFindVBusObserver, //9
       
    37     EWrongOtgState, //10
       
    38     ECanNotGetBusActivityProperty, //11
       
    39     EWrongBusState, //12
       
    40     ECanNotFindBusActivityObserver, //13
       
    41     EWrongDriverLoadStatus, //14
       
    42     EWrongHostEventNotification, //15
       
    43     ECanNotFindMessageNotificationObserver, //16
       
    44     ECanNotFindOtgStateObserver, //17
       
    45     EBadState, //18
       
    46     EBadHostState, // 19
       
    47 
       
    48     //From IdPin observer
       
    49     EIdPinOnNotExpected, //20
       
    50     EIdPinOffNotExpected, //21
       
    51 
       
    52     // From VBus observer
       
    53     EVBusDownNotExpected, //22
       
    54     EVBusUpNotExpected, //23
       
    55 
       
    56     // From OTG state observer
       
    57     EAIdleNotExpected, //24
       
    58     EAHostNotExpected, //25
       
    59     EAPeripheralNotExpected, //26
       
    60     EAVBusErrorNotExpected, //27
       
    61     EBIdleNotExpected, //28
       
    62     EBPeripheralNotExpected, //29
       
    63     EBHostNotExpected, //30
       
    64 
       
    65     // From bus activity observer
       
    66     EBusIdleNotExpected, //31
       
    67     EBusActiveNotExpected, //32
       
    68 
       
    69     // From Host Event notification observer
       
    70     EDeviceAttachedNotExpected, //33
       
    71     EDeviceDetachedNotExpected, //34
       
    72     EDriverLoadSuccessNotExpected, //35
       
    73     EDriverLoadPartialSuccessNotExpected, //36
       
    74     EDriverLoadFailureNotExpected, //37
       
    75 
       
    76     // From message notification observer
       
    77     EMessageNotificationNotExpected, //38
       
    78     EBadHubPositionNotExpected, //39
       
    79     EVBusErrorNotExpected, //40
       
    80     ESrpNotExpected, //41
       
    81     ESessionRequestNotExpected, //42
       
    82 
       
    83     EIdPinObserverNULLPointer, //43
       
    84     ECanNotStartUsbServices, //44
       
    85     ECanNotStopUsbServices, //45
       
    86 
       
    87     EDanglingCable, //46
       
    88     EPartiallySupportedDevice, //47
       
    89     EDriversLoadingFail, //48
       
    90     EUnsupportedDevice, //49
       
    91     EBadHubPosition, //50
       
    92     ETooMuchPower, //51
       
    93     EBusRespondSrpError, //52
       
    94     EEnableFunctionDriverLoadingError, //53
       
    95     EErrorInConnection, //54
       
    96     EWatcherDriverLoadPartialSuccess, //55
       
    97     EUnsupportedDeviceOrErrorInConnection, //56
       
    98     EBusRequestError, //57
       
    99     EAttachmentError, //58
       
   100     EVBusError, // 59
       
   101     ENoActivity, //60
       
   102     EDeviceDetached, //61
       
   103     EBadHubPositionEventNotExpected, //62
       
   104     EUnhandledMessage, //63
       
   105     EUnexpectedSituationToHandle, //64
       
   106     EConnectedToOTGNotExpected, //65
       
   107 
       
   108     EWrongTimerId, //66
       
   109     EUnexpectedNotifId, //67
       
   110     EUnknownUsbServiceState, //68
       
   111     EUnexpectedUsbServiceState, //69
       
   112     EUnexpectedUsbSwitchPersonalityState, //70
       
   113 
       
   114     ECanNotFindUsbOtgWatcherStateObserver, //71
       
   115     ENoObserverToUnsubscribe, // 72
       
   116     EObserverAlreadyExists, //73
       
   117     EIdForNotDefinedStateRequested, //74
       
   118     ECanNotFindHostEventNotificationObserver, //75
       
   119     ENoTimersDefinedForThisClass    //76
       
   120 
       
   121     };
       
   122 
       
   123 #endif // C_PANIC_H