diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-8D7ED882-C61E-4B4F-8483-A323C60BFC57.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-8D7ED882-C61E-4B4F-8483-A323C60BFC57.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,112 @@ + + + + + +Register Access Interface OverviewProvides a summary of the Register Access platform service +interface. +

The Register Access platform service is provided by functions of +the AsspRegister class. The AsspRegister class is defined in the os/kernelhwsrv/kernel/eka/include/kernel/arm/assp.h file. The functions defined in the AsspRegister class must be implemented +in the baseport variant to allow device drivers and other kernel side +code to access registers.

+
+ Register read functions + + + +API +Description + + + + +AsspRegister::Read8(TLinAddr aAddr) +Read the contents of an 8 bit register + + +AsspRegister::Read16(TLinAddr aAddr) +Read the contents of a 16bit register + + +AsspRegister::Read32(TLinAddr aAddr) +Read the contents of a 32 bit register + + +AsspRegister::Read64(TLinAddr aAddr) +Read the contents of a 64 bit register + + + +
+
Register +write functions + + + +API +Description + + + + +AsspRegister::Write8(TLinAddr aAddr, TUint8 aValue) +Store a new value in an 8 bit register. + + +AsspRegister::Write16(TLinAddr aAddr, TUint16 aValue) +Store a new value in a 16 bit register. + + +AsspRegister::Write32(TLinAddr aAddr, TUint32 aValue) +Store a new value in a 32 bit register. + + +AsspRegister::Write64(TLinAddr aAddr, TUint64 aValue) +Store a new value in a 64 bit register. + + + +
+
Register +modify functions

The difference between write and modify +functions is that the modify function allows the client to change +partial contents of a register using masks.

+ + + +API +Description + + + + +AsspRegister::Modify8(TLinAddr aAddr, TUint8 aClearMask, +TUint8 aSetMask) +Modify the contents of an 8 bit register. + + +AsspRegister::Modify16(TLinAddr aAddr, TUint16 aClearMask, +TUint16 aSetMask) +Modify the contents of a 16 bit register. + + +AsspRegister::Modify32(TLinAddr aAddr, TUint32 aClearMask, +TUint32 aSetMask) +Modify the contents of a 32 bit register. + + +AsspRegister::Modify64(TLinAddr aAddr, TUint64 aClearMask, +TUint64 aSetMask) +Modify the contents of a 64 bit register + + + +

The header file for the Registry Access platform service +can be found here.

+
\ No newline at end of file