upm  0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions
ES08A Class Reference

C++ API for ES08A servo component. More...

Detailed Description

This file defines the ES08A C++ interface for libes08a

upm::ES08A *servo = new upm::ES08A(5);
servo->setAngle (180);

Public Member Functions

 ES08A (int pin)
 
 ~ES08A ()
 
- Public Member Functions inherited from Servo
 Servo (int pin)
 
 ~Servo ()
 
mraa_result_t setAngle (int angle)
 
std::string name ()
 
void setMinPulseWidth (int width)
 
void setMaxPulseWidth (int width)
 
void setMaxPeriod (int width)
 
int getMinPulseWidth ()
 
int getMaxPulseWidth ()
 
int getMaxPeriod ()
 

Additional Inherited Members

- Protected Member Functions inherited from Servo
int calcPulseTraveling (int value)
 
- Protected Attributes inherited from Servo
std::string m_name
 
int m_servoPin
 
float m_maxAngle
 
mraa_pwm_context m_pwmServoContext
 
int m_currAngle
 
int m_minPulseWidth
 
int m_maxPulseWidth
 
int m_maxPeriod
 

Constructor & Destructor Documentation

ES08A ( int  pin)

Instanciates a ES08A object

Parameters
pinservo pin number
~ES08A ( )

ES08A object destructor.

Inheritance diagram for ES08A:
Inheritance graph
[legend]
Collaboration diagram for ES08A:
Collaboration graph
[legend]

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