OpenWSN Firmware
idmanager.h
Go to the documentation of this file.
1 #ifndef __IDMANAGER_H
2 #define __IDMANAGER_H
3 
11 #include "openwsn.h"
12 
13 //=========================== define ==========================================
14 
15 #define ACTION_YES 'Y'
16 #define ACTION_NO 'N'
17 #define ACTION_TOGGLE 'T'
18 
19 //=========================== typedef =========================================
20 
21 typedef struct {
22  bool isDAGroot;
23  bool isBridge;
29 
30 //=========================== module variables ================================
31 
32 typedef struct {
33  bool isDAGroot;
34  bool isBridge;
40 
41 //=========================== prototypes ======================================
42 
43 void idmanager_init(void);
44 bool idmanager_getIsDAGroot(void);
45 void idmanager_setIsDAGroot(bool newRole);
46 bool idmanager_getIsBridge(void);
47 void idmanager_setIsBridge(bool newRole);
48 open_addr_t* idmanager_getMyID(uint8_t type);
53 
54 bool debugPrint_id(void);
55 
56 
62 #endif
bool isDAGroot
Definition: idmanager.h:33
open_addr_t my64bID
Definition: idmanager.h:25
void idmanager_setIsDAGroot(bool newRole)
Definition: idmanager.c:41
bool idmanager_isMyAddress(open_addr_t *addr)
Definition: idmanager.c:125
bool idmanager_getIsBridge()
Definition: idmanager.c:49
open_addr_t * idmanager_getMyID(uint8_t type)
Definition: idmanager.c:66
void idmanager_init()
Definition: idmanager.c:16
owerror_t idmanager_setMyID(open_addr_t *newID)
Definition: idmanager.c:96
open_addr_t my64bID
Definition: idmanager.h:36
uint8_t owerror_t
Definition: openwsn.h:265
open_addr_t my16bID
Definition: idmanager.h:24
bool isBridge
Definition: idmanager.h:34
void idmanager_triggerAboutRoot()
Definition: idmanager.c:166
void idmanager_setIsBridge(bool newRole)
Definition: idmanager.c:58
bool debugPrint_id()
Trigger this module to print status information, over serial.
Definition: idmanager.c:234
open_addr_t myPrefix
Definition: idmanager.h:27
bool isDAGroot
Definition: idmanager.h:22
Definition: idmanager.h:21
Definition: idmanager.h:32
Definition: openwsn.h:276
open_addr_t myPANID
Definition: idmanager.h:26
open_addr_t myPrefix
Definition: idmanager.h:38
void idmanager_triggerAboutBridge()
Definition: idmanager.c:196
bool isBridge
Definition: idmanager.h:23
open_addr_t my16bID
Definition: idmanager.h:35
bool idmanager_getIsDAGroot()
Definition: idmanager.c:31
open_addr_t myPANID
Definition: idmanager.h:37