Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cc2500_paparazzi.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Tom van Dijk <tomvand@users.noreply.github.com>
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#include "cc2500_paparazzi.h"
23
25#include "modules/core/abi.h"
26#include "peripherals/cc2500.h"
27#include "cc2500_common.h"
28#include "cc2500_frsky_common.h"
29#include "cc2500_settings.h"
30#include "cc2500_rx.h"
31
32#include <stdint.h>
33
34
36
37
38#if PERIODIC_TELEMETRY
40
41static void send_cc2500_ppm(struct transport_tx *trans, struct link_device *dev)
42{
45 (sizeof(frsky_raw) / sizeof(frsky_raw[0])),
46 frsky_raw);
47}
48#endif
49
50
61
62
80
Main include for ABI (AirBorneInterface).
#define RADIO_CONTROL_FRSKY_ID
void cc2500_init(void)
Definition cc2500.c:43
uint8_t cc2500Reset(void)
Definition cc2500.c:228
static uint16_t frsky_raw[RADIO_CTL_NB]
void radio_control_cc2500_event(void)
static void send_cc2500_ppm(struct transport_tx *trans, struct link_device *dev)
void radio_control_cc2500_init(void)
void rxInit(void)
!TODO remove this extern, only needed once for channelCount
Definition cc2500_rx.c:263
rxRuntimeConfig_t rxRuntimeConfig
Definition cc2500_rx.c:131
@ RX_FRAME_COMPLETE
Definition cc2500_rx.h:53
rcFrameStatusFnPtr rcFrameStatusFn
Definition cc2500_rx.h:148
rcProcessFrameFnPtr rcProcessFrameFn
Definition cc2500_rx.h:149
rcReadRawDataFnPtr rcReadRawFn
Definition cc2500_rx.h:147
void cc2500_settings_init(void)
uint16_t foo
Definition main_demo5.c:58
struct RadioControl radio_control
Generic interface for radio control modules.
uint8_t time_since_last_frame
uint8_t radio_ok_cpt
uint8_t frame_rate
uint8_t frame_cpt
#define RC_OK
uint8_t nb_channel
static const struct usb_device_descriptor dev
Definition usb_ser_hw.c:74
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Definition telemetry.c:51
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
Definition telemetry.h:66
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.