61 #ifndef OPT_3001_SENSOR_H_ 62 #define OPT_3001_SENSOR_H_ 68 #if BOARD_SENSORS_ENABLE 69 #if (TI_I2C_CONF_ENABLE == 0) || (TI_I2C_CONF_I2C0_ENABLE == 0) 70 #error "The OPT-3001 requires the I2C driver (TI_I2C_CONF_ENABLE = 1)" 74 #define OPT_3001_READING_ERROR -1 77 OPT_3001_STATUS_DISABLED,
78 OPT_3001_STATUS_STANDBY,
79 OPT_3001_STATUS_BOOTING,
80 OPT_3001_STATUS_ACTIVE,
81 OPT_3001_STATUS_DATA_READY,
82 OPT_3001_STATUS_I2C_ERROR,
85 extern const struct sensors_sensor opt_3001_sensor;
Header file with definitions related to the sensors on the Sensortags.