ronelib
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs
BroadcastMinMax.h
Go to the documentation of this file.
1 
9 #ifndef BROADCASTMINMAX_H_
10 #define BROADCASTMINMAX_H_
11 
16 typedef struct BroadcastMinMaxMessage {
17  boolean hasBeenSet;
18  NbrData val;
19  NbrData valLocal;
21 
22 
31 void broadcastMinMaxCreate(BroadcastMinMaxMessage* msgPtr, char* name, uint8 val);
32 
33 
41 void broadcastMinMaxSet(BroadcastMinMaxMessage* msgPtr, uint8 val);
42 
43 
51 void broadcastMinMaxSetMaxPlusOne(BroadcastMinMaxMessage* msgPtr, NbrList* nbrListPtr);
52 
53 
61 uint8 broadcastMinMaxUpdate(BroadcastMinMaxMessage* msgPtr, NbrList* nbrListPtr);
62 
63 
70 uint8 broadcastMinMaxGetValLocal(BroadcastMinMaxMessage* msgPtr);
71 
72 
79 uint8 broadcastMinMaxGetVal(BroadcastMinMaxMessage* msgPtr);
80 
81 #endif /* BROADCASTMINMAX_H_ */