Go to the source code of this file.
Functions | |
result_t | BSP_OpenTemperatureSensor (void) |
Opens temperature sensor. | |
result_t | BSP_CloseTemperatureSensor (void) |
Closes the temperature sensor. | |
result_t | BSP_ReadTemperatureData (void(*f)(bool result, int16_t data)) |
Reads data from the temperature sensor. | |
result_t | BSP_OpenLightSensor (void) |
Opens the light sensor. | |
result_t | BSP_CloseLightSensor (void) |
Closes the light sensor. | |
result_t | BSP_ReadLightData (void(*f)(bool result, int16_t data)) |
Reads data from the light sensor. | |
result_t | BSP_OpenBatterySensor (void) |
Opens the battery sensor. | |
result_t | BSP_CloseBatterySensor (void) |
Closes the battery sensor. | |
result_t | BSP_ReadBatteryData (void(*callback)(uint8_t data)) |
Reads data from battery sensor. |
Copyright (c) 2008 , Atmel Corporation. All rights reserved. Licensed under Atmel's Limited License Agreement (BitCloudTM).
Definition in file sensors.h.
result_t BSP_OpenTemperatureSensor | ( | void | ) |
Opens temperature sensor.
result_t BSP_CloseTemperatureSensor | ( | void | ) |
Closes the temperature sensor.
result_t BSP_ReadTemperatureData | ( | void(*)(bool result, int16_t data) | f | ) |
Reads data from the temperature sensor.
[in] | f | - callback. result - the result of the requested operation. true - operation finished successfully, false - some error has occured. data - sensor data. |
result_t BSP_OpenLightSensor | ( | void | ) |
Opens the light sensor.
result_t BSP_CloseLightSensor | ( | void | ) |
Closes the light sensor.
result_t BSP_ReadLightData | ( | void(*)(bool result, int16_t data) | f | ) |
Reads data from the light sensor.
[in] | f | - callback. result - the result of the requested operation. true - operation finished successfully, false - some error has occured. data - sensor data. |
result_t BSP_OpenBatterySensor | ( | void | ) |
Opens the battery sensor.
result_t BSP_CloseBatterySensor | ( | void | ) |
Closes the battery sensor.
result_t BSP_ReadBatteryData | ( | void(*)(uint8_t data) | callback | ) |
Reads data from battery sensor.
[in] | callback | - callback function. data - sensor data. Can use (4ul * data * 125ul * 3ul) / (1024ul * 100ul) formula to count battery data in Volts (for avr). |