mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 17:13:34 +08:00
TransportCRC --> TransferCRC
This commit is contained in:
@@ -23,7 +23,7 @@ namespace uavcan
|
||||
* crc.hexdigest()
|
||||
* '29B1'
|
||||
*/
|
||||
class TransportCRC
|
||||
class TransferCRC
|
||||
{
|
||||
static const uint16_t Table[256];
|
||||
uint16_t value_;
|
||||
@@ -31,11 +31,11 @@ class TransportCRC
|
||||
public:
|
||||
enum { NumBytes = 2 };
|
||||
|
||||
TransportCRC()
|
||||
TransferCRC()
|
||||
: value_(0xFFFF)
|
||||
{ }
|
||||
|
||||
TransportCRC(const uint8_t* bytes, unsigned int len)
|
||||
TransferCRC(const uint8_t* bytes, unsigned int len)
|
||||
: value_(0xFFFF)
|
||||
{
|
||||
add(bytes, len);
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
class TransferListenerBase : public LinkedListNode<TransferListenerBase>
|
||||
{
|
||||
const DataTypeDescriptor& data_type_;
|
||||
const TransportCRC crc_base_; ///< Pre-initialized with data type hash, thus constant
|
||||
const TransferCRC crc_base_; ///< Pre-initialized with data type hash, thus constant
|
||||
|
||||
bool checkPayloadCrc(const uint16_t compare_with, const ITransferBuffer& tbb) const;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class TransferSender
|
||||
const uint64_t max_transfer_interval_;
|
||||
const DataTypeDescriptor& data_type_;
|
||||
const CanTxQueue::Qos qos_;
|
||||
const TransportCRC crc_base_;
|
||||
const TransferCRC crc_base_;
|
||||
|
||||
Dispatcher& dispatcher_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user