NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pwm_mapping.h File Reference
#include "gpio.h"
#include "timer.h"
Include dependency graph for pwm_mapping.h:
This graph shows which files directly or indirectly include this file:

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_tpwmInit (drv_pwm_config_t *init, const struct pwm_input_config *config)
 
pwmIOConfiguration_tpwmGetOutputConfiguration (void)
 

Variables

bool pwmUseInputFiltering
 

Macro Definition Documentation

#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 Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
PWM1 
PWM2 
PWM3 
PWM4 
PWM5 
PWM6 
PWM7 
PWM8 
PWM9 
PWM10 
PWM11 
PWM12 
PWM13 
PWM14 
PWM15 
PWM16 
Enumerator
PWM_PF_NONE 
PWM_PF_MOTOR 
PWM_PF_SERVO 
PWM_PF_MOTOR_MODE_BRUSHED 
PWM_PF_OUTPUT_PROTOCOL_PWM 
PWM_PF_OUTPUT_PROTOCOL_ONESHOT 
PWM_PF_PPM 
PWM_PF_PWM 

Function Documentation

pwmIOConfiguration_t* pwmGetOutputConfiguration ( void  )
pwmIOConfiguration_t* pwmInit ( drv_pwm_config_t init,
const struct pwm_input_config config 
)

Here is the call graph for this function:

Variable Documentation

bool pwmUseInputFiltering