7 namespace soem_interface
14 template <
typename Value>
18 std::lock_guard<std::recursive_mutex> lock(
mutex_);
23 template <
typename Value>
27 std::lock_guard<std::recursive_mutex> lock(
mutex_);
32 template bool EthercatSlaveBase::sendSdoWrite<int8_t>(
const uint16_t index,
const uint8_t subindex,
33 const bool completeAccess,
const int8_t value);
34 template bool EthercatSlaveBase::sendSdoWrite<int16_t>(
const uint16_t index,
const uint8_t subindex,
35 const bool completeAccess,
const int16_t value);
36 template bool EthercatSlaveBase::sendSdoWrite<int32_t>(
const uint16_t index,
const uint8_t subindex,
37 const bool completeAccess,
const int32_t value);
38 template bool EthercatSlaveBase::sendSdoWrite<int64_t>(
const uint16_t index,
const uint8_t subindex,
39 const bool completeAccess,
const int64_t value);
40 template bool EthercatSlaveBase::sendSdoWrite<uint8_t>(
const uint16_t index,
const uint8_t subindex,
41 const bool completeAccess,
const uint8_t value);
42 template bool EthercatSlaveBase::sendSdoWrite<uint16_t>(
const uint16_t index,
const uint8_t subindex,
43 const bool completeAccess,
const uint16_t value);
44 template bool EthercatSlaveBase::sendSdoWrite<uint32_t>(
const uint16_t index,
const uint8_t subindex,
45 const bool completeAccess,
const uint32_t value);
46 template bool EthercatSlaveBase::sendSdoWrite<uint64_t>(
const uint16_t index,
const uint8_t subindex,
47 const bool completeAccess,
const uint64_t value);
48 template bool EthercatSlaveBase::sendSdoWrite<float>(
const uint16_t index,
const uint8_t subindex,
49 const bool completeAccess,
const float value);
50 template bool EthercatSlaveBase::sendSdoWrite<double>(
const uint16_t index,
const uint8_t subindex,
51 const bool completeAccess,
const double value);
53 template bool EthercatSlaveBase::sendSdoRead<int8_t>(
const uint16_t index,
const uint8_t subindex,
54 const bool completeAccess,
int8_t& value);
55 template bool EthercatSlaveBase::sendSdoRead<int16_t>(
const uint16_t index,
const uint8_t subindex,
56 const bool completeAccess,
int16_t& value);
57 template bool EthercatSlaveBase::sendSdoRead<int32_t>(
const uint16_t index,
const uint8_t subindex,
58 const bool completeAccess,
int32_t& value);
59 template bool EthercatSlaveBase::sendSdoRead<int64_t>(
const uint16_t index,
const uint8_t subindex,
60 const bool completeAccess,
int64_t& value);
61 template bool EthercatSlaveBase::sendSdoRead<uint8_t>(
const uint16_t index,
const uint8_t subindex,
62 const bool completeAccess,
uint8_t& value);
63 template bool EthercatSlaveBase::sendSdoRead<uint16_t>(
const uint16_t index,
const uint8_t subindex,
64 const bool completeAccess,
uint16_t& value);
65 template bool EthercatSlaveBase::sendSdoRead<uint32_t>(
const uint16_t index,
const uint8_t subindex,
66 const bool completeAccess,
uint32_t& value);
67 template bool EthercatSlaveBase::sendSdoRead<uint64_t>(
const uint16_t index,
const uint8_t subindex,
68 const bool completeAccess,
uint64_t& value);
69 template bool EthercatSlaveBase::sendSdoRead<float>(
const uint16_t index,
const uint8_t subindex,
70 const bool completeAccess,
float& value);
71 template bool EthercatSlaveBase::sendSdoRead<double>(
const uint16_t index,
const uint8_t subindex,
72 const bool completeAccess,
double& value);
75 const std::string& valueTypeString, std::string& valueString)
82 const std::string& valueTypeString,
const std::string& valueString)
void printWarnNotImplemented()
Prints a warning. Use this method to suppress compiler warnings.
EthercatSlaveBase(EthercatBusBase *bus, const uint32_t address)
bool sendSdoRead(const uint16_t index, const uint8_t subindex, const bool completeAccess, Value &value)
bool sendSdoWrite(const uint16_t slave, const uint16_t index, const uint8_t subindex, const bool completeAccess, const Value value)
std::recursive_mutex mutex_
unsigned __int64 uint64_t
virtual bool sendSdoWriteGeneric(const std::string &indexString, const std::string &subindexString, const std::string &valueTypeString, const std::string &valueString)
bool sendSdoRead(const uint16_t slave, const uint16_t index, const uint8_t subindex, const bool completeAccess, Value &value)
Class for managing an ethercat bus containing one or multiple slaves.
bool sendSdoWrite(const uint16_t index, const uint8_t subindex, const bool completeAccess, const Value value)
virtual bool sendSdoReadGeneric(const std::string &indexString, const std::string &subindexString, const std::string &valueTypeString, std::string &valueString)