sync.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of the SCHUNK Canopen Driver suite.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 SCHUNK GmbH, Lauffen/Neckar Germany
12 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
24 
25 #ifndef SYNC_H
26 #define SYNC_H
27 
29 #include "helper.h"
30 #include "ds301.h"
31 
32 namespace icl_hardware {
33 namespace canopen_schunk {
34 
35 // TODO(optional) include a sync counter that is transmitted, however.. i can not see the point in it DS301 clause 7.5.2.22: "The SYNC consumer shall ignore the value itself"
36 
41 static inline void sendSync(const CanDevPtr &can_device)
42 {
43  can_device->Send(CanMsg(ds301::ID_SYNC,0,0,reinterpret_cast<unsigned char*>(NULL)));
44 }
45 
46 }} // end of NS
47 #endif // SYNC_H
static void sendSync(const CanDevPtr &can_device)
sendSync sends a SYNC message which is used to ensure synchronous processing of all CanOpen nodes...
Definition: sync.h:41
static const uint16_t ID_SYNC
Definition: ds301.h:46
icl_hardware::can::tCanMessage CanMsg
Definition: helper.h:35


schunk_canopen_driver
Author(s): Felix Mauch , Georg Heppner
autogenerated on Mon Jun 10 2019 15:07:49