SZS ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
Report

Files

file  rep.c
 Report implementation.
 
file  rep.h
 Report interface.
 

Macros

#define REP_SENSORS_REPORT_PERIOD   7
 

Functions

void rep_init ()
 Report initialization. More...
 
UInt16 rep_proccess ()
 Report process. More...
 
void rep_hello ()
 Hello message. More...
 

Detailed Description

Macro Definition Documentation

#define REP_SENSORS_REPORT_PERIOD   7

Sensor report period (seconds)

Definition at line 49 of file rep.h.

Referenced by rep_proccess().

Function Documentation

void rep_hello ( )

Hello message.

This function sends a hello message to UART. It have delay loops.

Definition at line 120 of file rep.c.

References uart_endFrame(), uart_snd(), uart_startFrame(), and uart_txBufFree().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void rep_init ( )

Report initialization.

This function initializes the report variables.

Definition at line 78 of file rep.c.

Referenced by main().

+ Here is the caller graph for this function:

UInt16 rep_proccess ( )

Report process.

This function processes the tasks of the report.

Returns
Time to run again (ms); 0 means 65536ms

Definition at line 89 of file rep.c.

References adc_getLux(), adc_getTemp(), adc_getVolt(), nwk_getPIeeeAddress(), nwk_isBound(), nwk_isSink(), rep_endFrame(), REP_SENSORS_REPORT_PERIOD, rep_sndUInt16(), rep_sndUInt32(), rep_sndUInt48sc(), rep_sndUInt64(), and rep_startFrame().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: