1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/rpl_udp/demo.h

65 lines
1.2 KiB
C
Raw Normal View History

2014-01-06 10:10:47 +01:00
#ifndef DEMO_H
#define DEMO_H
#include "kernel.h"
#define APP_VERSION "1.1"
#define RADIO_CHANNEL (10)
#define MONITOR_STACK_SIZE (KERNEL_CONF_STACKSIZE_MAIN)
#define RCV_BUFFER_SIZE (32)
/* RPL shell command handlers */
/**
* @brief Shell command to initializes RPL and Destiny
*
* @param[in] str Shell input
*/
void rpl_udp_init(char *str);
2014-01-06 10:10:47 +01:00
/**
* @brief Shell command to set node's ID
*
* @param[in] str Shell input
*/
void rpl_udp_set_id(char *id);
2014-01-06 10:10:47 +01:00
/**
* @brief Loops through the routing table
*
* @param[in] unused Guess what
*/
void rpl_udp_loop(char *unused);
2014-01-06 10:10:47 +01:00
/**
* @brief Shows the routing table
*
* @param[in] unused Guess what
*/
void rpl_udp_table(char *unused);
2014-01-06 10:10:47 +01:00
/**
* @brief Shows the dodag
2014-01-06 10:10:47 +01:00
*
* @param[in] unused Guess what
*/
void rpl_udp_dodag(char *unused);
2014-01-06 10:10:47 +01:00
/* UDP shell command handlers */
void udp_server(char *unused);
void udp_send(char *str);
/* helper command handlers */
void rpl_udp_ip(char *unused);
2014-01-06 10:10:47 +01:00
void rpl_udp_ignore(char *addr);
2014-01-06 10:10:47 +01:00
/* monitoring thread */
void rpl_udp_monitor(void);
2014-01-06 10:10:47 +01:00
extern radio_address_t id;
extern ipv6_addr_t std_addr;
extern char addr_str[IPV6_MAX_ADDR_STR_LEN];
#endif /* DEMO_H */