base/include/rtai_proxies.h

Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2000 Pierre Cloutier <pcloutier@poseidoncontrols.com> 00003 * Paolo Mantegazza <mantegazza@aero.polimi.it> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _RTAI_PROXIES_H 00021 #define _RTAI_PROXIES_H 00022 00023 #include <rtai_sched.h> 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif /* __cplusplus */ 00028 00029 // Create a generic proxy task. 00030 RT_TASK *__rt_proxy_attach(void (*func)(long), 00031 RT_TASK *task, 00032 void *msg, 00033 int nbytes, 00034 int priority); 00035 00036 // Create a raw proxy task. 00037 RT_TASK *rt_proxy_attach(RT_TASK *task, 00038 void *msg, 00039 int nbytes, 00040 int priority); 00041 00042 // Delete a proxy task (a simplified specific rt_task_delete). 00043 int rt_proxy_detach(RT_TASK *proxy); 00044 00045 //Trigger a proxy. 00046 RT_TASK *rt_trigger(RT_TASK *proxy); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif /* __cplusplus */ 00051 00052 #endif /* !_RTAI_PROXIES_H */

Generated on Thu Nov 20 11:49:50 2008 for RTAI API by doxygen 1.3.8