Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sys_mon.h
Go to the documentation of this file.
1 /*
2  * $Id: $
3  *
4  * Copyright (C) 2010 Gautier Hattenberger
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  */
24 
31 #ifndef SYS_MON_H
32 #define SYS_MON_H
33 
34 #include "std.h"
35 
36 struct SysMon {
43 };
44 
45 extern struct SysMon sys_mon;
46 
49 void init_sysmon(void);
50 
53 void periodic_report_sysmon(void);
54 
58 void periodic_sysmon(void);
59 
62 void event_sysmon(void);
63 
64 #endif
uint8_t cpu_load
Definition: sys_mon.h:37
unsigned short uint16_t
Definition: types.h:16
uint16_t event_number
Definition: sys_mon.h:42
void periodic_report_sysmon(void)
Report system status.
Definition: sys_mon.c:72
uint16_t periodic_cycle_max
in usec
Definition: sys_mon.h:41
uint16_t periodic_cycle
in usec
Definition: sys_mon.h:39
void init_sysmon(void)
Init system monitoring.
Definition: sys_mon.c:47
uint16_t periodic_cycle_min
in usec
Definition: sys_mon.h:40
unsigned char uint8_t
Definition: types.h:14
struct SysMon sys_mon
Definition: sys_mon.c:33
void event_sysmon(void)
Analyse event calls.
Definition: sys_mon.c:113
void periodic_sysmon(void)
Analyse periodic calls Should be run at the highest frequency.
Definition: sys_mon.c:91
uint16_t periodic_time
in usec
Definition: sys_mon.h:38
Definition: sys_mon.h:36