Macros | Enumerations | Functions
drv_pwm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_INPUTS   8
 
#define MAX_SERVOS   8
 
#define PULSE_MAX   (2250)
 
#define PULSE_MIN   (750)
 

Enumerations

enum  {
  PWM1 = 0, PWM2, PWM3, PWM4,
  PWM5, PWM6, PWM7, PWM8,
  PWM9, PWM10, PWM11, PWM12,
  PWM13, PWM14, MAX_PORTS
}
 

Functions

void pwmInit (bool useCPPM, bool usePwmFilter, bool fastPWM, uint32_t motorPwmRate, uint16_t idlePulseUsec)
 
uint32_t pwmLastUpdate ()
 
bool pwmNewData ()
 
uint16_t pwmRead (uint8_t channel)
 
void pwmWriteMotor (uint8_t index, uint16_t value)
 
bool sonarPresent ()
 
float sonarRead (uint8_t channel)
 

Macro Definition Documentation

#define MAX_INPUTS   8

Definition at line 25 of file drv_pwm.h.

#define MAX_SERVOS   8

Definition at line 24 of file drv_pwm.h.

#define PULSE_MAX   (2250)

Definition at line 27 of file drv_pwm.h.

#define PULSE_MIN   (750)

Definition at line 26 of file drv_pwm.h.

Enumeration Type Documentation

anonymous enum
Enumerator
PWM1 
PWM2 
PWM3 
PWM4 
PWM5 
PWM6 
PWM7 
PWM8 
PWM9 
PWM10 
PWM11 
PWM12 
PWM13 
PWM14 
MAX_PORTS 

Definition at line 30 of file drv_pwm.h.

Function Documentation

void pwmInit ( bool  useCPPM,
bool  usePwmFilter,
bool  fastPWM,
uint32_t  motorPwmRate,
uint16_t  idlePulseUsec 
)

Definition at line 353 of file drv_pwm.c.

uint32_t pwmLastUpdate ( )

Definition at line 186 of file drv_pwm.c.

bool pwmNewData ( )

Definition at line 422 of file drv_pwm.c.

uint16_t pwmRead ( uint8_t  channel)

Definition at line 409 of file drv_pwm.c.

void pwmWriteMotor ( uint8_t  index,
uint16_t  value 
)

Definition at line 403 of file drv_pwm.c.

bool sonarPresent ( )

Definition at line 432 of file drv_pwm.c.

float sonarRead ( uint8_t  channel)

Definition at line 427 of file drv_pwm.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50