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  PCF8574-driver.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 40 of file PCF8574-driver.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 75 of file PCF8574-driver.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:
PCF8574-test1.c.

Definition at line 57 of file PCF8574-driver.h.


Variable Documentation

Array to hold I2C reply data

Definition at line 44 of file PCF8574-driver.h.

Array to hold I2C command data

Definition at line 43 of file PCF8574-driver.h.