|
HiTechnic SuperPro Prototype Board driver. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | HTSPB_I2C_ADDR 0x10 |
#define | HTSPB_OFFSET 0x42 |
#define | HTSPB_A0_U 0x00 |
#define | HTSPB_A0_L 0x01 |
#define | HTSPB_DIGIN 0x0A |
#define | HTSPB_DIGOUT 0x0B |
#define | HTSPB_DIGCTRL 0x0C |
#define | HTSPB_STROBE 0x0E |
#define | HTSPB_LED 0x0F |
#define | HTSPB_O0MODE 0x10 |
#define | HTSPB_O0FREQ 0x11 |
#define | HTSPB_O0VOLT 0x13 |
#define | HTSPB_O1MODE 0x15 |
#define | HTSPB_O1FREQ 0x16 |
#define | HTSPB_O1VOLT 0x18 |
#define | HTSPB_DACO0 0x10 |
#define | HTSPB_DACO1 0x15 |
#define | DAC_MODE_DCOUT 0 |
#define | DAC_MODE_SINEWAVE 1 |
#define | DAC_MODE_SQUAREWAVE 2 |
#define | DAC_MODE_SAWPOSWAVE 3 |
#define | DAC_MODE_SAWNEGWAVE 4 |
#define | DAC_MODE_TRIANGLEWAVE 5 |
#define | DAC_MODE_PWMVOLTAGE 6 |
Functions | |
ubyte | HTSPBreadIO (tSensors link, ubyte mask) |
bool | HTSPBwriteIO (tSensors link, ubyte mask) |
bool | HTSPBsetupIO (tSensors link, ubyte mask) |
int | HTSPBreadADC (tSensors link, byte channel, byte width) |
bool | HTSPBreadAllADC (tSensors link, int &adch0, int &adch1, int &adch2, int &adch3, int &adch4, byte width) |
bool | HTSPBsetSamplingTime (tSensors link, byte interval) |
bool | HTSPBreadAllADC (tSensors link, int &adch0, int &adch1, int &adch2, int &adch3, byte width) |
bool | HTSPBwriteAnalog (tSensors link, byte dac, byte mode, int freq, int volt) |
Variables | |
tByteArray | HTSPB_I2CRequest |
tByteArray | HTSPB_I2CReply |
HiTechnic SuperPro Prototype Board driver.
hitechnic-superpro.h provides an API for the HiTechnic SuperPro 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.
Definition in file hitechnic-superpro.h.