HALFRED  0.4.0
hal_osnotifier.h
Go to the documentation of this file.
1 
10 #ifndef HAL_OS_NOTIFIER_H
11 #define HAL_OS_NOTIFIER_H
12 
13 #include <stdint.h>
14 #include <hal_os.h>
15 
65 
66 
68 typedef struct OSNotifierDesc* OSNotifier;
69 
70 
71 // -----------------------------------------------------------------------------
72 // PUBLIC API
73 // -----------------------------------------------------------------------------
74 
81 OSNotifier OSNTF_Create(int count);
82 
88 void OSNTF_Destroy(OSNotifier notifier);
89 
95 OSNotifier OSNTF_Lock(int count);
96 
102 void OSNTF_Unlock(OSNotifier notifier);
103 
112 int OSNTF_Tick(OSNotifier notifier, int count);
113 
122 int OSNTF_Wait(OSNotifier notifier, OSTime timeout);
123 
131 #endif /* HAL_OS_NOTIFIER_H */
OSNotifier OSNTF_Create(int count)
int OSNTF_Wait(OSNotifier notifier, OSTime timeout)
OSNotifier OSNTF_Lock(int count)
int OSNTF_Tick(OSNotifier notifier, int count)
void OSNTF_Destroy(OSNotifier notifier)
struct OSNotifierDesc * OSNotifier
Definition: hal_osnotifier.h:68
Operating system (OS) API.
void OSNTF_Unlock(OSNotifier notifier)