File: crc16_usb.rb

package info (click to toggle)
ruby-digest-crc 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: ruby: 427; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 168 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'digest/crc16'

module Digest
  #
  # Implements the CRC16 USB algorithm.
  #
  class CRC16USB < CRC16

    INIT_CRC = 0xffff

    XOR_MASK = 0xffff

  end
end