pcf8574.c File Reference

This module provides all the primitives to read and write data to/from a PCF8574 Remote 8-bit I/O Expander. More...

Include dependency graph for pcf8574.c:

Go to the source code of this file.

Functions

int pcf8574_Read (knet_dev_t *dev, unsigned char *value, unsigned char mask)
int pcf8574_Write (knet_dev_t *dev, unsigned char value)


Detailed Description

This module provides all the primitives to read and write data to/from a PCF8574 Remote 8-bit I/O Expander.

Philips PCF8574 Remote 8-bit I/O Expander Support

Author:
CÚdric Gaudin (K-Team SA)
Note:
Copyright (C) 2004 K-TEAM SA
Bug:
none discovered.
Todo:
nothing.

Definition in file pcf8574.c.


Function Documentation

int pcf8574_Read ( knet_dev_t dev,
unsigned char *  value,
unsigned char  mask 
)

This function reads 8-bit from the Remote I/O Expander

Parameters:
dev K-Net Device Descriptor
value The value read.
Returns:
A value :
  • <0 on error
  • >=0 on success

Definition at line 38 of file pcf8574.c.

References knet_lltransfer().

Here is the call graph for this function:

int pcf8574_Write ( knet_dev_t dev,
unsigned char  value 
)

This function writes 8-bit from the Remote I/O Expander

Parameters:
dev K-Net Device Descriptor
value The value to write.
Returns:
A value :
  • <0 on error
  • >=0 on success

Definition at line 66 of file pcf8574.c.

References knet_llwrite().

Here is the call graph for this function:


Generated on Wed Dec 15 11:49:30 2010 for KoreBot Library by  doxygen 1.5.5