APM:Libraries
|
#include <PWM_Sysfs.h>
Public Member Functions | |
PWM_Sysfs_Bebop (uint8_t channel) | |
Public Member Functions inherited from Linux::PWM_Sysfs_Base | |
virtual | ~PWM_Sysfs_Base () |
void | init () |
void | enable (bool value) |
bool | is_enabled () |
void | set_period (uint32_t nsec_period) |
uint32_t | get_period () |
void | set_freq (uint32_t freq) |
uint32_t | get_freq () |
bool | set_duty_cycle (uint32_t nsec_duty_cycle) |
uint32_t | get_duty_cycle () |
Private Member Functions | |
char * | _generate_export_path () |
char * | _generate_polarity_path (uint8_t channel) |
char * | _generate_enable_path (uint8_t channel) |
char * | _generate_duty_path (uint8_t channel) |
char * | _generate_period_path (uint8_t channel) |
void | set_polarity (PWM_Sysfs_Base::Polarity polarity) override |
PWM_Sysfs_Base::Polarity | get_polarity () override |
Additional Inherited Members | |
Public Types inherited from Linux::PWM_Sysfs_Base | |
enum | Polarity { NORMAL = 0, INVERSE = 1 } |
Protected Member Functions inherited from Linux::PWM_Sysfs_Base | |
PWM_Sysfs_Base (char *export_path, char *polarity_path, char *enable_path, char *duty_path, char *period_path, uint8_t channel) | |
Definition at line 70 of file PWM_Sysfs.h.
Linux::PWM_Sysfs_Bebop::PWM_Sysfs_Bebop | ( | uint8_t | channel | ) |
Definition at line 277 of file PWM_Sysfs.cpp.
|
private |
|
private |
|
private |
Definition at line 236 of file PWM_Sysfs.cpp.
|
private |
|
private |
|
inlineoverrideprivatevirtual |
Reimplemented from Linux::PWM_Sysfs_Base.
Definition at line 83 of file PWM_Sysfs.h.
|
inlineoverrideprivatevirtual |
Reimplemented from Linux::PWM_Sysfs_Base.
Definition at line 81 of file PWM_Sysfs.h.