fosi_internal_interface.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: Peter Soetens Mon Jun 26 13:25:56 CEST 2006 fosi_internal_interface.h
3 
4  fosi_internal_interface.h - description
5  -------------------
6  begin : Mon June 26 2006
7  copyright : (C) 2006 Peter Soetens
8  email : peter.soetens@fmtc.be
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU General Public *
13  * License as published by the Free Software Foundation; *
14  * version 2 of the License. *
15  * *
16  * As a special exception, you may use this file as part of a free *
17  * software library without restriction. Specifically, if other files *
18  * instantiate templates or use macros or inline functions from this *
19  * file, or you compile this file and link it with other files to *
20  * produce an executable, this file does not by itself cause the *
21  * resulting executable to be covered by the GNU General Public *
22  * License. This exception does not however invalidate any other *
23  * reasons why the executable file might be covered by the GNU General *
24  * Public License. *
25  * *
26  * This library is distributed in the hope that it will be useful, *
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
29  * Lesser General Public License for more details. *
30  * *
31  * You should have received a copy of the GNU General Public *
32  * License along with this library; if not, write to the Free Software *
33  * Foundation, Inc., 59 Temple Place, *
34  * Suite 330, Boston, MA 02111-1307 USA *
35  * *
36  ***************************************************************************/
37 
38 
39 
47 #ifndef OS_FOSI_INTERNAL_INTERFACE_HPP
48 #define OS_FOSI_INTERNAL_INTERFACE_HPP
49 
50 #include "ThreadInterface.hpp"
51 #include "fosi.h"
52 
53 namespace RTT {
54  namespace os {
64  int rtos_task_create_main(RTOS_TASK* main_task);
65 
72  int rtos_task_delete_main(RTOS_TASK* main_task);
73 
92  int rtos_task_create(RTOS_TASK* task,
93  int priority,
94  unsigned cpu_affinity,
95  const char * name,
96  int sched_type,
97  size_t stack_size,
98  void * (*start_routine)(void *),
99  ThreadInterface* obj);
100 
105  void rtos_task_yield(RTOS_TASK* task);
106 
113  unsigned int rtos_task_get_pid(const RTOS_TASK* task);
114 
130  int rtos_task_set_scheduler(RTOS_TASK* t, int sched_type);
131 
138  int rtos_task_get_scheduler(const RTOS_TASK* t);
139 
151  void rtos_task_make_periodic(RTOS_TASK* mytask, NANO_TIME nanosecs );
152 
164  void rtos_task_set_period( RTOS_TASK* mytask, NANO_TIME nanosecs );
165 
171  void rtos_task_set_wait_period_policy( RTOS_TASK* task, int policy );
172 
180  int rtos_task_wait_period( RTOS_TASK* task );
181 
188  void rtos_task_delete(RTOS_TASK* mytask);
189 
198  int rtos_task_check_scheduler(int* sched_type);
199 
210  int rtos_task_check_priority(int* sched_type, int* priority);
211 
218  int rtos_task_set_priority(RTOS_TASK * task,int priority);
219 
225  int rtos_task_get_priority(const RTOS_TASK * task);
226 
235  int rtos_task_set_cpu_affinity(RTOS_TASK * task,unsigned cpu_affinity);
236 
242  unsigned rtos_task_get_cpu_affinity(const RTOS_TASK * task);
243 
249  const char * rtos_task_get_name(const RTOS_TASK* task);
250 
258  int rtos_task_is_self(const RTOS_TASK* task);
259  }
260 }
261 #endif
int rtos_task_is_self(const RTOS_TASK *task)
long long NANO_TIME
Definition: ecos/fosi.h:67
int rtos_task_get_priority(const RTOS_TASK *task)
INTERNAL_QUAL void rtos_task_make_periodic(RTOS_TASK *mytask, NANO_TIME nanosecs)
unsigned int rtos_task_get_pid(const RTOS_TASK *task)
INTERNAL_QUAL int rtos_task_delete_main(RTOS_TASK *main_task)
int rtos_task_set_scheduler(RTOS_TASK *t, int sched_type)
int rtos_task_set_cpu_affinity(RTOS_TASK *task, unsigned cpu_affinity)
unsigned rtos_task_get_cpu_affinity(const RTOS_TASK *task)
INTERNAL_QUAL int rtos_task_check_priority(int *scheduler, int *priority)
void rtos_task_set_wait_period_policy(RTOS_TASK *task, int policy)
void rtos_task_delete(RTOS_TASK *mytask)
INTERNAL_QUAL void rtos_task_yield(RTOS_TASK *)
int rtos_task_set_priority(RTOS_TASK *task, int priority)
const char * rtos_task_get_name(const RTOS_TASK *task)
int rtos_task_check_scheduler(int *sched_type)
int rtos_task_wait_period(RTOS_TASK *task)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
INTERNAL_QUAL int rtos_task_create_main(RTOS_TASK *main_task)
void rtos_task_set_period(RTOS_TASK *mytask, NANO_TIME nanosecs)
INTERNAL_QUAL int rtos_task_create(RTOS_TASK *task, int priority, unsigned cpu_affinity, const char *name, int sched_type, size_t stack_size, void *(*start_routine)(void *), ThreadInterface *obj)
int rtos_task_get_scheduler(const RTOS_TASK *t)


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:24