Microchip® Advanced Software Framework

sam0_sensors.c File Reference
#include <stdint.h>
#include <inttypes.h>
#include "asf.h"
#include "sam0_sensors.h"

Macros

#define ADC_USE_STANDBY   (0)
 
#define WAIT_ADC_SYNC()   while(ADC->STATUS.reg & ADC_STATUS_SYNCBUSY)
 

Functions

static uint16_t adc_get_value (void)
 
static int8_t get_analog_pin (sensor_result_t *res)
 
static int8_t get_io_supply (sensor_result_t *res)
 
int8_t get_sensor_value (sensor_type_t sensor, sensor_result_t *res)
 
static int8_t get_temperature (sensor_result_t *res)
 
static void samr21_adc_init (sensor_type_t sensor)
 

#define ADC_USE_STANDBY   (0)
#define WAIT_ADC_SYNC ( )    while(ADC->STATUS.reg & ADC_STATUS_SYNCBUSY)

Referenced by adc_get_value(), and samr21_adc_init().

int8_t get_sensor_value ( sensor_type_t  sensor,
sensor_result_t res 
)
static void samr21_adc_init ( sensor_type_t  sensor)
static