|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-A3A3405C-C89C-5079-85CE-8CB069C8E0C0" xml:lang="en"><title>IIC Client Interface Quickstart</title><shortdesc>This document gives a brief overview of the IIC client |
|
13 interface API. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section id="GUID-969E5E79-1CCE-45DD-B243-734E446B490A"><title>Purpose</title> <p>The IIC client interface API creates a common interface from |
|
15 device drivers to serial inter-IC buses (IIC buses). </p> <p><b>Intended |
|
16 audience</b> </p> <p>This document is intended to be used by device |
|
17 driver writers. </p> </section> |
|
18 <section id="GUID-921BEB8B-C943-483D-BB67-15E1042F9F5F"><title>Architectural |
|
19 relationship</title> <p>The IIC client interface API is part of a |
|
20 group of APIs which provide a common, hardware-independent, interface |
|
21 from kernel to different hardware. Other APIs of this type include |
|
22 GPIO.</p> <p><b>Description</b> </p> <p>Physically, a bus represented |
|
23 by IIC is accessed over a node. The IIC client interface API wraps |
|
24 a node in a software construct called a channel. It provides functionality |
|
25 for creating and accessing channels directly. There are two possible |
|
26 modes of operation:</p><ul> |
|
27 <li><p>Controller</p><p>Where the device drivers that use the IIC |
|
28 client interface API can access different IIC channels.</p></li> |
|
29 <li><p>Controller-less</p><p>Where the channels that the device driver |
|
30 can access are set at compile time.</p></li> |
|
31 </ul><p>Furthermore, there are three possible channel behaviors: </p><ul> |
|
32 <li><p>Master</p><p>The device driver initializes the data transfer.</p></li> |
|
33 <li><p>Slave</p><p>The device driver carries out a data transfer that |
|
34 is controlled by another node attached to the bus.</p></li> |
|
35 <li><p>MasterSlave</p><p>The device driver can carry out both roles.</p></li> |
|
36 </ul> </section> |
|
37 <section id="GUID-0F84B972-8260-4373-9F1F-F068AA356F4F"><title>IIC |
|
38 classes</title> <p>If the access to the IIC bus is to be via a controller, |
|
39 then the IIC platform service API class to use is:</p><ul> |
|
40 <li id="GUID-3D3B2AFB-4451-5FCD-98B7-7090DD2D9943"><p> <xref href="GUID-69949E47-8FDF-3651-BEEF-43726EBEB5FF.dita"><apiname>IicBus</apiname></xref> </p> </li> |
|
41 </ul> <p>If the access to the IIC bus is to be without a controller |
|
42 (controller-less operation), then the IIC platform service API classes |
|
43 to use are:</p><ul> |
|
44 <li id="GUID-209C4026-156C-5887-AA8C-98C378E04558"><p> <xref href="GUID-FA3881ED-B736-34EB-8F1F-026BE1602B1B.dita"><apiname>DIicBusChannelMaster</apiname></xref> </p> </li> |
|
45 <li id="GUID-9D8474E8-9274-5602-AC32-C040BF6EE15D"><p> <xref href="GUID-22FF70C1-A805-3EBB-B142-15FD16D00837.dita"><apiname>DIicBusChannelSlave</apiname></xref> </p> </li> |
|
46 <li><p><xref href="GUID-26DBC836-03F1-31C4-BBFF-1F406E2BAEDB.dita"><apiname>DIicBusChannelMasterSlave</apiname></xref></p></li> |
|
47 </ul> </section> |
|
48 </conbody><related-links> |
|
49 <link href="GUID-9986DCC6-EE73-59FB-BDAC-9B09DC64FBCE.dita"><linktext>Client |
|
50 of Master Channel Tutorial</linktext></link> |
|
51 <link href="GUID-F461CBB3-F8D1-5961-AD51-5741143A1CB1.dita"><linktext>Client |
|
52 of Slave Channel Tutorial</linktext></link> |
|
53 </related-links></concept> |