*
*************************************************************************** */
+#ifndef EXTDRV_VEML6070_H
+#define EXTDRV_VEML6070_H
#include "lib/stdint.h"
#define VEML6070_ENABLE (0)
-/* Check the sensor presence, return 1 if foundZ */
+/* Check the sensor presence, return 1 if found */
int veml6070_probe_sensor(struct veml6070_sensor_config* conf);
* Performs a read of the uv data from the sensor.
* 'uv_raw': integer addresses for conversion result.
* Return value(s):
- * Upon successfull completion, returns 0 and the luminosity read is placed in the
- * provided integer(s). On error, returns a negative integer equivalent to errors from
- * glibc.
- * -EBADFD : I2C not initialized
- * -EBUSY : Device or ressource Busy or Arbitration lost
- * -EINVAL : Invalid argument (buf)
- * -ENODEV : No such device
- * -EREMOTEIO : Device did not acknowledge : Any device present ?
- * -EIO : Bad one: Illegal start or stop, or illegal state in i2c state machine
+ * Upon successfull completion, returns 0 and the value read is placed in the provided integer.
+ * On error, returns a negative integer equivalent to errors from glibc.
*/
int veml6070_sensor_read(struct veml6070_sensor_config* conf, uint16_t* uv_raw);
* Return value:
* Upon successfull completion, returns 0. On error, returns a negative integer
* equivalent to errors from glibc.
- * -EBADFD : I2C not initialized
- * -EBUSY : Device or ressource Busy or Arbitration lost
- * -EINVAL : Invalid argument (buf)
- * -ENODEV : No such device
- * -EREMOTEIO : Device did not acknowledge : Any device present ?
- * -EIO : Bad one: Illegal start or stop, or illegal state in i2c state machine
*/
int veml6070_configure(struct veml6070_sensor_config* conf);
+#endif /* EXTDRV_VEML6070_H */
+