⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
rpiGPIO
All Projects
Scol
»
rpiGPIO
Overview
Activity
Roadmap
Issues
Spent time
Gantt
Calendar
News
Documents
Wiki
Files
Repository
API Documentation
Raspberry PI GPIO Scol plugin
G:
work
subversion
scol-technologies
trunk
scol
plugins
rpiGPIO
include
rpishiftdriver.h
1
2
#ifndef RPISHIFTDRIVER_H
3
#define RPISHIFTDRIVER_H
4
5
#include <boost/thread.hpp>
6
#include <vector>
7
#include <utility>
8
9
class
RpiShiftDriver
10
{
11
public
:
12
typedef
std::pair<int, int> shiftValue;
13
RpiShiftDriver
();
14
15
RpiShiftDriver
(
int
data,
int
clock,
int
latch,
int
nbOut);
16
17
~RpiShiftDriver
();
18
19
void
threadLoop();
20
21
void
SetValues(std::vector<shiftValue> values);
22
23
void
WriteValue(
int
value);
24
private
:
25
int
mNbOut;
26
int
mData;
27
int
mClock;
28
int
mLatch;
29
std::vector<shiftValue> mValues;
30
int
mCurPos;
31
bool
mState;
32
boost::thread mThread;
33
};
34
35
#endif
//RPISHIFTDRIVER_H
RpiShiftDriver
Definition
rpishiftdriver.h:10
Generated by
1.9.8
Loading...