base/include/rtai_bits.h File Reference

#include <rtai_types.h>
#include <rtai_lxrt.h>

Include dependency graph for rtai_bits.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  rt_bits_struct

Defines

#define RT_BITS_MAGIC   0x9ac24448
#define ALL_SET   0
#define ANY_SET   1
#define ALL_CLR   2
#define ANY_CLR   3
#define ALL_SET_AND_ANY_SET   4
#define ALL_SET_AND_ALL_CLR   5
#define ALL_SET_AND_ANY_CLR   6
#define ANY_SET_AND_ALL_CLR   7
#define ANY_SET_AND_ANY_CLR   8
#define ALL_CLR_AND_ANY_CLR   9
#define ALL_SET_OR_ANY_SET   10
#define ALL_SET_OR_ALL_CLR   11
#define ALL_SET_OR_ANY_CLR   12
#define ANY_SET_OR_ALL_CLR   13
#define ANY_SET_OR_ANY_CLR   14
#define ALL_CLR_OR_ANY_CLR   15
#define SET_BITS   0
#define CLR_BITS   1
#define SET_CLR_BITS   2
#define NOP_BITS   3
#define BITS_ERR   0xFfff
#define BITS_TIMOUT   0xFffe
#define BITSIDX   0

Typedefs

typedef rt_bits_struct BITS

Functions

rt_bits_structrt_bits_init (unsigned long name, unsigned long mask)
int rt_bits_delete (struct rt_bits_struct *bits)
unsigned long rt_get_bits (struct rt_bits_struct *bits)
int rt_bits_reset (struct rt_bits_struct *bits, unsigned long mask)
unsigned long rt_bits_signal (struct rt_bits_struct *bits, int setfun, unsigned long masks)
int rt_bits_wait (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, unsigned long *resulting_mask)
int rt_bits_wait_if (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, unsigned long *resulting_mask)
int rt_bits_wait_until (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, RTIME time, unsigned long *resulting_mask)
int rt_bits_wait_timed (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, RTIME delay, unsigned long *resulting_mask)


Define Documentation

#define ALL_CLR   2
 

Definition at line 28 of file rtai_bits.h.

#define ALL_CLR_AND_ANY_CLR   9
 

Definition at line 36 of file rtai_bits.h.

#define ALL_CLR_OR_ANY_CLR   15
 

Definition at line 43 of file rtai_bits.h.

#define ALL_SET   0
 

Definition at line 26 of file rtai_bits.h.

#define ALL_SET_AND_ALL_CLR   5
 

Definition at line 32 of file rtai_bits.h.

#define ALL_SET_AND_ANY_CLR   6
 

Definition at line 33 of file rtai_bits.h.

#define ALL_SET_AND_ANY_SET   4
 

Definition at line 31 of file rtai_bits.h.

#define ALL_SET_OR_ALL_CLR   11
 

Definition at line 39 of file rtai_bits.h.

#define ALL_SET_OR_ANY_CLR   12
 

Definition at line 40 of file rtai_bits.h.

#define ALL_SET_OR_ANY_SET   10
 

Definition at line 38 of file rtai_bits.h.

#define ANY_CLR   3
 

Definition at line 29 of file rtai_bits.h.

#define ANY_SET   1
 

Definition at line 27 of file rtai_bits.h.

#define ANY_SET_AND_ALL_CLR   7
 

Definition at line 34 of file rtai_bits.h.

#define ANY_SET_AND_ANY_CLR   8
 

Definition at line 35 of file rtai_bits.h.

#define ANY_SET_OR_ALL_CLR   13
 

Definition at line 41 of file rtai_bits.h.

#define ANY_SET_OR_ANY_CLR   14
 

Definition at line 42 of file rtai_bits.h.

#define BITS_ERR   0xFfff
 

Definition at line 50 of file rtai_bits.h.

Referenced by _rt_bits_wait(), _rt_bits_wait_if(), _rt_bits_wait_until(), rt_bits_delete(), rt_bits_reset(), and rt_bits_signal().

#define BITS_TIMOUT   0xFffe
 

Definition at line 51 of file rtai_bits.h.

Referenced by _rt_bits_wait_until().

#define BITSIDX   0
 

Definition at line 123 of file rtai_bits.h.

Referenced by rt_bits_delete(), rt_bits_init(), rt_bits_reset(), rt_bits_signal(), rt_bits_wait(), rt_bits_wait_if(), rt_bits_wait_timed(), rt_bits_wait_until(), and rt_get_bits().

#define CLR_BITS   1
 

Definition at line 46 of file rtai_bits.h.

#define NOP_BITS   3
 

Definition at line 48 of file rtai_bits.h.

#define RT_BITS_MAGIC   0x9ac24448
 

Definition at line 24 of file rtai_bits.h.

Referenced by _rt_bits_wait(), _rt_bits_wait_if(), _rt_bits_wait_until(), rt_bits_delete(), rt_bits_init(), rt_bits_reset(), and rt_bits_signal().

#define SET_BITS   0
 

Definition at line 45 of file rtai_bits.h.

#define SET_CLR_BITS   2
 

Definition at line 47 of file rtai_bits.h.


Typedef Documentation

typedef struct rt_bits_struct BITS
 

Referenced by _rt_bits_wait(), _rt_bits_wait_if(), _rt_bits_wait_timed(), _rt_bits_wait_until(), all_clr(), all_clr_and_any_clr(), all_clr_or_any_clr(), all_set(), all_set_and_all_clr(), all_set_and_any_clr(), all_set_and_any_set(), all_set_or_all_clr(), all_set_or_any_clr(), all_set_or_any_set(), any_clr(), any_set(), any_set_and_all_clr(), any_set_and_any_clr(), any_set_or_all_clr(), any_set_or_any_clr(), clr_bits(), nop_fun(), rt_bits_delete(), rt_bits_delete_u(), rt_bits_init(), rt_bits_init_u(), rt_bits_reset(), rt_bits_signal(), rt_get_bits(), rt_named_bits_delete(), rt_named_bits_init(), set_bits(), and set_clr_bits().


Function Documentation

int rt_bits_delete struct rt_bits_struct bits  )  [inline]
 

Definition at line 135 of file rtai_bits.h.

References BITS_DELETE, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

struct rt_bits_struct* rt_bits_init unsigned long  name,
unsigned long  mask
[inline]
 

Definition at line 129 of file rtai_bits.h.

References BITS_INIT, BITSIDX, LOW, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.

Here is the call graph for this function:

int rt_bits_reset struct rt_bits_struct bits,
unsigned long  mask
[inline]
 

Definition at line 147 of file rtai_bits.h.

References BITS_RESET, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

unsigned long rt_bits_signal struct rt_bits_struct bits,
int  setfun,
unsigned long  masks
[inline]
 

Definition at line 153 of file rtai_bits.h.

References BITS_SIGNAL, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int rt_bits_wait struct rt_bits_struct bits,
int  testfun,
unsigned long  testmasks,
int  exitfun,
unsigned long  exitmasks,
unsigned long *  resulting_mask
[inline]
 

Definition at line 159 of file rtai_bits.h.

References BITS_WAIT, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int rt_bits_wait_if struct rt_bits_struct bits,
int  testfun,
unsigned long  testmasks,
int  exitfun,
unsigned long  exitmasks,
unsigned long *  resulting_mask
[inline]
 

Definition at line 165 of file rtai_bits.h.

References BITS_WAIT_IF, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int rt_bits_wait_timed struct rt_bits_struct bits,
int  testfun,
unsigned long  testmasks,
int  exitfun,
unsigned long  exitmasks,
RTIME  delay,
unsigned long *  resulting_mask
[inline]
 

Definition at line 177 of file rtai_bits.h.

References BITS_WAIT_TIMED, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, and SIZARG.

Here is the call graph for this function:

int rt_bits_wait_until struct rt_bits_struct bits,
int  testfun,
unsigned long  testmasks,
int  exitfun,
unsigned long  exitmasks,
RTIME  time,
unsigned long *  resulting_mask
[inline]
 

Definition at line 171 of file rtai_bits.h.

References BITS_WAIT_UNTIL, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, and SIZARG.

Here is the call graph for this function:

unsigned long rt_get_bits struct rt_bits_struct bits  )  [inline]
 

Definition at line 141 of file rtai_bits.h.

References BITS_GET, BITSIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:


Generated on Thu Nov 20 11:52:28 2008 for RTAI API by doxygen 1.3.8