Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

Termadds


Data Structures

struct  _TERMDCB
struct  _TERMICB

Functions

int TermInit (NUTDEVICE *dev)
void SetReadTempInterval (NUTDEVICE *dev, u_int seconds)
float ReadTemp (NUTDEVICE *dev)

Variables

NUTDEVICE devTerm0

Detailed Description

This module manege Thermometer hardware.

Function Documentation

float ReadTemp NUTDEVICE   dev
 

Read temperature from driver buffor.

Parameters:
dev  - pointer to driver control structure.
Returns:
temperature.
Examples:
adds/app/term.

void SetReadTempInterval NUTDEVICE   dev,
u_int    seconds
 

Set interval time between measures of temerature.

Parameters:
dev  - pointer to driver control structure.
seconds  - number of seconds between reads temerature from sensor.
Examples:
adds/app/term.

int TermInit NUTDEVICE   dev
 

Init driver. Call it first.

Parameters:
dev  - pointer to driver control structure.
Returns:
0 - on success -1 on failed.


Variable Documentation

NUTDEVICE devTerm0
 

Driver control structure.


Generated on Thu Jan 30 22:30:57 2003 for EduNet by doxygen1.2.18