diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-BA3B42A2-141C-49D9-B513-1571C246C19B.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-BA3B42A2-141C-49D9-B513-1571C246C19B.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,107 @@ + + + + + +TSDIOCard +Class TutorialDescribes the TSDIOCard class. +
Description

The TSDIOCard class +provides access to the individual IO functions available on the SDIO card. +It also, provides various methods for reading the card capabilities and the +Common Card Control Registers (CCCR) on the SDIO card.

+ + + +

Header file

+

sdiocard.h

+
+ +

Source code file

+

sdiocard.cpp

+
+ +

Required libraries

+

EPBUSSDIO

+
+ +

Class declaration

+

class TSDIOCard : public TSDCard

+
+ + +
+
FunctionCount()

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

inline TUint8 FunctionCount() const;

Description

This method returns the number of IO functions that are present on +the SDIO card.

Parameters

None

Return value

+ + + +

TUint8

+

The number of IO functions present of the SDIO card.

+
+ + +
+
IoFunction()

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

inline TSDIOFunction* IoFunction(TUint8 aFunctionNo) const;

Description

This returns a pointer to the class that carries +out the required SDIO function.

Parameters

+ + + +

TUint8 aFunctionNo

+

The ID of the SDIO function.

+
+ + +

Return value

+ + + +

TSDIOFunction*

+

The pointer to the class that performs the SDIO function.

+
+ + +
+
FindFunction()

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

IMPORT_C TSDIOFunction* FindFunction(TSDIOFunctionCaps& aCaps, TUint32 aMatchFlags, TSDIOFunction* aFunctionP = NULL) const;

Description

This method provides support for the validation +and the enumeration of the card functions.

This method finds the function +that can carry out the required capabilities and either returns a function +pointer to it (if it exists), or NULL, if it does not. See Using +the SDIO Interface in a Device Driver for example code which uses this +function.

Parameters

+ + + +

TSDIOFunctionCaps& aCaps

+

The TSDIOFunctionCaps class that contains the +desired capabilities.

+
+ +

TUint32 aMatchFlags

+

A bitmask that specifies the capabilities that are to be matched.

+
+ +

TSDIOFunction* aFunctionP

+

A pointer to the currently matched function.

+
+ + +

Return value

+ + + +

TSDIOFunction*

+

A pointer to the next matching function. This value is NULL, if +there are no more matching functions.

+
+ + +
+
\ No newline at end of file