
MOTOROLA
Appendix E. MPC8240 Drivers
E-13
which collectively give details of the I2C protocol and the Kahlua implementation. This
document provides information about the software written to access the Kahlua I2C
interface. This software is intended to assist in the development of higher level applications
software that uses the I2C interface.
NOTE
The I2C driver software is currently under development. The
only modes that are functional are the master-transmit and
master-receive in polling mode.
E.2.2
Overview
This document consists of these parts:
An Application Program Interface (API) which provides a very simple, generic,
application level programmatic interface to the I2C driver library that hides all
details of the Kahlua-specific implementation of the I2C interface (i.e., control
register, status register, embedded utilities memory block, etc.).
I2C API functions showing the following:
— how the function is called (i.e., function prototype)
— parameter definition
— possible return values
— brief description of what the function does
— an explanation of how the functions are used by an application program
(DINK32 usage employed as examples)
An I2C Driver Library Internals (DLI) which provides information about the lower
level software that is accessing the Kahlua-specific implementation of the I2C
interface.
— I2C DLI functions showing the following:
— how the function is called (i.e., function prototype)
— parameter definition
— possible return values
— brief description of what the function does
E.2.3
I2C Application Program Interface (API)
E.2.3.1
API Functions Description
The I2C API function prototypes, defined return values, and enumerated input parameter
values are declared in drivers/i2c/i2c_export.h.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.