diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-6786C7D8-34B9-496C-890E-03DE018D2DE1.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-6786C7D8-34B9-496C-890E-03DE018D2DE1.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,85 @@ + + + + + +IIC Testing GuideDescribes how to test an IIC platform service implementation +

The IIC bus has a standard IIC +bus specification v2-1 Jun 2000. For generic testing, there +is also an IIC test harness.

+
IIC +test source files

The following test code is available to +test an IIC port.

+ + + + +

File

+

Description

+

Location

+

Usage

+
+ + + +

t_iic.exe

+

This file interacts with test-specific LDD to instigate +tests of functionality that would normally be invoked by kernel-side +device driver clients of the IIC

+

/sf/os/kernelhwsrv/kerneltest/e32test/iic/t_iic.cpp

+

Mandatory

+
+ +

iic_client_ctrless.ldd

+

Kernel-side proxy LDD acting as a client of the IIC.

+

/sf/os/kernelhwsrv/kerneltest/e32test/iic/t_iic.cpp

+

Mandatory

+
+ +

iic_slaveclient_ctrless.ldd

+

Kernel-side proxy LDD acting as a slave client of the IIC.

+

/sf/os/kernelhwsrv/kerneltest/e32test/iic/t_iic.cpp

+

Mandatory

+
+ +

iic_client.ldd

+

Kernel-side proxy LDD acting as a client of the IIC.

+

/sf/os/kernelhwsrv/kerneltest/e32test/iic/t_iic.cpp

+

Mandatory

+
+ +

iic_slaveclient.ldd

+

Kernel-side proxy LDD acting as a slave client of the IIC.

+

/sf/os/kernelhwsrv/kerneltest/e32test/iic/t_iic.cpp

+

Mandatory

+
+ + +

The above test system consists of the executable (t_iic.exe) +and associated ldd files. The default version of t_iic.exe is used +to test that the platform independent layers of the IIC component +work correctly. The default version only works on the emulator, so +the layer below the SHAI is a series of stubs. In order for this test +harness to work with actual hardware, extensive modification to t_iic.exe +will have to be undertaken.

+
Test +application use cases

The IIC test application is used to +test:

    +
  • The basic master channel functionality.

  • +
  • The master channel data handling for transaction functionality.

  • +
  • The master channel preamble and multi-transaction functionality.

  • +
  • The slave channel capture and release APIs.

  • +
  • The slave channel capture for receive and transmit of data.

  • +
  • That MasterSlave channels can only be used for one mode at +a time.

  • +
+
Limitations

The IIC test application has the following known limitations:

    +
  • This test suite does not work on hardware.

  • +
+
\ No newline at end of file