diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-C57086D7-7672-4A52-8634-D28B37AC6290.dita
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Adaptation/GUID-C57086D7-7672-4A52-8634-D28B37AC6290.dita Fri Oct 15 14:32:18 2010 +0100
@@ -0,0 +1,144 @@
+
+
+
+
+
+TSDIOFunction
+Class TutorialDescribes the TSDIOFunction API Class.
+DescriptionThe TSDIOFunction class
+provides access to functionality common to all SDIO functions. It may be used
+as a base class for particular functions such as UART.
+
+
+
+Header file
+function.h
+
+
+Source code file
+function.cpp
+
+
+Required libraries
+EPBUSSDIO
+
+
+Class declaration
+class TSDIOFunction
+
+
+
+
+Enable()The
+function declaration for the Enable() method is:
IMPORT_C TInt Enable(TBool aPollReady = ETrue);Description
Enables the function by writing to the appropriate
+register in the CCCR.
Parameters
+
+
+
+TBool aPollReady
+If aPollReady == ETrue, then the function shall attempt
+to enable the function, then poll for the recommended enable period until
+the function is enabled, or times out. Otherwise, flow returns control to
+the calling function who should be responsible for polling the IO_READY bit
+(using TSDIOFunction::IsReady)
+
+
+
+
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 by writing to the appropriate register in the CCCR.
Parameters
None
Return
+value
KErrNone if successful, otherwise a standard
+Symbian platform error code.
+IsReady()The
+function declaration for the IsReady() method is:
IMPORT_C TInt IsReady(TBool& aIsReady);Description
Disables the function by writing to the appropriate register in the
+CCCR.
Parameters
+
+
+
+TBool& aIsReady
+Returns the current state of the function.
+
+
+
+
Return value
KErrNone if successful,
+otherwise a standard Symbian platform error code.
+RegisterClient()The
+function declaration for the RegisterClient() method is:
IMPORT_C TInt RegisterClient(DBase* aHandle, DMutex* aMutexLockP = NULL);Description
Registers the client with the function.
Parameters
+
+
+
+DBase* aHandle
+The unique Client ID
+
+
+DMutex* aMutexLockP
+The client's data access mutex which locks access to the register interface.
+Use of the mutex is optional and the parameter is initialized to NULL.
+
+
+
+
Return value
KErrNone if successful,
+otherwise a standard Symbian platform error code.
+DeregisterClient()The
+function declaration for the DeregisterClient() method
+is:
IMPORT_C TInt DeregisterClient(DBase* aHandle);Description
Deregisters
+the client from the function.
Parameters
+
+
+
+DBase* aHandle
+The unique Client ID.
+
+
+
+
Return value
KErrNone if successful,
+otherwise a standard Symbian platform error code.
+SetPriority()The
+function declaration for the SetPriority() method is:
IMPORT_C TInt SetPriority(TSDIOFunctionPriority aPriority);Description
This sets the priority of accesses to the function.
+ It is intended to allow the suspend/resume protocol to determine whether
+an access to a lower priority function should become suspended while a higher
+priority function is accessed. Note that the Suspend/Resume protocol is not
+currently implemented, but may be in a future release.
Parameters
+
+
+
+TSDIOFunctionPriority aPriority
+The requested function priority.
+
+
+
+
Return value
KErrNone if successful,
+otherwise a standard Symbian platform error code.
+RegisterInterface()The
+function declaration for the RegisterInterface() method
+is:
inline DSDIORegisterInterface* RegisterInterface(DBase* aHandle) const;Description
Returns
+a pointer to an instance of a DSDIORegInterface class that
+may be used by a client to talk to the Function Specific Registers.
Parameters
+
+
+
+DBase* aHandle
+The ID of the client as registered using RegisterClient().
+
+
+
+
Return value
A pointer to the DSDIORegisterInterface associated
+with this function.
+Interrupt()The
+function declaration for the Interrupt() method is:
inline TSDIOInterrupt& Interrupt();Description
Returns a reference to a TSDIOInterrupt class that may be used by
+the client to enable the use of interrupts for the function.
Parameters
None
Return
+value
A reference to the interrupt class associated with this function.
+Capabilities()The
+function declaration for the Capabilities() method is:
inline const TSDIOFunctionCaps& Capabilities() const;Description
Returns information about the basic capabilities
+of the function (function number, function type etc.).
Parameters
None
Return
+value
A pointer to the DSDIORegisterInterface associated
+with this function.
+
\ No newline at end of file