forked from Imagelibrary/rtems
* 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.
147 lines
2.3 KiB
C
147 lines
2.3 KiB
C
/*
|
|
* COPYRIGHT (c) 1989-1999.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef __ITRON_EVENTFLAGS_h_
|
|
#define __ITRON_EVENTFLAGS_h_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Create Eventflags (cre_flg) Structure
|
|
*/
|
|
|
|
typedef struct t_cflg {
|
|
VP exinf; /* extended information */
|
|
ATR flgatr; /* eventflag attribute */
|
|
UINT iflgptn; /* initial eventflag */
|
|
/* additional information may be included depending on the implementation */
|
|
} T_CFLG;
|
|
|
|
/*
|
|
* flgatr
|
|
*/
|
|
|
|
#define TA_WSGL 0x00 /* multiple tasks are not allowed to wait (Wait
|
|
Single Task) */
|
|
#define TA_WMUL 0x08 /* multiple tasks are allowed to wait (Wait
|
|
Multiple Task) */
|
|
|
|
/*
|
|
* wfmode
|
|
*/
|
|
|
|
#define TWF_ANDW 0x00 /* AND wait */
|
|
#define TWF_ORW 0x02 /* OR wait */
|
|
#define TWF_CLR 0x01 /* clear specification */
|
|
|
|
/*
|
|
* Reference Eventflags (ref_flg) Structure
|
|
*/
|
|
|
|
typedef struct t_rflg {
|
|
VP exinf; /* extended information */
|
|
BOOL_ID wtsk; /* indicates whether or not there is a waiting task */
|
|
UINT flgptn; /* eventflag bit pattern */
|
|
/* additional information may be included depending on the implementation */
|
|
} T_RFLG;
|
|
|
|
/*
|
|
* Eventflag Functions
|
|
*/
|
|
|
|
/*
|
|
* cre_flg - Create Eventflag
|
|
*/
|
|
|
|
ER cre_flg(
|
|
ID flgid,
|
|
T_CFLG *pk_cflg
|
|
);
|
|
|
|
/*
|
|
* del_flg - Delete Eventflag
|
|
*/
|
|
|
|
ER del_flg(
|
|
ID flgid
|
|
);
|
|
|
|
/*
|
|
* set_flg - Set Eventflag
|
|
*/
|
|
|
|
ER set_flg(
|
|
ID flgid,
|
|
UINT setptn
|
|
);
|
|
|
|
/*
|
|
* clr_flg - Clear Eventflag
|
|
*/
|
|
|
|
ER clr_flg(
|
|
ID flgid,
|
|
UINT clrptn
|
|
);
|
|
|
|
/*
|
|
* wai_flg - Wait on Eventflag
|
|
*/
|
|
|
|
ER wai_flg(
|
|
UINT *p_flgptn,
|
|
ID flgid,
|
|
UINT waiptn,
|
|
UINT wfmode
|
|
);
|
|
|
|
/*
|
|
* pol_flg - Wait for Eventflag(Polling)
|
|
*/
|
|
|
|
ER pol_flg(
|
|
UINT *p_flgptn,
|
|
ID flgid,
|
|
UINT waiptn,
|
|
UINT wfmode
|
|
);
|
|
|
|
/*
|
|
* twai_flg - Wait on Eventflag with Timeout
|
|
*/
|
|
|
|
ER twai_flg(
|
|
UINT *p_flgptn,
|
|
ID flgid,
|
|
UINT waiptn,
|
|
UINT wfmode,
|
|
TMO tmout
|
|
);
|
|
|
|
/*
|
|
* ref_flg - Reference Eventflag Status
|
|
*/
|
|
|
|
ER ref_flg(
|
|
T_RFLG *pk_rflg,
|
|
ID flgid
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
/* end of include file */
|
|
|