NinjaFlight
|
Go to the source code of this file.
Data Structures | |
struct | sonarGPIOConfig_s |
struct | drv_pwm_config_s |
struct | pwmPortConfiguration_s |
struct | pwmIOConfiguration_s |
Macros | |
#define | MAX_PWM_MOTORS 12 |
#define | MAX_PWM_SERVOS 8 |
#define | MAX_MOTORS 12 |
#define | MAX_SERVOS 8 |
#define | PULSE_1MS (1000) |
#define | MAX_INPUTS 8 |
#define | PWM_TIMER_MHZ 1 |
#define | ONESHOT125_TIMER_MHZ 8 |
#define | PWM_BRUSHED_TIMER_MHZ 8 |
Typedefs | |
typedef struct sonarGPIOConfig_s | sonarGPIOConfig_t |
typedef struct drv_pwm_config_s | drv_pwm_config_t |
typedef struct pwmPortConfiguration_s | pwmPortConfiguration_t |
typedef struct pwmIOConfiguration_s | pwmIOConfiguration_t |
Enumerations | |
enum | pwmPortFlags_e { PWM_PF_NONE = 0, PWM_PF_MOTOR = (1 << 0), PWM_PF_SERVO = (1 << 1), PWM_PF_MOTOR_MODE_BRUSHED = (1 << 2), PWM_PF_OUTPUT_PROTOCOL_PWM = (1 << 3), PWM_PF_OUTPUT_PROTOCOL_ONESHOT = (1 << 4), PWM_PF_PPM = (1 << 5), PWM_PF_PWM = (1 << 6) } |
enum | { PWM1 = 0, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, PWM8, PWM9, PWM10, PWM11, PWM12, PWM13, PWM14, PWM15, PWM16 } |
Functions | |
pwmIOConfiguration_t * | pwmInit (drv_pwm_config_t *init, const struct pwm_input_config *config) |
pwmIOConfiguration_t * | pwmGetOutputConfiguration (void) |
Variables | |
bool | pwmUseInputFiltering |
#define MAX_INPUTS 8 |
#define MAX_MOTORS 12 |
#define MAX_PWM_MOTORS 12 |
#define MAX_PWM_SERVOS 8 |
#define MAX_SERVOS 8 |
#define ONESHOT125_TIMER_MHZ 8 |
#define PULSE_1MS (1000) |
#define PWM_BRUSHED_TIMER_MHZ 8 |
#define PWM_TIMER_MHZ 1 |
typedef struct drv_pwm_config_s drv_pwm_config_t |
typedef struct pwmIOConfiguration_s pwmIOConfiguration_t |
typedef struct pwmPortConfiguration_s pwmPortConfiguration_t |
typedef struct sonarGPIOConfig_s sonarGPIOConfig_t |
anonymous enum |
enum pwmPortFlags_e |
pwmIOConfiguration_t* pwmGetOutputConfiguration | ( | void | ) |
pwmIOConfiguration_t* pwmInit | ( | drv_pwm_config_t * | init, |
const struct pwm_input_config * | config | ||
) |
bool pwmUseInputFiltering |