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

hitechnic-irlink-rcx.h File Reference

HiTechnic IR Link RCX Comms Driver. More...

#include "common.h"

Go to the source code of this file.

Functions

bool HTRCXsendHeader (tSensors link)
void HTRCXencode (tSensors link, tByteArray &iBuffer, tByteArray &oBuffer)
bool HTRCXreadResp (tSensors link, tByteArray &response)
bool HTRCXplaySound (tSensors link, unsigned byte sound)
bool HTRCXsendByte (tSensors link, unsigned byte data)
bool HTRCXsendWord (tSensors link, short data)
bool HTRCXmotorOn (tSensors link, unsigned byte _motor)
bool HTRCXmotorOff (tSensors link, unsigned byte _motor)
bool HTRCXmotorFwd (tSensors link, unsigned byte _motor)
bool HTRCXmotorRev (tSensors link, unsigned byte _motor)
bool HTRCXmotorPwr (tSensors link, unsigned byte _motor, unsigned byte power)

Variables

tByteArray HTRCXI2CRequest
tByteArray HTRCXI2CReply
tByteArray HTRCXIRMsg
byte HTRCXCmdToggle = 0

Detailed Description

HiTechnic IR Link RCX Comms Driver.

hitechnic-irlink-rcx.h provides an API for the HiTechnic IR Link Sensor to allow communication between the NXT and RCX.

Changelog:

Credits:

License: You may use this code as you wish, provided you give credit where its due.

THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
31 October 2010
Version:
1.1

Definition in file hitechnic-irlink-rcx.h.