equal
deleted
inserted
replaced
64 // |
64 // |
65 // --------------------------------------------------------------------------- |
65 // --------------------------------------------------------------------------- |
66 // |
66 // |
67 TUsbStateIds CUsbState::Id() |
67 TUsbStateIds CUsbState::Id() |
68 { |
68 { |
69 return EUsbStateUndefined; |
69 Panic(EIdForNotDefinedStateRequested); |
|
70 return EUsbStateHostUndefined; |
70 } |
71 } |
71 |
72 |
72 // --------------------------------------------------------------------------- |
73 // --------------------------------------------------------------------------- |
73 // |
74 // |
74 // --------------------------------------------------------------------------- |
75 // --------------------------------------------------------------------------- |
103 void CUsbState::ChangeHostStateL(TUsbStateIds aNewStateId) |
104 void CUsbState::ChangeHostStateL(TUsbStateIds aNewStateId) |
104 { |
105 { |
105 |
106 |
106 iWatcher->ChangeHostStateL(aNewStateId); |
107 iWatcher->ChangeHostStateL(aNewStateId); |
107 |
108 |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------------------------- |
|
112 // |
|
113 // --------------------------------------------------------------------------- |
|
114 // |
|
115 void CUsbState::HandleL(TInt aWhat, TUsbStateIds aWhereToHandle) |
|
116 { |
|
117 FTRACE( FPrint(_L( "[USBOTGWATCHER]\tCUsbState::HandleL aWhat = %d aWhere = %d" ), aWhat, aWhereToHandle)); |
|
118 |
|
119 iWatcher->HandleHostProblemL(aWhat, aWhereToHandle); |
108 } |
120 } |
109 |
121 |
110 // --------------------------------------------------------------------------- |
122 // --------------------------------------------------------------------------- |
111 // |
123 // |
112 // --------------------------------------------------------------------------- |
124 // --------------------------------------------------------------------------- |
186 // --------------------------------------------------------------------------- |
198 // --------------------------------------------------------------------------- |
187 // |
199 // |
188 void CUsbState::VBusUpL() |
200 void CUsbState::VBusUpL() |
189 { |
201 { |
190 FLOG( _L( "[USBOTGWATCHER]\tCUsbState::VBusUpL" ) ); |
202 FLOG( _L( "[USBOTGWATCHER]\tCUsbState::VBusUpL" ) ); |
|
203 Panic(EVBusUpNotExpected); |
191 } |
204 } |
192 |
205 |
193 // From OTG state observer |
206 // From OTG state observer |
194 // --------------------------------------------------------------------------- |
207 // --------------------------------------------------------------------------- |
195 // |
208 // |