btnut/extras/teco_ssmall/tc74.h File Reference


Detailed Description

Temperature Sensor interface for Teco Particles SSMALL board.

Author:
Jonas Wolf

#include <sys/types.h>

Functions

int tc_init (void)
int tc_read (signed int *temp)


Function Documentation

int tc_init ( void   ) 

Initialise the temperature sensor.

TwInit() has to be called before.

Returns:
0 on success, error code otherwise

int tc_read ( signed int *  temp  ) 

Read a sample from the temperature sensor.

TwInit() has to be called before.

Parameters:
temp (pointer to write temperature sample to)
Returns:
0 on success, error code otherwise


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1