equal
deleted
inserted
replaced
15 // |
15 // |
16 // |
16 // |
17 |
17 |
18 #ifndef __GPIO_H__ |
18 #ifndef __GPIO_H__ |
19 #define __GPIO_H__ |
19 #define __GPIO_H__ |
|
20 |
|
21 #include <dfcs.h> |
|
22 |
|
23 #ifdef __USE_GPIO_STATIC_EXTENSION__ |
|
24 // test standard extension handler number. *DO NOT USE* |
|
25 #define KTestStaticExtension 0x80000000 |
|
26 #include <staticextension.h> |
|
27 #endif |
20 |
28 |
21 class TGpioCallback; //forward declaration |
29 class TGpioCallback; //forward declaration |
22 |
30 |
23 /** |
31 /** |
24 @publishedPartner |
32 @publishedPartner |
230 */ |
238 */ |
231 IMPORT_C static TInt SetPinIdleConfigurationAndState(TInt aId, TInt aConf); |
239 IMPORT_C static TInt SetPinIdleConfigurationAndState(TInt aId, TInt aConf); |
232 |
240 |
233 /** |
241 /** |
234 Reads the pin idle configuration and state. |
242 Reads the pin idle configuration and state. |
235 |
|
236 @param aId The pin Id. |
243 @param aId The pin Id. |
237 @param aConf On return contains the idle configuration and state previoulsy |
244 @param aConf On return contains the idle configuration and state previoulsy |
238 set on the pin. |
245 set on the pin. |
239 |
246 |
240 @return KErrNone, if successful; |
247 @return KErrNone, if successful; |
272 KErrArgument, if aId is invalid; |
279 KErrArgument, if aId is invalid; |
273 KErrNotSupported if pin does not support interrupts; |
280 KErrNotSupported if pin does not support interrupts; |
274 KErrGeneral, if there is no ISR bound to this interrupt. |
281 KErrGeneral, if there is no ISR bound to this interrupt. |
275 */ |
282 */ |
276 IMPORT_C static TInt UnbindInterrupt(TInt aId); |
283 IMPORT_C static TInt UnbindInterrupt(TInt aId); |
277 |
|
278 /** |
284 /** |
279 Enables the interrupt on specified pin. |
285 Enables the interrupt on specified pin. |
280 |
286 |
281 @param aId The pin Id. |
287 @param aId The pin Id. |
282 |
288 |
284 KErrArgument, if aId is invalid; |
290 KErrArgument, if aId is invalid; |
285 KErrNotSupported if pin does not support interrupts; |
291 KErrNotSupported if pin does not support interrupts; |
286 KErrGeneral, if there is no ISR bound to this interrupt. |
292 KErrGeneral, if there is no ISR bound to this interrupt. |
287 */ |
293 */ |
288 IMPORT_C static TInt EnableInterrupt(TInt aId); |
294 IMPORT_C static TInt EnableInterrupt(TInt aId); |
289 |
|
290 /** |
295 /** |
291 Disables the interrupt on specified pin. |
296 Disables the interrupt on specified pin. |
292 |
297 |
293 @param aId The pin Id. |
298 @param aId The pin Id. |
294 |
299 |