Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
meteo_france_DAQ.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 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
34
#ifndef METEO_FRANCE_DAQ_H
35
#define METEO_FRANCE_DAQ_H
36
37
#include "
std.h
"
38
#include "
mcu_periph/gpio.h
"
39
#include "generated/airframe.h"
40
41
#define MF_DAQ_SIZE 32
42
43
struct
MF_DAQ
{
44
float
values
[
MF_DAQ_SIZE
];
45
uint8_t
nb
;
46
uint8_t
power
;
47
};
48
49
extern
struct
MF_DAQ
mf_daq
;
50
51
extern
void
init_mf_daq
(
void
);
52
extern
void
mf_daq_send_state
(
void
);
53
extern
void
mf_daq_send_report
(
void
);
54
extern
void
parse_mf_daq_msg
(
void
);
55
56
#if (defined MF_DAQ_POWER_PORT) && (defined MF_DAQ_POWER_PIN)
57
#define meteo_france_DAQ_SetPower(_x) { \
58
mf_daq.power = _x; \
59
if (mf_daq.power) { gpio_set(MF_DAQ_POWER_PORT, MF_DAQ_POWER_PIN); } \
60
else { gpio_clear(MF_DAQ_POWER_PORT, MF_DAQ_POWER_PIN); } \
61
}
62
#else // POWER PORT and PIN undefined
63
#define meteo_france_DAQ_SetPower(_x) {}
64
#endif
65
66
#endif
67
gpio.h
Some architecture independent helper functions for GPIOs.
MF_DAQ_SIZE
#define MF_DAQ_SIZE
Definition:
meteo_france_DAQ.h:41
mf_daq
struct MF_DAQ mf_daq
Definition:
meteo_france_DAQ.c:46
init_mf_daq
void init_mf_daq(void)
Definition:
meteo_france_DAQ.c:57
mf_daq_send_state
void mf_daq_send_state(void)
Definition:
meteo_france_DAQ.c:68
parse_mf_daq_msg
void parse_mf_daq_msg(void)
Definition:
meteo_france_DAQ.c:116
std.h
mf_daq_send_report
void mf_daq_send_report(void)
Definition:
meteo_france_DAQ.c:92
uint8_t
unsigned char uint8_t
Definition:
types.h:14
MF_DAQ
Definition:
meteo_france_DAQ.h:43
MF_DAQ::values
float values[MF_DAQ_SIZE]
Definition:
meteo_france_DAQ.h:44
MF_DAQ::nb
uint8_t nb
Definition:
meteo_france_DAQ.h:45
MF_DAQ::power
uint8_t power
Definition:
meteo_france_DAQ.h:46
sw
airborne
modules
meteo
meteo_france_DAQ.h
Generated on Tue Jun 21 2016 14:01:20 for Paparazzi UAS by
1.8.8