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

DSR source file. More...

#include <stdint.h>
#include <string.h>
#include "ScatterWeb.System.h"
#include "ScatterWeb.CC1020.h"
#include "_dsr.h"

Go to the source code of this file.

Functions

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.
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_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 Decides_data (netaddr_t dest, uint8_t *data, uint8_t feld[])
 function to decides
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


Detailed Description

DSR source file.

Version:
1.0

Definition in file _dsr.c.


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

////////////////////////////////////////////////////////////////////////////// ///////////////////////////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

////////////////////////////////////////////////////////////////////////////// ////////////////////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

////////////////////////////////////////////////////////////////////////////// ///////////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

////////////////////////////////////////////////////////////////////////////// /////////////////////////send Reply/////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 233 of file _dsr.c.

bool Net_sendRequest ( netaddr_t  dest  ) 

function to restart Route Discovery Process

////////////////////////////////////////////////////////////////////////////// /////////////////////Send Request///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Definition at line 105 of file _dsr.c.

bool Route_discovery ( netaddr_t  dest  ) 

function to call the Funktion Net_sendRequest

////////////////////////////////////////////////////////////////////////////// ///////////////////////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