Functions for accessing and modifying HiTechnic devices. More...
Modules | |
| HiTechnic device constants | |
Constants that are for use with HiTechnic devices. | |
Defines | |
| #define | SetSensorHTGyro(_port) __SetSensorHTGyro(_port) |
| Set sensor as HiTechnic Gyro. | |
| #define | ReadSensorHTGyro(_p, _offset, _val) __ReadSensorHTGyro(_p, _offset, _val) |
| Read HiTechnic Gyro sensor. | |
| #define | SetSensorHTMagnet(_port) __SetSensorHTGyro(_port) |
| Set sensor as HiTechnic Magnet. | |
| #define | ReadSensorHTMagnet(_p, _offset, _val) __ReadSensorHTGyro(_p, _offset, _val) |
| Read HiTechnic Magnet sensor. | |
| #define | SetSensorHTEOPD(_port, _bStd) __SetSensorHTEOPD(_port, _bStd) |
| Set sensor as HiTechnic EOPD. | |
| #define | ReadSensorHTEOPD(_port, _val) __ReadSensorHTEOPD(_port, _val) |
| Read HiTechnic EOPD sensor. | |
| #define | ReadSensorHTTouchMultiplexer(_p, _t1, _t2, _t3, _t4) __ReadSensorHTTouchMultiplexer(_p, _t1, _t2, _t3, _t4) |
| Read HiTechnic touch multiplexer. | |
| #define | HTPowerFunctionCommand(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result) |
| HTPowerFunctionCommand function. | |
| #define | HTIRTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, FALSE, _result) |
| HTIRTrain function. | |
| #define | HTPFComboDirect(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result) |
| HTPFComboDirect function. | |
| #define | HTPFComboPWM(_port, _channel, _outa, _outb, _result) __HTPFComboPWM(_port, _channel, _outa, _outb, _result) |
| HTPFComboPWM function. | |
| #define | HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) __HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) |
| HTPFRawOutput function. | |
| #define | HTPFRepeat(_port, _count, _delay, _result) __HTPFRepeatLastCommand(_port, _count, _delay, _result) |
| HTPFRepeat function. | |
| #define | HTPFSingleOutputCST(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, TRUE, _result) |
| HTPFSingleOutputCST function. | |
| #define | HTPFSingleOutputPWM(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, FALSE, _result) |
| HTPFSingleOutputPWM function. | |
| #define | HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) __HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) |
| HTPFSinglePin function. | |
| #define | HTPFTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, TRUE, _result) |
| HTPFTrain function. | |
| #define | HTRCXSetIRLinkPort(_port) __HTRCXSetIRLinkPort(_port) |
| HTRCXSetIRLinkPort function. | |
| #define | HTRCXBatteryLevel(_result) __HTRCXBatteryLevel(_result) |
| HTRCXBatteryLevel function. | |
| #define | HTRCXPoll(_src, _value, _result) __HTRCXPoll(_src, _value, _result) |
| HTRCXPoll function Send the Poll command to an RCX to read a signed 2-byte value at the specified source and value combination. | |
| #define | HTRCXPollMemory(_memaddress, _result) __HTRCXPollMemory(_memaddress, _result) |
| HTRCXPollMemory function. | |
| #define | HTRCXAddToDatalog(_src, _value) __HTRCXAddToDatalog(_src, _value) |
| HTRCXAddToDatalog function. | |
| #define | HTRCXClearAllEvents() __HTRCXOpNoArgs(RCX_ClearAllEventsOp) |
| HTRCXClearAllEvents function. | |
| #define | HTRCXClearCounter(_counter) __HTRCXClearCounter(_counter) |
| HTRCXClearCounter function. | |
| #define | HTRCXClearMsg() __HTRCXOpNoArgs(RCX_ClearMsgOp) |
| HTRCXClearMsg function. | |
| #define | HTRCXClearSensor(_port) __HTRCXClearSensor(_port) |
| HTRCXClearSensor function. | |
| #define | HTRCXClearSound() __HTRCXOpNoArgs(RCX_ClearSoundOp) |
| HTRCXClearSound function. | |
| #define | HTRCXClearTimer(_timer) __HTRCXClearTimer(_timer) |
| HTRCXClearTimer function. | |
| #define | HTRCXCreateDatalog(_size) __HTRCXCreateDatalog(_size) |
| HTRCXCreateDatalog function. | |
| #define | HTRCXDecCounter(_counter) __HTRCXDecCounter(_counter) |
| HTRCXDecCounter function. | |
| #define | HTRCXDeleteSub(_s) __HTRCXDeleteSub(_s) |
| HTRCXDeleteSub function. | |
| #define | HTRCXDeleteSubs() __HTRCXOpNoArgs(RCX_DeleteSubsOp) |
| HTRCXDeleteSubs function. | |
| #define | HTRCXDeleteTask(_t) __HTRCXDeleteTask(_t) |
| HTRCXDeleteTask function. | |
| #define | HTRCXDeleteTasks() __HTRCXOpNoArgs(RCX_DeleteTasksOp) |
| HTRCXDeleteTasks function. | |
| #define | HTRCXDisableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_OFF) |
| HTRCXDisableOutput function. | |
| #define | HTRCXEnableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_ON) |
| HTRCXEnableOutput function. | |
| #define | HTRCXEvent(_src, _value) __HTRCXEvent(_src, _value) |
| HTRCXEvent function. | |
| #define | HTRCXFloat(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_FLOAT) |
| HTRCXFloat function. | |
| #define | HTRCXFwd(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_FWD) |
| HTRCXFwd function. | |
| #define | HTRCXIncCounter(_counter) __HTRCXIncCounter(_counter) |
| HTRCXIncCounter function. | |
| #define | HTRCXInvertOutput(_outputs) __HTRCXSetGlobalDirection(_outputs, RCX_OUT_REV) |
| HTRCXInvertOutput function. | |
| #define | HTRCXMuteSound() __HTRCXOpNoArgs(RCX_MuteSoundOp) |
| HTRCXMuteSound function. | |
| #define | HTRCXObvertOutput(_outputs) __HTRCXSetGlobalDirection(_outputs, RCX_OUT_FWD) |
| HTRCXObvertOutput function. | |
| #define | HTRCXOff(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_OFF) |
| HTRCXOff function. | |
| #define | HTRCXOn(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_ON) |
| HTRCXOn function. | |
| #define | HTRCXOnFor(_outputs, _ms) __HTRCXOnFor(_outputs, _ms) |
| HTRCXOnFor function. | |
| #define | HTRCXOnFwd(_outputs) __HTRCXOnFwd(_outputs) |
| HTRCXOnFwd function. | |
| #define | HTRCXOnRev(_outputs) __HTRCXOnRev(_outputs) |
| HTRCXOnRev function. | |
| #define | HTRCXPBTurnOff() __HTRCXOpNoArgs(RCX_PBTurnOffOp) |
| HTRCXPBTurnOff function. | |
| #define | HTRCXPing() __HTRCXOpNoArgs(RCX_PingOp) |
| HTRCXPing function. | |
| #define | HTRCXPlaySound(_snd) __HTRCXPlaySound(_snd) |
| HTRCXPlaySound function. | |
| #define | HTRCXPlayTone(_freq, _duration) __HTRCXPlayTone(_freq, _duration) |
| HTRCXPlayTone function. | |
| #define | HTRCXPlayToneVar(_varnum, _duration) __HTRCXPlayToneVar(_varnum, _duration) |
| HTRCXPlayToneVar function. | |
| #define | HTRCXRemote(_cmd) __HTRCXRemote(_cmd) |
| HTRCXRemote function. | |
| #define | HTRCXRev(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_REV) |
| HTRCXRev function. | |
| #define | HTRCXSelectDisplay(_src, _value) __HTRCXSelectDisplay(_src, _value) |
| HTRCXSelectDisplay function. | |
| #define | HTRCXSelectProgram(_prog) __HTRCXSelectProgram(_prog) |
| HTRCXSelectProgram function. | |
| #define | HTRCXSendSerial(_first, _count) __HTRCXSendSerial(_first, _count) |
| HTRCXSendSerial function. | |
| #define | HTRCXSetDirection(_outputs, _dir) __HTRCXSetDirection(_outputs, _dir) |
| HTRCXSetDirection function. | |
| #define | HTRCXSetEvent(_evt, _src, _type) __HTRCXSetEvent(_evt, _src, _type) |
| HTRCXSetEvent function. | |
| #define | HTRCXSetGlobalDirection(_outputs, _dir) __HTRCXSetGlobalDirection(_outputs, _dir) |
| HTRCXSetGlobalDirection function. | |
| #define | HTRCXSetGlobalOutput(_outputs, _mode) __HTRCXSetGlobalOutput(_outputs, _mode) |
| HTRCXSetGlobalOutput function. | |
| #define | HTRCXSetMaxPower(_outputs, _pwrsrc, _pwrval) __HTRCXSetMaxPower(_outputs, _pwrsrc, _pwrval) |
| HTRCXSetMaxPower function. | |
| #define | HTRCXSetMessage(_msg) __HTRCXSetMessage(_msg) |
| HTRCXSetMessage function. | |
| #define | HTRCXSetOutput(_outputs, _mode) __HTRCXSetOutput(_outputs, _mode) |
| HTRCXSetOutput function. | |
| #define | HTRCXSetPower(_outputs, _pwrsrc, _pwrval) __HTRCXSetPower(_outputs, _pwrsrc, _pwrval) |
| HTRCXSetPower function. | |
| #define | HTRCXSetPriority(_p) __HTRCXSetPriority(_p) |
| HTRCXSetPriority function. | |
| #define | HTRCXSetSensorMode(_port, _mode) __HTRCXSetSensorMode(_port, _mode) |
| HTRCXSetSensorMode function. | |
| #define | HTRCXSetSensorType(_port, _type) __HTRCXSetSensorType(_port, _type) |
| HTRCXSetSensorType function. | |
| #define | HTRCXSetSleepTime(_t) __HTRCXSetSleepTime(_t) |
| HTRCXSetSleepTime function. | |
| #define | HTRCXSetTxPower(_pwr) __HTRCXSetTxPower(_pwr) |
| HTRCXSetTxPower function. | |
| #define | HTRCXSetWatch(_hours, _minutes) __HTRCXSetWatch(_hours, _minutes) |
| HTRCXSetWatch function. | |
| #define | HTRCXStartTask(_t) __HTRCXStartTask(_t) |
| HTRCXStartTask function. | |
| #define | HTRCXStopAllTasks() __HTRCXOpNoArgs(RCX_StopAllTasksOp) |
| HTRCXStopAllTasks function. | |
| #define | HTRCXStopTask(_t) __HTRCXStopTask(_t) |
| HTRCXStopTask function. | |
| #define | HTRCXToggle(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_TOGGLE) |
| HTRCXToggle function. | |
| #define | HTRCXUnmuteSound() __HTRCXOpNoArgs(RCX_UnmuteSoundOp) |
| HTRCXUnmuteSound function. | |
| #define | HTScoutCalibrateSensor() __HTRCXOpNoArgs(RCX_LSCalibrateOp) |
| HTScoutCalibrateSensor function. | |
| #define | HTScoutMuteSound() __HTScoutMuteSound() |
| HTScoutMuteSound function. | |
| #define | HTScoutSelectSounds(_grp) __HTScoutSelectSounds(_grp) |
| HTScoutSelectSounds function. | |
| #define | HTScoutSendVLL(_src, _value) __HTScoutSendVLL(_src, _value) |
| HTScoutSendVLL function. | |
| #define | HTScoutSetEventFeedback(_src, _value) __HTScoutSetEventFeedback(_src, _value) |
| HTScoutSetEventFeedback function. | |
| #define | HTScoutSetLight(_x) __HTScoutSetLight(_x) |
| HTScoutSetLight function. | |
| #define | HTScoutSetScoutMode(_mode) __HTScoutSetScoutMode(_mode) |
| HTScoutSetScoutMode function. | |
| #define | HTScoutSetSensorClickTime(_src, _value) __HTScoutSetSensorClickTime(_src, _value) |
| HTScoutSetSensorClickTime function. | |
| #define | HTScoutSetSensorHysteresis(_src, _value) __HTScoutSetSensorHysteresis(_src, _value) |
| HTScoutSetSensorHysteresis function. | |
| #define | HTScoutSetSensorLowerLimit(_src, _value) __HTScoutSetSensorLowerLimit(_src, _value) |
| HTScoutSetSensorLowerLimit function. | |
| #define | HTScoutSetSensorUpperLimit(_src, _value) __HTScoutSetSensorUpperLimit(_src, _value) |
| HTScoutSetSensorUpperLimit function. | |
| #define | HTScoutUnmuteSound() __HTScoutUnmuteSound() |
| HTScoutUnmuteSound function. | |
| #define | ReadSensorHTCompass(_port, _value) __ReadSensorHTCompass(_port, _value) |
| Read HiTechnic compass. | |
| #define | ReadSensorHTColorNum(_port, _value) __ReadSensorHTColorNum(_port, _value) |
| Read HiTechnic color sensor color number. | |
| #define | ReadSensorHTIRSeekerDir(_port, _value) __ReadSensorHTIRSeekerDir(_port, _value) |
| Read HiTechnic IRSeeker direction. | |
| #define | ReadSensorHTIRSeeker2Addr(_port, _reg, _value) __ReadSensorHTIRSeeker2Addr(_port, _reg, _value) |
| Read HiTechnic IRSeeker2 register. | |
| #define | ReadSensorHTAccel(_port, _x, _y, _z, _result) __ReadSensorHTAccel(_port, _x, _y, _z, _result) |
| Read HiTechnic acceleration values. | |
| #define | ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result) __ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result) |
| Read HiTechnic Color values. | |
| #define | ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result) __ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result) |
| Read HiTechnic Color raw values. | |
| #define | ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result) |
| Read HiTechnic Color normalized values. | |
| #define | ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) |
| Read HiTechnic IRSeeker values. | |
| #define | ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result) __ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result) |
| Read HiTechnic IRSeeker2 DC values. | |
| #define | ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) |
| Read HiTechnic IRSeeker2 AC values. | |
| #define | SetHTIRSeeker2Mode(_port, _mode, _result) __SetHTIRSeeker2Mode(_port, _mode, _result) |
| Set HiTechnic IRSeeker2 mode. | |
| #define | SetHTColor2Mode(_port, _mode, _result) __SetHTColor2Mode(_port, _mode, _result) |
| Set HiTechnic Color2 mode. | |
| #define | ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result) __ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result) |
| Read HiTechnic Color2 active values. | |
| #define | ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result) |
| Read HiTechnic Color2 normalized active values. | |
| #define | ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result) __ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result) |
| Read HiTechnic Color2 raw values. | |
| #define | ReadSensorHTIRReceiver(_port, _pfdata, _result) __ReadSensorHTIRReceiver(_port, _pfdata, _result) |
| Read HiTechnic IRReceiver Power Function bytes. | |
| #define | ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, _result) __ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, _result) |
| Read HiTechnic IRReceiver Power Function value. | |
| #define | ResetSensorHTAngle(_port, _mode, _result) __ResetSensorHTAngle(_port, _mode, _result) |
| Reset HiTechnic Angle sensor. | |
| #define | ReadSensorHTAngle(_port, _Angle, _AccAngle, _RPM, _result) __ReadSensorHTAngle(_port, _Angle, _AccAngle, _RPM, _result) |
| Read HiTechnic Angle sensor values. | |
| #define | ResetHTBarometricCalibration(_port, _result) __ResetHTBarometricCalibration(_port, _result) |
| Reset HiTechnic Barometric sensor calibration. | |
| #define | SetHTBarometricCalibration(_port, _cal, _result) __SetHTBarometricCalibration(_port, _cal, _result) |
| Set HiTechnic Barometric sensor calibration. | |
| #define | ReadSensorHTBarometric(_port, _temp, _press, _result) __ReadSensorHTBarometric(_port, _temp, _press, _result) |
| Read HiTechnic Barometric sensor values. | |
| #define | ReadSensorHTProtoAnalog(_port, _input, _value, _result) __ReadSensorHTProtoAnalog(_port, HT_ADDR_PROTOBOARD, _input, _value, _result) |
| Read HiTechnic Prototype board analog input value. | |
| #define | ReadSensorHTProtoAllAnalog(_port, _a0, _a1, _a2, _a3, _a4, _result) __ReadSensorHTProtoAllAnalog(_port, _a0, _a1, _a2, _a3, _a4, _result) |
| Read all HiTechnic Prototype board analog input values. | |
| #define | SetSensorHTProtoDigitalControl(_port, _value, _result) __SetSensorHTProtoDigitalControl(_port, HT_ADDR_PROTOBOARD, _value, _result) |
| Set HiTechnic Prototype board digital pin direction. | |
| #define | ReadSensorHTProtoDigitalControl(_port, _out, _result) __MSReadValue(_port, HT_ADDR_PROTOBOARD, HTPROTO_REG_DCTRL, 1, _out, _result) |
| Read HiTechnic Prototype board digital pin control value. | |
| #define | SetSensorHTProtoDigital(_port, _value, _result) __SetSensorHTProtoDigital(_port, HT_ADDR_PROTOBOARD, _value, _result) |
| Set HiTechnic Prototype board digital output values. | |
| #define | ReadSensorHTProtoDigital(_port, _value, _result) __ReadSensorHTProtoDigital(_port, HT_ADDR_PROTOBOARD, _value, _result) |
| Read HiTechnic Prototype board digital input values. | |
| #define | ReadSensorHTSuperProAnalog(_port, _input, _value, _result) __ReadSensorHTProtoAnalog(_port, HT_ADDR_SUPERPRO, _input, _value, _result) |
| Read HiTechnic SuperPro board analog input value. | |
| #define | ReadSensorHTSuperProAllAnalog(_port, _a0, _a1, _a2, _a3, _result) __ReadSensorHTSuperProAllAnalog(_port, _a0, _a1, _a2, _a3, _result) |
| Read all HiTechnic SuperPro board analog input values. | |
| #define | SetSensorHTSuperProDigitalControl(_port, _value, _result) __SetSensorHTProtoDigitalControl(_port, HT_ADDR_SUPERPRO, _value, _result) |
| Control HiTechnic SuperPro board digital pin direction. | |
| #define | ReadSensorHTSuperProDigitalControl(_port, _out, _result) __MSReadValue(_port, HT_ADDR_SUPERPRO, HTSPRO_REG_DCTRL, 1, _out, _result) |
| Read HiTechnic SuperPro digital control value. | |
| #define | SetSensorHTSuperProDigital(_port, _value, _result) __SetSensorHTProtoDigital(_port, HT_ADDR_SUPERPRO, _value, _result) |
| Set HiTechnic SuperPro board digital output values. | |
| #define | ReadSensorHTSuperProDigital(_port, _value, _result) __ReadSensorHTProtoDigital(_port, HT_ADDR_SUPERPRO, _value, _result) |
| Read HiTechnic SuperPro board digital input values. | |
| #define | SetSensorHTSuperProAnalogOut(_port, _dac, _mode, _freq, _volt, _result) __SetSensorHTSuperProAnalogOut(_port, _dac, _mode, _freq, _volt, _result) |
| Set HiTechnic SuperPro board analog output parameters. | |
| #define | ReadSensorHTSuperProAnalogOut(_port, _dac, _mode, _freq, _volt, _result) __ReadSensorHTSuperProAnalogOut(_port, _dac, _mode, _freq, _volt, _result) |
| Read HiTechnic SuperPro board analog output parameters. | |
| #define | SetSensorHTSuperProLED(_port, _value, _result) __SetSensorHTSuperProLED(_port, _value, _result) |
| Set HiTechnic SuperPro LED value. | |
| #define | ReadSensorHTSuperProLED(_port, _out, _result) __MSReadValue(_port, HT_ADDR_SUPERPRO, HTSPRO_REG_LED, 1, _out, _result) |
| Read HiTechnic SuperPro LED value. | |
| #define | SetSensorHTSuperProStrobe(_port, _value, _result) __SetSensorHTSuperProStrobe(_port, _value, _result) |
| Set HiTechnic SuperPro strobe value. | |
| #define | ReadSensorHTSuperProStrobe(_port, _out, _result) __MSReadValue(_port, HT_ADDR_SUPERPRO, HTSPRO_REG_STROBE, 1, _out, _result) |
| Read HiTechnic SuperPro strobe value. | |
| #define | SetSensorHTSuperProProgramControl(_port, _value, _result) __SetSensorHTSuperProProgramControl(_port, _value, _result) |
| Set HiTechnic SuperPro program control value. | |
| #define | ReadSensorHTSuperProProgramControl(_port, _out, _result) __MSReadValue(_port, HT_ADDR_SUPERPRO, HTSPRO_REG_CTRL, 1, _out, _result) |
| Read HiTechnic SuperPro program control value. | |
Functions for accessing and modifying HiTechnic devices.
1.6.2