Main Page
Namespaces
Classes
Files
File List
File Members
src
application
LdmrsNtpTimeApp.hpp
Go to the documentation of this file.
1
//
2
// LdmrsNtpTimeApp.hpp
3
//
4
5
#ifndef LDMRSNTPTIMEAPP_HPP
6
#define LDMRSNTPTIMEAPP_HPP
7
8
#include "../manager.hpp"
9
#include "../tools/Mutex.hpp"
10
#include "../datatypes/Scan.hpp"
11
#include "../devices/LuxBase.hpp"
12
13
namespace
application
14
{
15
16
struct
ntp_time_t
17
{
18
uint32_t
second
;
// Seconds since 1.1.1900
19
uint32_t
fraction
;
20
};
21
22
//
23
// LdmrsNtpTimeApp
24
//
25
class
LdmrsNtpTimeApp
:
public
BasicApplication
26
{
27
public
:
28
LdmrsNtpTimeApp
(
Manager
* manager);
29
virtual
~
LdmrsNtpTimeApp
();
30
31
protected
:
32
void
setData(
BasicData
& data);
// Receiver
33
34
private
:
35
ntp_time_t
convertUnixTimeToNtpTime(
struct
timeval& unixTime);
36
37
// void checkResolution(Scan& scan);
38
void
changeThreadFunction(
bool
& endThread,
UINT16
& waitTimeMs);
39
// bool changeFlexResConfiguration(const ScannerInfo::ResolutionMap& configuredRM);
40
// bool changeAngularResolutionType(devices::AngularResolutionType type);
41
// bool readDetailedErrorCode(UINT32* code = NULL);
42
43
private
:
44
bool
m_beVerbose
;
45
Manager
*
m_manager
;
46
SickThread<LdmrsNtpTimeApp, &LdmrsNtpTimeApp::changeThreadFunction>
m_changeThread
;
47
};
48
49
}
// namespace application
50
51
#endif
application::LdmrsNtpTimeApp
Definition:
LdmrsNtpTimeApp.hpp:25
application::BasicApplication
Definition:
BasicApplication.hpp:16
UINT16
uint16_t UINT16
Definition:
BasicDatatypes.hpp:27
application::ntp_time_t
Definition:
LdmrsNtpTimeApp.hpp:16
Manager
Definition:
manager.hpp:18
application::ntp_time_t::fraction
uint32_t fraction
Definition:
LdmrsNtpTimeApp.hpp:19
datatypes::BasicData
Definition:
BasicDatatypes.hpp:95
application
Definition:
BasicApplication.cpp:8
application::LdmrsNtpTimeApp::m_manager
Manager * m_manager
Definition:
LdmrsNtpTimeApp.hpp:45
application::ntp_time_t::second
uint32_t second
Definition:
LdmrsNtpTimeApp.hpp:18
application::LdmrsNtpTimeApp::m_beVerbose
bool m_beVerbose
Definition:
LdmrsNtpTimeApp.hpp:44
application::LdmrsNtpTimeApp::m_changeThread
SickThread< LdmrsNtpTimeApp,&LdmrsNtpTimeApp::changeThreadFunction > m_changeThread
Definition:
LdmrsNtpTimeApp.hpp:46
SickThread
Wrapper class for posix threads.
Definition:
SickThread.hpp:80
libsick_ldmrs
Author(s): SICK AG
, Martin Günther
, Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30