base/include/rtai_bits.h File Reference

Include dependency graph for rtai_bits.h:

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

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   (RTE_OBJINV)
#define BITS_TIMOUT   (RTE_TIMOUT)
#define BITSIDX   0

Typedefs

typedef rt_bits_struct BITS

Functions

static struct rt_bits_structrt_bits_init (unsigned long name, unsigned long mask)
static int rt_bits_delete (struct rt_bits_struct *bits)
static unsigned long rt_get_bits (struct rt_bits_struct *bits)
static unsigned long rt_bits_reset (struct rt_bits_struct *bits, unsigned long mask)
static unsigned long rt_bits_signal (struct rt_bits_struct *bits, int setfun, unsigned long masks)
static int rt_bits_wait (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, unsigned long *resulting_mask)
static int rt_bits_wait_if (struct rt_bits_struct *bits, int testfun, unsigned long testmasks, int exitfun, unsigned long exitmasks, unsigned long *resulting_mask)
static 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)
static 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   (RTE_OBJINV)

Definition at line 50 of file rtai_bits.h.

#define BITS_TIMOUT   (RTE_TIMOUT)

Definition at line 51 of file rtai_bits.h.

#define BITSIDX   0

Definition at line 118 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_init().

#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


Function Documentation

static int rt_bits_delete ( struct rt_bits_struct bits  )  [inline, static]

Definition at line 130 of file rtai_bits.h.

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

Referenced by rt_bits_delete_u(), rt_named_bits_delete(), and rt_named_bits_init().

Here is the call graph for this function:

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

Definition at line 124 of file rtai_bits.h.

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

Referenced by rt_bits_init_u(), and rt_named_bits_init().

Here is the call graph for this function:

static unsigned long rt_bits_reset ( struct rt_bits_struct bits,
unsigned long  mask 
) [inline, static]

Definition at line 142 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:

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

Definition at line 148 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:

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

Definition at line 154 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:

static 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, static]

Definition at line 160 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:

static 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, static]

Definition at line 172 of file rtai_bits.h.

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

Here is the call graph for this function:

static 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, static]

Definition at line 166 of file rtai_bits.h.

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

Here is the call graph for this function:

static unsigned long rt_get_bits ( struct rt_bits_struct bits  )  [inline, static]

Definition at line 136 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 Tue Feb 2 17:46:49 2010 for RTAI API by  doxygen 1.4.7