PX4 Firmware
PX4 Autopilot Software http://px4.io
|
class NavioSysfsPWMOut PWM output class for Navio Sysfs More...
#include <navio_sysfs.h>
Public Member Functions | |
NavioSysfsPWMOut (const char *device, int max_num_outputs) | |
virtual | ~NavioSysfsPWMOut () |
int | init () override |
int | send_output_pwm (const uint16_t *pwm, int num_outputs) override |
Public Member Functions inherited from linux_pwm_out::PWMOutBase | |
virtual | ~PWMOutBase () |
Private Member Functions | |
int | pwm_write_sysfs (char *path, int value) |
Private Attributes | |
int | _pwm_fd [MAX_NUM_PWM] |
int | _pwm_num |
const char * | _device |
Static Private Attributes | |
static const int | MAX_NUM_PWM = 14 |
static const int | FREQUENCY_PWM = 400 |
class NavioSysfsPWMOut PWM output class for Navio Sysfs
Definition at line 45 of file navio_sysfs.h.
NavioSysfsPWMOut::NavioSysfsPWMOut | ( | const char * | device, |
int | max_num_outputs | ||
) |
Definition at line 43 of file navio_sysfs.cpp.
References _pwm_fd, _pwm_num, and MAX_NUM_PWM.
|
virtual |
Definition at line 58 of file navio_sysfs.cpp.
References _pwm_fd, and MAX_NUM_PWM.
|
overridevirtual |
Implements linux_pwm_out::PWMOutBase.
Definition at line 67 of file navio_sysfs.cpp.
References _device, _pwm_fd, _pwm_num, FREQUENCY_PWM, and pwm_write_sysfs().
|
private |
|
overridevirtual |
Implements linux_pwm_out::PWMOutBase.
Definition at line 109 of file navio_sysfs.cpp.
References _pwm_fd, _pwm_num, data, and write().
|
private |
Definition at line 64 of file navio_sysfs.h.
Referenced by init().
|
private |
Definition at line 61 of file navio_sysfs.h.
Referenced by init(), NavioSysfsPWMOut(), send_output_pwm(), and ~NavioSysfsPWMOut().
|
private |
Definition at line 62 of file navio_sysfs.h.
Referenced by init(), NavioSysfsPWMOut(), and send_output_pwm().
|
staticprivate |
Definition at line 59 of file navio_sysfs.h.
Referenced by init().
|
staticprivate |
Definition at line 58 of file navio_sysfs.h.
Referenced by NavioSysfsPWMOut(), and ~NavioSysfsPWMOut().