#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 |
Definition in file _dsr.h.
bool Decides_data | ( | netaddr_t | dest, | |
uint8_t * | data, | |||
uint8_t | feld[] | |||
) |
bool handle_Data | ( | netaddr_t | dest, | |
uint8_t * | data, | |||
uint8_t | feld[] | |||
) |
void handle_Reply | ( | netaddr_t | dest, | |
uint8_t | counter, | |||
uint8_t | feld[] | |||
) |
function to send the Reply further
[in] | dest | Destination address |
[in] | counter | counter for nodes |
[in] | feld[] | list for nodes |
bool handle_Request | ( | netaddr_t | dest, | |
uint8_t | counter, | |||
uint8_t | feld[] | |||
) |
function to send the Request away
[in] | dest | Destination address |
[in] | counter | counter for nodes |
[in] | feld[] | list for nodes |
enum netaddr_compareresult Net_compareAddress_1 | ( | const netaddr_t * | adr, | |
const bool | directConnection | |||
) |
Compare network address with this node's address.
[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) |
bool Net_sendAck | ( | uint8_t | feld[] | ) |
bool Net_sendDecides | ( | netaddr_t | dest, | |
uint8_t | counter, | |||
uint8_t | feld[] | |||
) |
function to decides if node is destination than Reply else Request
[in] | dest | Destination address |
[in] | counter | counter for nodes |
[in] | feld[] | list for nodes |
bool Net_sendReply | ( | netaddr_t | dest, | |
uint8_t | counter, | |||
uint8_t | feld[] | |||
) |
function to send the Reply
[in] | dest | Destination address |
[in] | counter | counter for nodes |
[in] | feld[] | list for nodes |
bool Net_sendRequest | ( | netaddr_t | dest | ) |
function to restart Route Discovery Process
[in] | dest | Destination address |
bool Route_discovery | ( | netaddr_t | dest | ) |
function to call the Funktion Net_sendRequest
[in] | dest | Destination address |