C:/sensor/Applications/[EMPTY]/src/_dsr.h File Reference

DSR header file. More...

#include <ScatterWeb.Net.h>

Go to the source code of this file.

Defines

#define DSR_REQUEST_PACKET   USERDEFINED_PACKET+2
 DSR Route Request Packet Type.
#define DSR_REPLY_PACKET   USERDEFINED_PACKET+3
 DSR Route Response Packet Type.
#define DATA_PACKET   USERDEFINED_PACKET+4
 Data Packet Type.
#define ACK_PACKET   USERDEFINED_PACKET+5
 ACK Packet Type.
#define MY_BROADCAST   0x1E
 local broadcast address
#define ARRAYLAENGE   10

Functions

bool Net_sendRequest (netaddr_t dest)
 function to restart Route Discovery Process
bool handle_Request (netaddr_t dest, uint8_t counter, uint8_t feld[])
 function to send the Request away
bool Net_sendReply (netaddr_t dest, uint8_t counter, uint8_t feld[])
 function to send the Reply
void handle_Reply (netaddr_t dest, uint8_t counter, uint8_t feld[])
 function to send the Reply further
bool Route_discovery (netaddr_t dest)
 function to call the Funktion Net_sendRequest
bool Net_sendDecides (netaddr_t dest, uint8_t counter, uint8_t feld[])
 function to decides if node is destination than Reply else Request
bool Net_sendData ()
 function to send the Data
bool handle_Data (netaddr_t dest, uint8_t *data, uint8_t feld[])
 function to send the Data away
bool Net_sendAck (uint8_t feld[])
 function to send the Ack
bool Decides_data (netaddr_t dest, uint8_t *data, uint8_t feld[])
 function to decides
void Net_sendArgsInit_1 (netpacket_send_args_t *args)
enum netaddr_compareresult Net_compareAddress_1 (const netaddr_t(*const adr), const bool directConnection)
 Compare network address with this node's address.

Variables

uint8_t help_array []
 help-array for the storage of the list with knot from dsr-reply were found
netaddr_t copy_dest
 help-variable for the storage of the Destination


Detailed Description

DSR header file.

Version:
1.0

Definition in file _dsr.h.


Function Documentation

bool Decides_data ( netaddr_t  dest,
uint8_t *  data,
uint8_t  feld[] 
)

function to decides

Parameters:
[in] dest Destination address
[in] *data pointer for data
[in] feld[] list for nodes

Definition at line 393 of file _dsr.c.

bool handle_Data ( netaddr_t  dest,
uint8_t *  data,
uint8_t  feld[] 
)

function to send the Data away

Parameters:
[in] dest Destination address
[in] *data pointer for data
[in] feld[] list for nodes

Definition at line 469 of file _dsr.c.

void handle_Reply ( netaddr_t  dest,
uint8_t  counter,
uint8_t  feld[] 
)

function to send the Reply further

Parameters:
[in] dest Destination address
[in] counter counter for nodes
[in] feld[] list for nodes
////////////////////////////////////////////////////////////////////////////// ///////////////////////////send Reply further///////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 302 of file _dsr.c.

bool handle_Request ( netaddr_t  dest,
uint8_t  counter,
uint8_t  feld[] 
)

function to send the Request away

Parameters:
[in] dest Destination address
[in] counter counter for nodes
[in] feld[] list for nodes
////////////////////////////////////////////////////////////////////////////// ////////////////////Send Request further////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 153 of file _dsr.c.

enum netaddr_compareresult Net_compareAddress_1 ( const netaddr_t *  adr,
const bool  directConnection 
)

Compare network address with this node's address.

Parameters:
[in] adr Address to compare with config_t:id
[in] directConnection Indicates that the address request comes from a directly connected source (e.g. serial cable)
Returns:
one of enum netaddr_compareresult In addition the node can be addressed by network and or node id set to zero if the addressing party is directly connected. This will be the case if a directly conntected PC want's to address this node without knowing it's address.

Definition at line 30 of file _dsr.c.

bool Net_sendAck ( uint8_t  feld[]  ) 

function to send the Ack

Parameters:
[in] feld[] list for nodes

Definition at line 527 of file _dsr.c.

bool Net_sendDecides ( netaddr_t  dest,
uint8_t  counter,
uint8_t  feld[] 
)

function to decides if node is destination than Reply else Request

Parameters:
[in] dest Destination address
[in] counter counter for nodes
[in] feld[] list for nodes
////////////////////////////////////////////////////////////////////////////// ///////////To decisions request further send or reply///////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 67 of file _dsr.c.

bool Net_sendReply ( netaddr_t  dest,
uint8_t  counter,
uint8_t  feld[] 
)

function to send the Reply

Parameters:
[in] dest Destination address
[in] counter counter for nodes
[in] feld[] list for nodes
////////////////////////////////////////////////////////////////////////////// /////////////////////////send Reply/////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 233 of file _dsr.c.

bool Net_sendRequest ( netaddr_t  dest  ) 

function to restart Route Discovery Process

Parameters:
[in] dest Destination address
////////////////////////////////////////////////////////////////////////////// /////////////////////Send Request///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 105 of file _dsr.c.

bool Route_discovery ( netaddr_t  dest  ) 

function to call the Funktion Net_sendRequest

Parameters:
[in] dest Destination address
////////////////////////////////////////////////////////////////////////////// ///////////////////////Route-Discovery//////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 56 of file _dsr.c.


Generated on Sun Feb 22 03:12:47 2009 for Imlementation from DSR by  doxygen 1.5.8