37 #include <unordered_map>
67 TransmitPDOMapping(
Core& core,
const std::unordered_map<Address, Entry>& dictionary,
const std::unordered_map<std::string, Address>& name_to_address, uint16_t cob_id_,
68 TransmissionType transmission_type_, std::chrono::milliseconds repeat_time_,
const std::vector<Mapping>& mappings_);
101 void check_correctness()
const;
103 static const bool debug =
false;
108 const std::unordered_map<Address, Entry>& m_dictionary;
111 const std::unordered_map<std::string, Address>& m_name_to_address;
TransmissionType transmission_type
Transmission type.
std::chrono::milliseconds repeat_time
Send repeat time.
This class represents a mapping from one or more dictionary entries to one transmit PDO...
~TransmitPDOMapping()
Stops the transmitter thread if there is one.
std::unique_ptr< std::thread > transmitter
The transmitter thread.
void send() const
Sends the PDO.
This class implements the Core of KaCanOpen It communicates with the CAN driver, sends CAN messages a...
uint16_t cob_id
COB-ID of the PDO.
std::vector< Mapping > mappings
Mapped entries with offset (see Mapping class)
TransmitPDOMapping(Core &core, const std::unordered_map< Address, Entry > &dictionary, const std::unordered_map< std::string, Address > &name_to_address, uint16_t cob_id_, TransmissionType transmission_type_, std::chrono::milliseconds repeat_time_, const std::vector< Mapping > &mappings_)
Constructor.