Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Tasklets


Files

file  rtai_nam2num.h
 Conversion between characters strings and unsigned long identifiers.
file  rtai_tasklets.h
 Interface of the mini LXRT RTAI tasklets module.

Classes

struct  rt_tasklet_struct

Defines

#define TSKIDX   1
#define INIT   0
#define DELETE   1
#define TASK_INSERT   2
#define TASK_REMOVE   3
#define USE_FPU   4
#define TIMER_INSERT   5
#define TIMER_REMOVE   6
#define SET_TASKLETS_PRI   7
#define SET_FIR_TIM   8
#define SET_PER   9
#define SET_HDL   10
#define SET_DAT   11
#define EXEC_TASKLET   12
#define WAIT_IS_HARD   13
#define SET_TSK_PRI   14
#define REG_TASK   15
#define TASKLET_STACK_SIZE   8196
#define rt_init_timer   rt_init_tasklet
#define rt_delete_timer   rt_delete_tasklet
#define rt_set_timer_handler   rt_set_tasklet_handler
#define rt_set_timer_data   rt_set_tasklet_data
#define rt_timer_use_fpu   rt_tasklet_use_fpu

Functions

static int support_tasklet (void *tasklet)
 RTAI_PROTO (struct rt_tasklet_struct *, rt_init_tasklet,(void))
 RTAI_PROTO (void, rt_delete_tasklet,(struct rt_tasklet_struct *tasklet))
 RTAI_PROTO (int, rt_insert_timer,(struct rt_tasklet_struct *timer, int priority, RTIME firing_time, RTIME period, void(*handler)(unsigned long), unsigned long data, int pid))
 RTAI_PROTO (void, rt_remove_timer,(struct rt_tasklet_struct *timer))
 RTAI_PROTO (void, rt_set_timer_priority,(struct rt_tasklet_struct *timer, int priority))
 RTAI_PROTO (void, rt_set_timer_firing_time,(struct rt_tasklet_struct *timer, RTIME firing_time))
 RTAI_PROTO (void, rt_set_timer_period,(struct rt_tasklet_struct *timer, RTIME period))
 RTAI_PROTO (int, rt_set_tasklet_handler,(struct rt_tasklet_struct *tasklet, void(*handler)(unsigned long)))
 RTAI_PROTO (void, rt_set_tasklet_data,(struct rt_tasklet_struct *tasklet, unsigned long data))
 RTAI_PROTO (RT_TASK *, rt_tasklet_use_fpu,(struct rt_tasklet_struct *tasklet, int use_fpu))
 RTAI_PROTO (int, rt_insert_tasklet,(struct rt_tasklet_struct *tasklet, int priority, void(*handler)(unsigned long), unsigned long data, unsigned long id, int pid))
 RTAI_PROTO (void, rt_set_tasklet_priority,(struct rt_tasklet_struct *tasklet, int priority))
 RTAI_PROTO (void, rt_remove_tasklet,(struct rt_tasklet_struct *tasklet))
 RTAI_PROTO (int, rt_exec_tasklet,(struct rt_tasklet_struct *tasklet))

Define Documentation

#define DELETE   1
 

Definition at line 39 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define EXEC_TASKLET   12
 

Definition at line 50 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define INIT   0
 

Definition at line 38 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define REG_TASK   15
 

Definition at line 53 of file rtai_tasklets.h.

Referenced by support_tasklet().

#define rt_delete_timer   rt_delete_tasklet
 

Definition at line 356 of file rtai_tasklets.h.

#define rt_init_timer   rt_init_tasklet
 

Definition at line 345 of file rtai_tasklets.h.

#define rt_set_timer_data   rt_set_tasklet_data
 

Definition at line 408 of file rtai_tasklets.h.

#define rt_set_timer_handler   rt_set_tasklet_handler
 

Definition at line 400 of file rtai_tasklets.h.

#define rt_timer_use_fpu   rt_tasklet_use_fpu
 

Definition at line 420 of file rtai_tasklets.h.

#define SET_DAT   11
 

Definition at line 49 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define SET_FIR_TIM   8
 

Definition at line 46 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define SET_HDL   10
 

Definition at line 48 of file rtai_tasklets.h.

Referenced by RTAI_PROTO(), and support_tasklet().

#define SET_PER   9
 

Definition at line 47 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define SET_TASKLETS_PRI   7
 

Definition at line 45 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define SET_TSK_PRI   14
 

Definition at line 52 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TASK_INSERT   2
 

Definition at line 40 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TASK_REMOVE   3
 

Definition at line 41 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TASKLET_STACK_SIZE   8196
 

Definition at line 57 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TIMER_INSERT   5
 

Definition at line 43 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TIMER_REMOVE   6
 

Definition at line 44 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define TSKIDX   1
 

Definition at line 36 of file rtai_tasklets.h.

Referenced by RTAI_PROTO(), and support_tasklet().

#define USE_FPU   4
 

Definition at line 42 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().

#define WAIT_IS_HARD   13
 

Definition at line 51 of file rtai_tasklets.h.

Referenced by RTAI_PROTO().


Function Documentation

RTAI_PROTO int  ,
rt_exec_tasklet  ,
(struct rt_tasklet_struct *tasklet) 
 

Definition at line 445 of file rtai_tasklets.h.

References EXEC_TASKLET, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and TSKIDX.

RTAI_PROTO void  ,
rt_remove_tasklet  ,
(struct rt_tasklet_struct *tasklet) 
 

Definition at line 439 of file rtai_tasklets.h.

References rtai_lxrt(), SIZARG, TASK_REMOVE, and TSKIDX.

RTAI_PROTO void  ,
rt_set_tasklet_priority  ,
(struct rt_tasklet_struct *tasklet, int priority) 
 

Definition at line 433 of file rtai_tasklets.h.

References rtai_lxrt(), SET_TSK_PRI, SIZARG, and TSKIDX.

RTAI_PROTO int  ,
rt_insert_tasklet  ,
(struct rt_tasklet_struct *tasklet,int priority,void(*handler)(unsigned long),unsigned long data,unsigned long id,int pid) 
 

Definition at line 422 of file rtai_tasklets.h.

References rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, TASK_INSERT, and TSKIDX.

RTAI_PROTO RT_TASK ,
rt_tasklet_use_fpu  ,
(struct rt_tasklet_struct *tasklet, int use_fpu) 
 

Definition at line 410 of file rtai_tasklets.h.

References LOW, rtai_lxrt(), SIZARG, rt_tasklet_struct::task, TSKIDX, and USE_FPU.

RTAI_PROTO void  ,
rt_set_tasklet_data  ,
(struct rt_tasklet_struct *tasklet, unsigned long data
 

Definition at line 402 of file rtai_tasklets.h.

References rtai_lxrt(), SET_DAT, SIZARG, and TSKIDX.

RTAI_PROTO int  ,
rt_set_tasklet_handler  ,
(struct rt_tasklet_struct *tasklet, void(*handler)(unsigned long)) 
 

Definition at line 394 of file rtai_tasklets.h.

References rtai_lxrt_t::i, LOW, rtai_lxrt(), SET_HDL, SIZARG, and TSKIDX.

RTAI_PROTO void  ,
rt_set_timer_period  ,
(struct rt_tasklet_struct *timer, RTIME period) 
 

Definition at line 388 of file rtai_tasklets.h.

References rtai_lxrt(), SET_PER, SIZARG, and TSKIDX.

RTAI_PROTO void  ,
rt_set_timer_firing_time  ,
(struct rt_tasklet_struct *timer, RTIME firing_time) 
 

Definition at line 382 of file rtai_tasklets.h.

References rtai_lxrt(), SET_FIR_TIM, SIZARG, and TSKIDX.

RTAI_PROTO void  ,
rt_set_timer_priority  ,
(struct rt_tasklet_struct *timer, int priority) 
 

Definition at line 376 of file rtai_tasklets.h.

References rtai_lxrt(), SET_TASKLETS_PRI, SIZARG, and TSKIDX.

RTAI_PROTO void  ,
rt_remove_timer  ,
(struct rt_tasklet_struct *timer) 
 

Definition at line 370 of file rtai_tasklets.h.

References rtai_lxrt(), SIZARG, TIMER_REMOVE, and TSKIDX.

RTAI_PROTO int  ,
rt_insert_timer  ,
(struct rt_tasklet_struct *timer,int priority,RTIME firing_time,RTIME period,void(*handler)(unsigned long),unsigned long data,int pid) 
 

Definition at line 358 of file rtai_tasklets.h.

References rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, TIMER_INSERT, and TSKIDX.

RTAI_PROTO void  ,
rt_delete_tasklet  ,
(struct rt_tasklet_struct *tasklet) 
 

Definition at line 347 of file rtai_tasklets.h.

References DELETE, i, LOW, rtai_lxrt(), SIZARG, rt_tasklet_struct::thread, and TSKIDX.

RTAI_PROTO struct rt_tasklet_struct ,
rt_init_tasklet  ,
(void) 
 

Definition at line 333 of file rtai_tasklets.h.

References INIT, LOW, rtai_lxrt(), SIZARG, support_tasklet(), TASKLET_STACK_SIZE, rt_tasklet_struct::thread, TSKIDX, rtai_lxrt_t::v, and WAIT_IS_HARD.

static int support_tasklet void *  tasklet  )  [static]
 

Definition at line 296 of file rtai_tasklets.h.

References rt_tasklet_struct::data, rt_tasklet_struct::handler, REG_TASK, rtai_lxrt(), rtai_sti, SET_HDL, SIZARG, and TSKIDX.

Referenced by RTAI_PROTO().


Generated on Fri Sep 1 14:26:03 2006 for Raptor by  doxygen 1.4.4