Exploring BeagleBone  V1.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
exploringBB::Servo Class Reference

An extremely basic Servo class stub – does nothing more than the PWM class but is here for future use. More...

#include <Servo.h>

Inheritance diagram for exploringBB::Servo:
Inheritance graph
[legend]
Collaboration diagram for exploringBB::Servo:
Collaboration graph
[legend]

Public Member Functions

 Servo (string pinName)
 
virtual ~Servo ()
 
- Public Member Functions inherited from exploringBB::PWM
 PWM (string pinName)
 
virtual int setPeriod (unsigned int period_ns)
 
virtual unsigned int getPeriod ()
 
virtual int setFrequency (float frequency_hz)
 
virtual float getFrequency ()
 
virtual int setDutyCycle (unsigned int duration_ns)
 
virtual int setDutyCycle (float percentage)
 
virtual unsigned int getDutyCycle ()
 
virtual float getDutyCyclePercent ()
 
virtual int setPolarity (PWM::POLARITY)
 
virtual void invertPolarity ()
 
virtual PWM::POLARITY getPolarity ()
 
virtual void setAnalogFrequency (float frequency_hz)
 
virtual int calibrateAnalogMax (float analogMax)
 
virtual int analogWrite (float voltage)
 
virtual int run ()
 
virtual bool isRunning ()
 
virtual int stop ()
 
virtual ~PWM ()
 

Additional Inherited Members

- Public Types inherited from exploringBB::PWM
enum  POLARITY { ACTIVE_LOW =0, ACTIVE_HIGH =1 }
 

Detailed Description

An extremely basic Servo class stub – does nothing more than the PWM class but is here for future use.

Constructor & Destructor Documentation

exploringBB::Servo::Servo ( string  pinName)
29  : PWM(pinName)
30 {
31  // TODO Auto-generated constructor stub
32 
33 }
PWM(string pinName)
Definition: PWM.cpp:31
exploringBB::Servo::~Servo ( )
virtual
35  {
36  // TODO Auto-generated destructor stub
37 }

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