Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppm_arch.c File Reference
#include "mcu_periph/sys_time.h"
#include "subsystems/radio_control.h"
#include "subsystems/radio_control/ppm.h"
#include <inttypes.h>
#include <caml/mlvalues.h>
+ Include dependency graph for ppm_arch.c:

Go to the source code of this file.

Functions

void ppm_arch_init (void)
 Architecture dependant code. More...
 
value update_rc_channel (value c, value v)
 
value send_ppm (value unit)
 

Variables

uint8_t ppm_cur_pulse
 State machine for decoding ppm frames. More...
 
uint32_t ppm_last_pulse_time
 
bool_t ppm_data_valid
 

Function Documentation

void ppm_arch_init ( void  )

Architecture dependant code.

Definition at line 38 of file ppm_arch.c.

References FALSE, ppm_cur_pulse, ppm_data_valid, ppm_frame_available, ppm_last_pulse_time, and RADIO_CONTROL_NB_CHANNEL.

value send_ppm ( value  unit)

Definition at line 84 of file ppm_arch.c.

References ppm_frame_available, TRUE, and unit.

value update_rc_channel ( value  c,
value  v 
)

Definition at line 79 of file ppm_arch.c.

References ppm_pulses.

Variable Documentation

uint8_t ppm_cur_pulse

State machine for decoding ppm frames.

Definition at line 34 of file ppm_arch.c.

bool_t ppm_data_valid

Definition at line 36 of file ppm_arch.c.

uint32_t ppm_last_pulse_time

Definition at line 35 of file ppm_arch.c.