I2Cmaster.h File Reference

This module contains the interface to the I2C controler of the processor. More...

#include "typedefs.h"
#include "dev.h"

Go to the source code of this file.

Functions

void I2CWrAdr8 (unsigned char devId, unsigned char adr, unsigned char noOfBytes, void *ptr)
 Write a block to the given device/internal address.
void I2CRdAdr8 (unsigned char devId, unsigned char adr, unsigned char noOfBytes, void *ptr)
 Read a block from the given device/internal address.

Variables

t_dev i2c_handler
 Device descritptor for the kernel.


Detailed Description

This module contains the interface to the I2C controler of the processor.

The implementation assumes, that the processor is operating a master and the devices connected always requiere besides the device address an internal address to select internal resgisters for read/write.

Definition in file I2Cmaster.h.


Function Documentation

void I2CRdAdr8 unsigned char  devId,
unsigned char  adr,
unsigned char  noOfBytes,
void *  ptr
 

Read a block from the given device/internal address.

Parameters:
devId I2C bus address
adr internal address of the device
noOfBytes number of bytes to be transfered.
ptr - pointer to the data it self.

void I2CWrAdr8 unsigned char  devId,
unsigned char  adr,
unsigned char  noOfBytes,
void *  ptr
 

Write a block to the given device/internal address.

Parameters:
devId I2C bus address
adr internal address of the device
noOfBytes number of bytes to be transfered.
ptr - pointer to the data it self.


Generated on Mon Sep 29 19:56:48 2008 for mKernel by  doxygen 1.4.6