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

hitechnic-protoboard.h File Reference

HiTechnic Prototype Board driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define HTPB_I2C_ADDR   0x02
#define HTPB_OFFSET   0x42
#define HTPB_A0_U   0x00
#define HTPB_A0_L   0x01
#define HTPB_DIGIN   0x0A
#define HTPB_DIGOUT   0x0B
#define HTPB_DIGCTRL   0x0C
#define HTPB_SRATE   0x0D

Functions

ubyte HTPBreadIO (tSensors link, ubyte mask)
bool HTPBwriteIO (tSensors link, ubyte mask)
bool HTPBsetupIO (tSensors link, ubyte mask)
int HTPBreadADC (tSensors link, byte channel, byte width)
bool HTPBreadAllADC (tSensors link, int &adch0, int &adch1, int &adch2, int &adch3, int &adch4, byte width)
bool HTPBsetSamplingTime (tSensors link, byte interval)
ubyte HTPBreadIO (tMUXSensor muxsensor, ubyte mask)
int HTPBreadADC (tMUXSensor muxsensor, byte channel, byte width)
bool HTPBreadAllADC (tMUXSensor muxsensor, int &adch0, int &adch1, int &adch2, int &adch3, int &adch4, byte width)

Variables

tByteArray HTPB_I2CRequest
tByteArray HTPB_I2CReply
tConfigParams HTPB_config = {HTSMUX_CHAN_I2C + HTSMUX_CHAN_9V, 14, 0x02, 0x42}

Detailed Description

HiTechnic Prototype Board driver.

hitechnic-protoboard.h provides an API for the HiTechnic Proto Board.

Changelog:

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:
24 September 2009
Version:
0.9

Definition in file hitechnic-protoboard.h.