ubinos
signal.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Sung Ho Park
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef UBIK_SIGNAL_H_
8 #define UBIK_SIGNAL_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
30 #include <ubinos_config.h>
31 #include <ubinos/type.h>
32 
33 #include "task.h"
34 
36 typedef struct __signal_tip_t
37 {
38  unsigned int type :8;
39  unsigned int valid :1;
40  unsigned int reserved :7;
41  unsigned int reserved2 :16;
43 
46 
57 int signal_create(signal_pt * signal_p);
58 
72 int signal_create_ext(signal_pt * signal_p, unsigned int option);
73 
85 int signal_delete(signal_pt * signal_p);
86 
99 int signal_wait(signal_pt signal);
100 
116 int signal_wait_timed(signal_pt signal, unsigned int tick);
117 
133 int signal_wait_timedms(signal_pt signal, unsigned int timems);
134 
147 int signal_send(signal_pt signal, int sigtype);
148 
161 int signal_broadcast(signal_pt signal, int sigtype);
162 
177 
178 #ifdef __cplusplus
179 }
180 #endif
181 
182 #endif /* UBIK_SIGNAL_H_ */
int signal_wait_timed(signal_pt signal, unsigned int tick)
int signal_create_ext(signal_pt *signal_p, unsigned int option)
_signal_tip_t * signal_pt
Definition: signal.h:45
int signal_send(signal_pt signal, int sigtype)
int signal_delete(signal_pt *signal_p)
int signal_wait_timedms(signal_pt signal, unsigned int timems)
struct __signal_tip_t _signal_tip_t
int signal_wait(signal_pt signal)
int signal_broadcast(signal_pt signal, int sigtype)
int signal_setsender(signal_pt signal, task_pt task)
int signal_create(signal_pt *signal_p)
Definition: signal.h:37
unsigned int reserved
Definition: signal.h:40
unsigned int reserved2
Definition: signal.h:41
unsigned int valid
Definition: signal.h:39
unsigned int type
Definition: signal.h:38
Definition: task.h:342
ubik task API
ubinos basic data type