diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-535C66C9-8B45-4DF3-8404-8ED03ABB4799-GENID-1-2-1-10-1-5-1-9-1-1-7-1-4-1-11-1.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-535C66C9-8B45-4DF3-8404-8ED03ABB4799-GENID-1-2-1-10-1-5-1-9-1-1-7-1-4-1-11-1.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,78 @@ + + + + + +TSDIOInterrupt +Class TutorialDescribes the TSDIOInterrupt API class. +
Description

The TSDIOInterrupt class +provides the client with the ability to enable, disable, bind and unbind to +an SDIO interrupt. There is no Clear() method provided as it is the responsibility +of the client device driver to clear the appropriate interrupt through its DSDIORegInterface class +documented here.

+ + + +

Header file

+

interrupt.h

+
+ +

Source code file

+

interrupt.cpp

+
+ +

Required libraries

+

epbussdio.lib

+
+ +

Class declaration

+

class TSDIOInterrupt

+
+ + +
+
Bind()

The +function declaration for the Bind() method is:

IMPORT_C TInt Bind(TSDIOIsr aIsr, TAny* aPtr);

Description

Binds the TSDIOIsr callback to the function's interrupt. +Once bound, the interrupt should be enabled for the function by a call to +Enable().

Parameters

+ + + +

TSDIOIsr aIsr

+The ISR used to handle the function's interrupt. +
+ +

TAny* aPtr

+User defined data for use within the ISR. +
+ + +

Return value

KErrNone if successful, KErrAlreadyExists if +an ISR already bound to the function's interrupt, or a standard Symbian platform +error code.

+
Unbind()

The +function declaration for the Unbind() method is:

IMPORT_C TInt Unbind();

Description

Unbinds +the callback from the interrupt controller, replacing the callback with a +dummy handler.

Parameters

None.

Return value

KErrNone if +successful, otherwise a standard Symbian platform error code.

+
Enable()

The +function declaration for the Enable() method is:

IMPORT_C TInt Enable();

Description

Enables +the function's interrupt by setting the appropriate IEN bit in the CCCR. Note +that this only unmasks the global function interrupt. It is the responsibility + of the client to perform any function-specific interrupt enabling that may +be required.

Parameters

None.

Return value

KErrNone if +successful, otherwise a standard Symbian platform error code.

+
Disable()

The +function declaration for the Disable() method is:

IMPORT_C TInt Disable();

Description

Disables the function's interrupt by clearing the appropriate IEN bit in +the CCCR. Note that this only masks the global function interrupt. It is +the responsibility of the client to perform any function-specific interrupt +disabling that may be required.

Parameters

None.

return +value

KErrNone if successful, otherwise a standard +Symbian platform error code.

+
\ No newline at end of file