upm
1.0.2
Sensor/Actuator repository for libmraa (v1.1.1)
Main Page
Related Pages
UPM Libraries
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
uln200xa
uln200xa.hpp
1
/*
2
* Author: Jon Trulson <jtrulson@ics.com>
3
* Copyright (c) 2015-2016 Intel Corporation.
4
*
5
* Permission is hereby granted, free of charge, to any person obtaining
6
* a copy of this software and associated documentation files (the
7
* "Software"), to deal in the Software without restriction, including
8
* without limitation the rights to use, copy, modify, merge, publish,
9
* distribute, sublicense, and/or sell copies of the Software, and to
10
* permit persons to whom the Software is furnished to do so, subject to
11
* the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be
14
* included in all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
*/
24
#pragma once
25
26
#include <
uln200xa.h
>
27
28
namespace
upm {
29
58
class
ULN200XA
{
59
public
:
60
70
ULN200XA
(
int
stepsPerRev,
unsigned
int
i1,
unsigned
int
i2,
71
unsigned
int
i3,
unsigned
int
i4);
72
76
~ULN200XA
();
77
83
void
setSpeed
(
unsigned
int
speed);
84
90
void
setDirection
(
ULN200XA_DIRECTION_T
dir);
91
97
void
stepperSteps
(
unsigned
int
steps);
98
103
void
release
();
104
105
protected
:
106
uln200xa_context
m_uln200xa;
107
108
private
:
109
};
110
}
111
112
upm::ULN200XA::setDirection
void setDirection(ULN200XA_DIRECTION_T dir)
Definition:
uln200xa.cxx:53
uln200xa.h
C API for the uln200xa driver.
upm::ULN200XA::release
void release()
Definition:
uln200xa.cxx:63
upm::ULN200XA::stepperSteps
void stepperSteps(unsigned int steps)
Definition:
uln200xa.cxx:58
ULN200XA_DIRECTION_T
ULN200XA_DIRECTION_T
Definition:
uln200xa.h:64
upm::ULN200XA::~ULN200XA
~ULN200XA()
Definition:
uln200xa.cxx:43
upm::ULN200XA::setSpeed
void setSpeed(unsigned int speed)
Definition:
uln200xa.cxx:48
upm::ULN200XA
UPM module for the ULN200XA Darlington Stepper Driver.
Definition:
uln200xa.hpp:58
_uln200xa_context
Definition:
uln200xa.h:48
upm::ULN200XA::ULN200XA
ULN200XA(int stepsPerRev, unsigned int i1, unsigned int i2, unsigned int i3, unsigned int i4)
Definition:
uln200xa.cxx:34
Generated on Thu Dec 8 2016 16:18:49 for upm by
1.8.6