Interface for the onboard temperature sensor. More...
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "adc.h"
Go to the source code of this file.
Defines | |
#define | MEASURE_ADC2 1 |
Initialize the temperature sensor ADC2=EXT_SUPL_SIG can also be measured and sent to the 1284p along with the temperature reading. | |
Definition of Port Pin for temp sensor. | |
#define | TEMP_PORT PORTF |
#define | TEMP_DDR DDRF |
#define | TEMP_PIN PINF |
#define | TEMP_BIT_IN 4 |
#define | TEMP_BIT_PWR 6 |
Enumerations | |
enum | temp_unit_t |
Type used with temp_get() to select temperature unit. | |
Functions | |
int | temp_init (void) |
This will initialize the digital IO and adc channel for temperture readings. | |
void | temp_deinit (void) |
This will disable temperature readings by reseting the initialed flag. | |
int16_t | temp_get (temp_unit_t unit) |
This will turn on the adc channel for reading the temp sensor. |
Interface for the onboard temperature sensor.
Definition in file temp.h.