Paparazzi UAS  v5.15_devel-50-g4d7045d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spektrum_soft_bind_ap.c File Reference
#include "modules/spektrum_soft_bind/spektrum_soft_bind_ap.h"
#include "subsystems/intermcu/intermcu_ap.h"
#include "led.h"
#include "mcu.h"
#include "subsystems/radio_control.h"
#include "mcu_periph/sys_time_arch.h"
#include "mcu_periph/uart.h"
#include "mcu_periph/gpio.h"
+ Include dependency graph for spektrum_soft_bind_ap.c:

Go to the source code of this file.

Macros

#define _UART_INIT(i)   i ## _init()
 
#define UART_INIT(i)   _UART_INIT(i)
 

Functions

void spektrum_soft_bind_init (void)
 
void spektrum_soft_bind_click (bool val)
 
void send_spektrum_bind (void)
 

Variables

bool bind_soft_value
 

Detailed Description

Author
Kevin van Hecke Puts Spektrum in binding mode through software

Definition in file spektrum_soft_bind_ap.c.

Macro Definition Documentation

#define _UART_INIT (   i)    i ## _init()

Definition at line 42 of file spektrum_soft_bind_ap.c.

#define UART_INIT (   i)    _UART_INIT(i)

Definition at line 43 of file spektrum_soft_bind_ap.c.

Referenced by send_spektrum_bind().

Function Documentation

void send_spektrum_bind ( void  )

Definition at line 58 of file spektrum_soft_bind_ap.c.

References LED_OFF, LED_ON, RADIO_CONTROL_POWER_OFF, RADIO_CONTROL_POWER_ON, RADIO_CONTROL_POWER_PIN, RADIO_CONTROL_POWER_PORT, sys_time_usleep(), and UART_INIT.

Referenced by spektrum_soft_bind_click().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spektrum_soft_bind_click ( bool  val)

Definition at line 46 of file spektrum_soft_bind_ap.c.

References bind_soft_value, intermcu_send_spektrum_bind(), send_spektrum_bind(), and val.

+ Here is the call graph for this function:

void spektrum_soft_bind_init ( void  )

Definition at line 37 of file spektrum_soft_bind_ap.c.

Variable Documentation

bool bind_soft_value

Definition at line 45 of file spektrum_soft_bind_ap.c.

Referenced by spektrum_soft_bind_click().