Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Defines | Functions | Variables

Philips PCF8574
[Other]

Files

file  philips-pcf8574.h
 

Philips PCF8574 IO MUX driver.


Defines

#define PCF8574_I2C_ADDR   0x70

Functions

bool PCF8574sendBytes (tSensors link, ubyte _byte)
bool PCF8574readBytes (tSensors link, ubyte &_byte)

Variables

tByteArray PCF8574_I2CRequest
tByteArray PCF8574_I2CReply

Detailed Description

Philips PCF8574


Define Documentation

#define PCF8574_I2C_ADDR   0x70

HDMMUX I2C device address

Definition at line 41 of file philips-pcf8574.h.


Function Documentation

bool PCF8574readBytes ( tSensors  link,
ubyte &  _byte 
)

Read the current state of the ports on the PCF8574

Parameters:
linkthe PCF8574 port number
_bytethe byte thats been read
Returns:
true if no error occured, false if it did

Definition at line 76 of file philips-pcf8574.h.

bool PCF8574sendBytes ( tSensors  link,
ubyte  _byte 
)

Send a byte to the PCF8574 to set the IO ports

Parameters:
linkthe PCF8574 port number
_bytethe byte to be sent
Returns:
true if no error occured, false if it did
Examples:
philips-pcf8574-test1.c.

Definition at line 58 of file philips-pcf8574.h.


Variable Documentation

Array to hold I2C reply data

Definition at line 45 of file philips-pcf8574.h.

Array to hold I2C command data

Definition at line 44 of file philips-pcf8574.h.