Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_mon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Gautier Hattenberger
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
29 #ifndef SYS_MON_H
30 #define SYS_MON_H
31 
32 #include "std.h"
33 
34 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:35
unsigned short uint16_t
Definition: types.h:16
uint16_t periodic_time_max
in usec
Definition: sys_mon.h:38
uint16_t event_number
Definition: sys_mon.h:42
void periodic_report_sysmon(void)
Report system status.
Definition: sys_mon.c:69
uint16_t periodic_time_min
in usec
Definition: sys_mon.h:37
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:45
uint16_t periodic_cycle_min
in usec
Definition: sys_mon.h:40
unsigned char uint8_t
Definition: types.h:14
struct SysMon sys_mon
Global system monitor data (averaged over 1 sec)
Definition: sys_mon.c:31
void event_sysmon(void)
Analyse event calls.
Definition: sys_mon.c:122
void periodic_sysmon(void)
Analyse periodic calls Should be run at the highest frequency.
Definition: sys_mon.c:94
uint16_t periodic_time
in usec
Definition: sys_mon.h:36
Definition: sys_mon.h:34