APM:Libraries
Public Member Functions | Private Member Functions | List of all members
Linux::PWM_Sysfs_Bebop Class Reference

#include <PWM_Sysfs.h>

Inheritance diagram for Linux::PWM_Sysfs_Bebop:
[legend]
Collaboration diagram for Linux::PWM_Sysfs_Bebop:
[legend]

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)
 

Detailed Description

Definition at line 70 of file PWM_Sysfs.h.

Constructor & Destructor Documentation

◆ PWM_Sysfs_Bebop()

Linux::PWM_Sysfs_Bebop::PWM_Sysfs_Bebop ( uint8_t  channel)

Definition at line 277 of file PWM_Sysfs.cpp.

Member Function Documentation

◆ _generate_duty_path()

char * Linux::PWM_Sysfs_Bebop::_generate_duty_path ( uint8_t  channel)
private

Definition at line 253 of file PWM_Sysfs.cpp.

Here is the call graph for this function:

◆ _generate_enable_path()

char * Linux::PWM_Sysfs_Bebop::_generate_enable_path ( uint8_t  channel)
private

Definition at line 241 of file PWM_Sysfs.cpp.

Here is the call graph for this function:

◆ _generate_export_path()

char * Linux::PWM_Sysfs_Bebop::_generate_export_path ( )
private

Definition at line 236 of file PWM_Sysfs.cpp.

◆ _generate_period_path()

char * Linux::PWM_Sysfs_Bebop::_generate_period_path ( uint8_t  channel)
private

Definition at line 265 of file PWM_Sysfs.cpp.

Here is the call graph for this function:

◆ _generate_polarity_path()

char* Linux::PWM_Sysfs_Bebop::_generate_polarity_path ( uint8_t  channel)
private

◆ get_polarity()

PWM_Sysfs_Base::Polarity Linux::PWM_Sysfs_Bebop::get_polarity ( )
inlineoverrideprivatevirtual

Reimplemented from Linux::PWM_Sysfs_Base.

Definition at line 83 of file PWM_Sysfs.h.

◆ set_polarity()

void Linux::PWM_Sysfs_Bebop::set_polarity ( PWM_Sysfs_Base::Polarity  polarity)
inlineoverrideprivatevirtual

Reimplemented from Linux::PWM_Sysfs_Base.

Definition at line 81 of file PWM_Sysfs.h.


The documentation for this class was generated from the following files: