Choco OS  V.0.16.9.0
Join to the chocolate world
oc_signal.h
Go to the documentation of this file.
1 
28 #ifndef INC_KERNEL_OC_SIGNAL_H_
29 #define INC_KERNEL_OC_SIGNAL_H_
30 
31 #include <stdbool.h>
32 #include <oc_time.h>
33 #include <oc_memory.h>
34 
40 #define _________________________________________TYPES_SECTION______________________________________________________________________________
41 
44 typedef struct Signal_t * oC_Signal_t;
45 
46 typedef bool (*oC_Signal_Slot_t)( void * Context );
47 
48 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
49 
56 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
57 
60 extern oC_Signal_t oC_Signal_New ( void );
61 extern bool oC_Signal_Delete ( oC_Signal_t * Signal );
62 extern bool oC_Signal_IsCorrect ( oC_Signal_t Signal );
63 extern bool oC_Signal_Connect ( oC_Signal_t Signal , oC_Signal_Slot_t Slot , void * Context , oC_MemorySize_t StackSize );
64 extern bool oC_Signal_Disconnect ( oC_Signal_t Signal , oC_Signal_Slot_t Slot );
65 extern bool oC_Signal_Emit ( oC_Signal_t Signal , bool * outTaskWoken );
66 extern bool oC_Signal_WaitFor ( oC_Signal_t Signal , oC_Time_t Timeout );
67 
68 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
69 
71 #endif /* INC_KERNEL_OC_SIGNAL_H_ */
The file with interface for the GPIO driver.
The library with time definitions.