Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
handling of smt32 PWM input using a timer with capture. More...
Go to the source code of this file.
Macros | |
#define | PWM_INPUT_TICKS_PER_USEC 6 |
The default pwm counter is set-up to have 1/6 us resolution. More... | |
#define | PWM_INPUT_TICKS_OF_USEC(_v) ((_v)*PWM_INPUT_TICKS_PER_USEC) |
#define | PWM_INPUT_SIGNED_TICKS_OF_USEC(_v) (int32_t)((_v)*PWM_INPUT_TICKS_PER_USEC) |
#define | USEC_OF_PWM_INPUT_TICKS(_v) ((_v)/PWM_INPUT_TICKS_PER_USEC) |
Enumerations | |
enum | pwm_input_channels { PWM_INPUT1, PWM_INPUT2, PWM_INPUT_NB, PWM_INPUT1, PWM_INPUT2, PWM_INPUT_NB, PWM_INPUT1, PWM_INPUT2, PWM_INPUT_NB } |
handling of smt32 PWM input using a timer with capture.
Definition in file pwm_input_arch.h.
#define PWM_INPUT_SIGNED_TICKS_OF_USEC | ( | _v | ) | (int32_t)((_v)*PWM_INPUT_TICKS_PER_USEC) |
Definition at line 49 of file pwm_input_arch.h.
#define PWM_INPUT_TICKS_OF_USEC | ( | _v | ) | ((_v)*PWM_INPUT_TICKS_PER_USEC) |
Definition at line 48 of file pwm_input_arch.h.
#define PWM_INPUT_TICKS_PER_USEC 6 |
The default pwm counter is set-up to have 1/6 us resolution.
Definition at line 45 of file pwm_input_arch.h.
Referenced by get_pwm_input_duty_in_usec(), and get_pwm_input_period_in_usec().
#define USEC_OF_PWM_INPUT_TICKS | ( | _v | ) | ((_v)/PWM_INPUT_TICKS_PER_USEC) |
Definition at line 50 of file pwm_input_arch.h.
Referenced by mf_ptu_periodic().
enum pwm_input_channels |
Enumerator | |
---|---|
PWM_INPUT1 | |
PWM_INPUT2 | |
PWM_INPUT_NB | |
PWM_INPUT1 | |
PWM_INPUT2 | |
PWM_INPUT_NB | |
PWM_INPUT1 | |
PWM_INPUT2 | |
PWM_INPUT_NB |
Definition at line 35 of file pwm_input_arch.h.