Revision 7d9678db inc/urt_message.h
| inc/urt_message.h | ||
|---|---|---|
| 22 | 22 |
#ifndef URTWARE_MESSAGE_H |
| 23 | 23 |
#define URTWARE_MESSAGE_H |
| 24 | 24 |
|
| 25 |
#include <urtware.h> |
|
| 26 |
|
|
| 25 | 27 |
/******************************************************************************/ |
| 26 | 28 |
/* CONSTANTS */ |
| 27 | 29 |
/******************************************************************************/ |
| ... | ... | |
| 38 | 40 |
/* DATA STRUCTURES AND TYPES */ |
| 39 | 41 |
/******************************************************************************/ |
| 40 | 42 |
|
| 43 |
/** |
|
| 44 |
* @brief message |
|
| 45 |
*/ |
|
| 46 |
typedef struct urt_message |
|
| 47 |
{
|
|
| 48 |
urt_message_t* next; |
|
| 49 |
void* payload; |
|
| 50 |
urt_osTime_t originTime; |
|
| 51 |
unsigned int numHrtConsumersLeft; |
|
| 52 |
#if (URT_CFG_PUBSUB_PROFILING) |
|
| 53 |
unsigned int numConsumersLeft; |
|
| 54 |
#endif /* URT_CFG_PUBSUB_PROFILING */ |
|
| 55 |
}urt_message_t; |
|
| 56 |
|
|
| 41 | 57 |
/******************************************************************************/ |
| 42 | 58 |
/* MACROS */ |
| 43 | 59 |
/******************************************************************************/ |
| ... | ... | |
| 46 | 62 |
/* EXTERN DECLARATIONS */ |
| 47 | 63 |
/******************************************************************************/ |
| 48 | 64 |
|
| 65 |
#if defined(__cplusplus) |
|
| 66 |
extern "C" {
|
|
| 67 |
#endif /* defined(__cplusplus) */ |
|
| 68 |
|
|
| 69 |
void urtMessageInit(urt_message_t* message, void* payload); |
|
| 70 |
#if defined(__cplusplus) |
|
| 71 |
} |
|
| 72 |
#endif /* defined(__cplusplus) */ |
|
| 73 |
|
|
| 49 | 74 |
/******************************************************************************/ |
| 50 | 75 |
/* INLINE FUNCTIONS */ |
| 51 | 76 |
/******************************************************************************/ |
Also available in: Unified diff