| ||||||
Files | |
| file | hitechnic-irseeker-v1.h |
HiTechnic IR Seeker driver. | |
Defines | |
| #define | HTIRS_I2C_ADDR 0x02 |
| #define | HTIRS_OFFSET 0x42 |
| #define | HTIRS_DIR 0x00 |
| #define | HTIRS_SSTR1 0x01 |
| #define | HTIRS_SSTR2 0x02 |
| #define | HTIRS_SSTR3 0x03 |
| #define | HTIRS_SSTR4 0x04 |
| #define | HTIRS_SSTR5 0x05 |
Functions | |
| int | HTIRSreadDir (tSensors link) |
| bool | HTIRSreadAllStrength (tSensors link, int &dcS1, int &dcS2, int &dcS3, int &dcS4, int &dcS5) |
| int | HTIRSreadDir (tMUXSensor muxsensor) |
| bool | HTIRSreadAllStrength (tMUXSensor muxsensor, int &dcS1, int &dcS2, int &dcS3, int &dcS4, int &dcS5) |
Variables | |
| tConfigParams | HTIRS_config = {HTSMUX_CHAN_I2C, 7, 0x02, 0x42} |
| tByteArray | HTIRS_I2CRequest |
| tByteArray | HTIRS_I2CReply |
HiTechnic Color IR Seeker V1
| #define HTIRS_DIR 0x00 |
Address of Direction data
Definition at line 57 of file hitechnic-irseeker-v1.h.
| #define HTIRS_I2C_ADDR 0x02 |
IR Seeker I2C device address
Definition at line 55 of file hitechnic-irseeker-v1.h.
| #define HTIRS_OFFSET 0x42 |
Offset for data registers
Definition at line 56 of file hitechnic-irseeker-v1.h.
| #define HTIRS_SSTR1 0x01 |
Address of Sensor 0 signal strength
Definition at line 58 of file hitechnic-irseeker-v1.h.
| #define HTIRS_SSTR2 0x02 |
Address of Sensor 1 signal strength
Definition at line 59 of file hitechnic-irseeker-v1.h.
| #define HTIRS_SSTR3 0x03 |
Address of Sensor 2 signal strength
Definition at line 60 of file hitechnic-irseeker-v1.h.
| #define HTIRS_SSTR4 0x04 |
Address of Sensor 3 signal strength
Definition at line 61 of file hitechnic-irseeker-v1.h.
| #define HTIRS_SSTR5 0x05 |
Address of Sensor 4 signal strength
Definition at line 62 of file hitechnic-irseeker-v1.h.
| bool HTIRSreadAllStrength | ( | tSensors | link, |
| int & | dcS1, | ||
| int & | dcS2, | ||
| int & | dcS3, | ||
| int & | dcS4, | ||
| int & | dcS5 | ||
| ) |
Read the value of the all of the internal sensors.
| link | the HTIRS port number |
| dcS1 | data from internal sensor nr 1 |
| dcS2 | data from internal sensor nr 2 |
| dcS3 | data from internal sensor nr 3 |
| dcS4 | data from internal sensor nr 4 |
| dcS5 | data from internal sensor nr 5 |
Definition at line 126 of file hitechnic-irseeker-v1.h.
| bool HTIRSreadAllStrength | ( | tMUXSensor | muxsensor, |
| int & | dcS1, | ||
| int & | dcS2, | ||
| int & | dcS3, | ||
| int & | dcS4, | ||
| int & | dcS5 | ||
| ) |
Read the value of the all of the internal sensors.
| muxsensor | the SMUX sensor port number |
| dcS1 | data from internal sensor nr 1 |
| dcS2 | data from internal sensor nr 2 |
| dcS3 | data from internal sensor nr 3 |
| dcS4 | data from internal sensor nr 4 |
| dcS5 | data from internal sensor nr 5 |
Definition at line 157 of file hitechnic-irseeker-v1.h.
| int HTIRSreadDir | ( | tMUXSensor | muxsensor ) |
Read the value of the Direction data register and return it.
| muxsensor | the SMUX sensor port number |
Definition at line 102 of file hitechnic-irseeker-v1.h.
| int HTIRSreadDir | ( | tSensors | link ) |
Read the value of the Direction data register and return it.
| link | the HTIRS port number |
Definition at line 82 of file hitechnic-irseeker-v1.h.
| tConfigParams HTIRS_config = {HTSMUX_CHAN_I2C, 7, 0x02, 0x42} |
Array to hold SMUX config data for sensor
Definition at line 71 of file hitechnic-irseeker-v1.h.
Array to hold I2C reply data
Definition at line 75 of file hitechnic-irseeker-v1.h.
Array to hold I2C command data
Definition at line 74 of file hitechnic-irseeker-v1.h.
1.7.2