mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 18:03:33 +08:00
23 lines
490 B
C++
23 lines
490 B
C++
/*
|
|
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
|
*/
|
|
|
|
#include <uavcan/transport/outgoing_transfer_registry.hpp>
|
|
|
|
namespace uavcan
|
|
{
|
|
/*
|
|
* OutgoingTransferRegistryKey
|
|
*/
|
|
#if UAVCAN_TOSTRING
|
|
std::string OutgoingTransferRegistryKey::toString() const
|
|
{
|
|
char buf[40];
|
|
(void)snprintf(buf, sizeof(buf), "dtid=%u tt=%u dnid=%u",
|
|
int(data_type_id_.get()), int(transfer_type_), int(destination_node_id_.get()));
|
|
return std::string(buf);
|
|
}
|
|
#endif
|
|
|
|
}
|