Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/i2c/digital.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <digital.h>
#include <i2cd.h>

Include dependency graph for digital.c:

Go to the source code of this file.

Functions

unsigned char I2C_ReadBinIn (int chip)
 read the binary input on a PCF8574(A) device. More...

int I2C_WriteBinOut (int chip, unsigned char value)
int I2C_init_digital ()
 initializes all PCF8574 devices in the system. More...


Variables

_I2C_bin_datas _I2C_bin_data [32]
 keeps the internal data for all PCF8574(A) bin i/o devices. More...

int _I2C_binnum
unsigned char _I2C_digital_mbuf [MAXI2CMESSLENGTH]
i2cmess _I2C_digital_m


Detailed Description

Definition in file digital.c.


Function Documentation

int I2C_WriteBinOut int    chip,
unsigned char    value
 

Definition at line 60 of file digital.c.

References _I2C_digital_mbuf, _I2C_bin_datas::active, _I2C_bin_datas::address, i2cmess::address, i2cmess::buf, I2C_MASTER, I2C_OK, I2C_process, i2cmess::nrBytes, and i2cmess::status.


Variable Documentation

int _I2C_binnum
 

Definition at line 30 of file digital.c.

Referenced by I2C_init_digital.

struct i2cmess _I2C_digital_m
 

Definition at line 34 of file digital.c.

unsigned char _I2C_digital_mbuf[MAXI2CMESSLENGTH]
 

Definition at line 33 of file digital.c.

Referenced by I2C_init_digital, I2C_ReadBinIn, and I2C_WriteBinOut.


Generated on Thu Feb 20 15:38:48 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002