Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > BestEffortMessaging
comparison LossyCom.h @ 4:7ba5a3a6102d
System with multiple point 2 point trigger working
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 13 Mar 2012 18:22:12 +0100 |
| parents | 5c0fb7c519d7 |
| children | 95a03e431480 |
comparison
equal
deleted
inserted
replaced
| 3:c984b44d4e79 | 4:48a3d6cb24a8 |
|---|---|
| 56 | 56 |
| 57 /* | 57 /* |
| 58 * Central communication structure. | 58 * Central communication structure. |
| 59 */ | 59 */ |
| 60 typedef struct{ | 60 typedef struct{ |
| 61 volatile uint16_t triggerCounter; | 61 volatile uint16_t BroadcastTriggerCounter; |
| 62 uint16_t numEndpoints; | 62 volatile uint16_t* p2pTriggerCounter; |
| 63 lossyCom__msg_t* outboxArray; | 63 uint16_t numEndpoints; |
| 64 lossyCom__msg_t* outboxArray; | |
| 64 }lossyCom__exchange_t; | 65 }lossyCom__exchange_t; |
| 65 | 66 |
| 66 /* | 67 /* |
| 67 * Endpoint data structure. | 68 * Endpoint data structure. |
| 68 */ | 69 */ |
| 69 typedef struct { | 70 typedef struct { |
| 70 uint16_t localTriggerCopy; | 71 uint16_t lastReceivedBroadcastTrigger; |
| 72 uint16_t lastReceivedp2pTrigger; | |
| 71 lossyCom__endpointID_t endpointID; | 73 lossyCom__endpointID_t endpointID; |
| 72 lossyCom__exchange_t* centralExchange; | 74 lossyCom__exchange_t* centralExchange; |
| 73 lossyCom__msgHandler msgHandler; | 75 lossyCom__msgHandler msgHandler; |
| 74 void* msgHandlerData; | 76 void* msgHandlerData; |
| 75 } lossyCom__endpoint_t; | 77 } lossyCom__endpoint_t; |
| 76 | 78 |
| 77 /*********************************** | 79 /*********************************** |
| 78 * Function Declarations | 80 * Function Declarations |
| 79 ***********************************/ | 81 ***********************************/ |
