source: rtems/cpukit/itron/include/itronsys/eventflags.h @ c4a3f1e

Last change on this file since c4a3f1e was c4a3f1e, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:46:52

2003-09-04 Joel Sherrill <joel@…>

  • include/itron.h, include/itronsys/eventflags.h, include/itronsys/fmempool.h, include/itronsys/intr.h, include/itronsys/mbox.h, include/itronsys/msgbuffer.h, include/itronsys/network.h, include/itronsys/port.h, include/itronsys/semaphore.h, include/itronsys/status.h, include/itronsys/sysmgmt.h, include/itronsys/task.h, include/itronsys/time.h, include/itronsys/types.h, include/itronsys/vmempool.h, include/rtems/itron/config.h, include/rtems/itron/eventflags.h, include/rtems/itron/fmempool.h, include/rtems/itron/intr.h, include/rtems/itron/itronapi.h, include/rtems/itron/mbox.h, include/rtems/itron/msgbuffer.h, include/rtems/itron/network.h, include/rtems/itron/object.h, include/rtems/itron/port.h, include/rtems/itron/semaphore.h, include/rtems/itron/sysmgmt.h, include/rtems/itron/task.h, include/rtems/itron/time.h, include/rtems/itron/vmempool.h, inline/rtems/itron/eventflags.inl, inline/rtems/itron/fmempool.inl, inline/rtems/itron/intr.inl, inline/rtems/itron/mbox.inl, inline/rtems/itron/msgbuffer.inl, inline/rtems/itron/network.inl, inline/rtems/itron/port.inl, inline/rtems/itron/semaphore.inl, inline/rtems/itron/sysmgmt.inl, inline/rtems/itron/task.inl, inline/rtems/itron/time.inl, inline/rtems/itron/vmempool.inl, macros/rtems/itron/eventflags.inl, macros/rtems/itron/fmempool.inl, macros/rtems/itron/intr.inl, macros/rtems/itron/mbox.inl, macros/rtems/itron/msgbuffer.inl, macros/rtems/itron/network.inl, macros/rtems/itron/port.inl, macros/rtems/itron/semaphore.inl, macros/rtems/itron/sysmgmt.inl, macros/rtems/itron/task.inl, macros/rtems/itron/time.inl, macros/rtems/itron/vmempool.inl, src/can_wup.c, src/chg_pri.c, src/cre_mbf.c, src/cre_mbx.c, src/cre_sem.c, src/cre_tsk.c, src/del_mbf.c, src/del_mbx.c, src/del_sem.c, src/del_tsk.c, src/dis_dsp.c, src/ena_dsp.c, src/eventflags.c, src/exd_tsk.c, src/ext_tsk.c, src/fmempool.c, src/frsm_tsk.c, src/get_tid.c, src/itronintr.c, src/itronsem.c, src/itrontime.c, src/mbox.c, src/mboxtranslatereturncode.c, src/msgbuffer.c, src/msgbuffertranslatereturncode.c, src/network.c, src/port.c, src/prcv_mbf.c, src/prcv_mbx.c, src/preq_sem.c, src/psnd_mbf.c, src/rcv_mbf.c, src/rcv_mbx.c, src/ref_mbf.c, src/ref_mbx.c, src/ref_sem.c, src/ref_tsk.c, src/rel_wai.c, src/rot_rdq.c, src/rsm_tsk.c, src/sig_sem.c, src/slp_tsk.c, src/snd_mbf.c, src/snd_mbx.c, src/sta_tsk.c, src/sus_tsk.c, src/sysmgmt.c, src/task.c, src/ter_tsk.c, src/trcv_mbf.c, src/trcv_mbx.c, src/tslp_tsk.c, src/tsnd_mbf.c, src/twai_sem.c, src/vmempool.c, src/wai_sem.c, src/wup_tsk.c: URL for license changed.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifndef __ITRON_EVENTFLAGS_h_
13#define __ITRON_EVENTFLAGS_h_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*
20 *  Create Eventflags (cre_flg) Structure
21 */
22
23typedef struct t_cflg {
24  VP     exinf;     /* extended information */
25  ATR    flgatr;    /* eventflag attribute */
26  UINT   iflgptn;   /* initial eventflag */
27  /* additional information may be included depending on the implementation */
28} T_CFLG;
29
30/*
31 *  flgatr
32 */
33
34#define TA_WSGL   0x00   /* multiple tasks are not allowed to wait (Wait
35                                Single Task) */
36#define TA_WMUL   0x08   /* multiple tasks are allowed to wait (Wait
37                                Multiple Task) */
38
39/*
40 *  wfmode
41 */
42 
43#define TWF_ANDW   0x00   /* AND wait */
44#define TWF_ORW    0x02   /* OR wait */
45#define TWF_CLR    0x01   /* clear specification */
46
47/*
48 *  Reference Eventflags (ref_flg) Structure
49 */
50
51typedef struct t_rflg {
52  VP        exinf;      /* extended information */
53  BOOL_ID   wtsk;       /* indicates whether or not there is a waiting task */
54  UINT      flgptn;     /* eventflag bit pattern */
55  /* additional information may be included depending on the implementation */
56} T_RFLG;
57
58/*
59 *  Eventflag Functions
60 */
61
62/*
63 *  cre_flg - Create Eventflag
64 */
65
66ER cre_flg(
67  ID flgid,
68  T_CFLG *pk_cflg
69);
70
71/*
72 *  del_flg - Delete Eventflag
73 */
74
75ER del_flg(
76  ID flgid
77);
78
79/*
80 *  set_flg - Set Eventflag
81 */
82
83ER set_flg(
84  ID flgid,
85  UINT setptn
86);
87
88/*
89 *  clr_flg - Clear Eventflag
90 */
91
92ER clr_flg(
93  ID flgid,
94  UINT clrptn
95);
96
97/*
98 *  wai_flg - Wait on Eventflag
99 */
100
101ER wai_flg(
102  UINT *p_flgptn,
103  ID flgid,
104  UINT waiptn,
105  UINT wfmode
106);
107
108/*
109 *  pol_flg - Wait for Eventflag(Polling)
110 */
111
112ER pol_flg(
113  UINT *p_flgptn,
114  ID flgid,
115  UINT waiptn,
116  UINT wfmode
117);
118
119/*
120 *  twai_flg - Wait on Eventflag with Timeout
121 */
122
123ER twai_flg(
124  UINT *p_flgptn,
125  ID flgid,
126  UINT waiptn,
127  UINT wfmode,
128  TMO tmout
129);
130
131/*
132 *  ref_flg - Reference Eventflag Status
133 */
134
135ER ref_flg(
136  T_RFLG *pk_rflg,
137  ID flgid
138);
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif
145/* end of include file */
146
Note: See TracBrowser for help on using the repository browser.