class CRC::CRC16USB

Overview

Implements the CRC16 USB algorithm.

Defined in:

crc/crc16_usb.cr

Constructors

Class Method Summary

Instance methods inherited from class CRC::CRC16

final_impl(dst : Bytes) : Nil final_impl, update_impl(data : Bytes) : Nil update_impl

Constructor methods inherited from class CRC::CRC16

new(crc : UINT = self.class.init_crc) new

Class methods inherited from class CRC::CRC16

init_crc : UInt16 init_crc

Instance methods inherited from class CRC::Base(UInt16)

<<(data) <<, checksum : UINT checksum, digest_size : Int32 digest_size, final_impl(dst : Bytes) : Nil final_impl, reset_impl : Nil reset_impl, update_impl(data : Bytes) : Nil update_impl

Constructor methods inherited from class CRC::Base(UInt16)

new(crc : UINT = self.class.init_crc) new

Class methods inherited from class CRC::Base(UInt16)

checksum(data) : UINT checksum, init_crc : UINT init_crc, xor_mask : UINT xor_mask

Constructor Detail

def self.new(crc : UINT = self.class.init_crc) #

Initializes the CRC instance.


[View source]

Class Method Detail

def self.init_crc : UInt16 #

Initial CRC value.


[View source]
def self.xor_mask : UInt16 #

CRC XOR mask.


[View source]