Contiki 2.5
Macros | Enumerations | Functions
temp.h File Reference

 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.

Macros

#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. More...
 
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. More...
 
void temp_deinit (void)
 This will disable temperature readings by reseting the initialed flag. More...
 
int16_t temp_get (temp_unit_t unit)
 Read current temperature. More...
 

Detailed Description

 Interface for the onboard temperature sensor.
Author
Mike Vidales mavid.nosp@m.a404.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file temp.h.