TransportCRC --> TransferCRC

This commit is contained in:
Pavel Kirienko
2014-02-26 18:16:14 +04:00
parent dc2460f264
commit 121f8d2dee
9 changed files with 16 additions and 16 deletions
@@ -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_;