⚲
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
rpiecho.h
1
2
#ifndef RPIECHO_H
3
#define RPIECHO_H
4
5
#include <boost/thread.hpp>
6
7
class
RpiEcho
8
{
9
public
:
10
RpiEcho
();
11
12
RpiEcho
(
int
triggerpin,
int
echopin);
13
14
~RpiEcho
();
15
16
void
threadLoop();
17
18
int
ReadValue();
19
20
private
:
21
long
pulseIn(
int
timeout);
22
int
mTriggerPin;
23
int
mEchoPin;
24
int
mValue;
25
bool
mState;
26
boost::thread mThread;
27
boost::mutex mMutex;
28
};
29
30
#endif
//RPIECHO_H
RpiEcho
Definition
rpiecho.h:8
Generated by
1.9.8
Loading...