Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mag_hmc58xx.c
Go to the documentation of this file.
1 /*
2  * This file is part of paparazzi.
3  *
4  * paparazzi is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * paparazzi is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with paparazzi; see the file COPYING. If not, write to
16  * the Free Software Foundation, 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  *
19  */
20 
22 #include "mcu_periph/uart.h"
23 #include "messages.h"
25 
26 
27 #ifndef DOWNLINK_DEVICE
28 #define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
29 #endif
30 
31 void mag_hmc58xx_report( void )
32 {
33  DOWNLINK_SEND_IMU_MAG_RAW(DefaultChannel, DefaultDevice,&hmc58xx_data.x,&hmc58xx_data.y,&hmc58xx_data.z);
34 }
35 
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
struct Int16Vect3 hmc58xx_data
Definition: hmc58xx.c:39
void mag_hmc58xx_report(void)
Definition: mag_hmc58xx.c:31