| ||||||
Files | |
| file | hitechnic-eopd.h |
HiTechnic EOPD Sensor driver. | |
Functions | |
| int | HTEOPDreadRaw (tSensors link) |
| int | HTEOPDreadProcessed (tSensors link) |
| void | HTEOPDsetShortRange (tSensors link) |
| void | HTEOPDsetLongRange (tSensors link) |
| int | HTEOPDreadRaw (tMUXSensor muxsensor) |
| int | HTEOPDreadProcessed (tMUXSensor muxsensor) |
| void | HTEOPDsetShortRange (tMUXSensor muxsensor) |
| void | HTEOPDsetLongRange (tMUXSensor muxsensor) |
Variables | |
| TSensorTypes | HTEOPDLRType = sensorAnalogActive |
| TSensorTypes | HTEOPDSRType = sensorAnalogInactive |
HiTechnic EOPD Sensor
| int HTEOPDreadProcessed | ( | tSensors | link ) |
Get the processed value from the sensor. This is obtained by using sqrt(raw value * 10)
| link | the HTEOPD port number |
Definition at line 95 of file hitechnic-eopd.h.
| int HTEOPDreadProcessed | ( | tMUXSensor | muxsensor ) |
Get the processed value from the sensor. This is obtained by using sqrt(raw value * 10)
| muxsensor | the SMUX sensor port number |
Definition at line 107 of file hitechnic-eopd.h.
| int HTEOPDreadRaw | ( | tSensors | link ) |
Get the raw value from the sensor
| link | the HTEOPD port number |
Definition at line 73 of file hitechnic-eopd.h.
| int HTEOPDreadRaw | ( | tMUXSensor | muxsensor ) |
Get the raw value from the sensor
| muxsensor | the SMUX sensor port number |
Definition at line 84 of file hitechnic-eopd.h.
| void HTEOPDsetLongRange | ( | tSensors | link ) |
Set the range of the sensor to long range, this is done by configuring the sensor as sensorLightActive and setting it to modeRaw
| link | the HTEOPD port number |
Definition at line 142 of file hitechnic-eopd.h.
| void HTEOPDsetLongRange | ( | tMUXSensor | muxsensor ) |
Set the range of the sensor to long range, this is done by setting dig0 high (1).
| muxsensor | the SMUX sensor port number |
Definition at line 153 of file hitechnic-eopd.h.
| void HTEOPDsetShortRange | ( | tSensors | link ) |
Set the range of the sensor to short range, this is done by configuring the sensor as sensorRawValue
| link | the HTEOPD port number |
Definition at line 119 of file hitechnic-eopd.h.
| void HTEOPDsetShortRange | ( | tMUXSensor | muxsensor ) |
Set the range of the sensor to short range, this is done by switching off dig0
| muxsensor | the SMUX sensor port number |
Definition at line 130 of file hitechnic-eopd.h.
| TSensorTypes HTEOPDLRType = sensorAnalogActive |
Definition at line 53 of file hitechnic-eopd.h.
| TSensorTypes HTEOPDSRType = sensorAnalogInactive |
Definition at line 54 of file hitechnic-eopd.h.
1.7.2