Microchip® Advanced Software Framework

sam0_sensors.h File Reference

Data Structures

struct  sensor_result_tag
 

Typedefs

typedef enum sensor_error_tag sensor_error_t
 
typedef struct sensor_result_tag sensor_result_t
 
typedef enum sensor_type_tag sensor_type_t
 

Enumerations

enum  sensor_error_tag {
  SUCCESS,
  ADC_OVERRUN,
  DEVICE_ON_FIRE
}
 
enum  sensor_type_tag {
  TEMPERATURE,
  IO_SUPPLY,
  ANALOG_PIN
}
 

Functions

int8_t get_sensor_value (sensor_type_t sensor, sensor_result_t *res)
 

Enumerator
SUCCESS 
ADC_OVERRUN 
DEVICE_ON_FIRE 
Enumerator
TEMPERATURE 
IO_SUPPLY 
ANALOG_PIN 

int8_t get_sensor_value ( sensor_type_t  sensor,
sensor_result_t res 
)