Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
actuators_pwm.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 The Paparazzi Team
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#ifndef ACTUATORS_PWM_H
23#define ACTUATORS_PWM_H
24
25#include "std.h"
26#include "modules/actuators/actuators_pwm_arch.h"
27
28#ifndef ACTUATORS_PWM_NB
29#define ACTUATORS_PWM_NB 8
30#endif
31
33
37extern void actuators_pwm_arch_init(void);
38
41extern void actuators_pwm_arch_commit(void);
42
45extern void actuators_pwm_set(uint8_t idx, int16_t value);
46
49#define ActuatorPwmSet actuators_pwm_set
50#define ActuatorsPwmInit actuators_pwm_arch_init
51#define ActuatorsPwmCommit actuators_pwm_arch_commit
52
53#endif /* ACTUATORS_PWM_H */
int32_t actuators_pwm_values[ACTUATORS_PWM_NB]
Definition actuators.c:69
#define ACTUATORS_PWM_NB
void actuators_pwm_set(uint8_t idx, int16_t value)
Set actuator value in array.
void actuators_pwm_arch_commit(void)
Arch dependent commit function.
void actuators_pwm_arch_init(void)
Arch dependent init function.
static uint32_t idx
int int32_t
Typedef defining 32 bit int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.