View Source Wiegand.CardFormat (wiegand v0.1.0)

A CardFormat describes the bit format stored on a Wiegand card.

fields

Fields

  • even_parity_bits - the number of bits to sum for the even parity check
  • odd_parity_bits - the number of bits to sum for the odd parity check
  • fc_len - the size in bits of the facility code field
  • card_id_len the size in bits of the card ID field

Link to this section Summary

Functions

Format for HID 10301 cards.

Format for HID 10302 cards.

Format for HID 10304 cards.

Link to this section Types

@type t() :: %Wiegand.CardFormat{
  card_id_len: non_neg_integer(),
  even_parity_bits: non_neg_integer(),
  fc_len: non_neg_integer(),
  odd_parity_bits: non_neg_integer()
}

Link to this section Functions

@spec hid_10301() :: t()

Format for HID 10301 cards.

@spec hid_10302() :: t()

Format for HID 10302 cards.

@spec hid_10304() :: t()

Format for HID 10304 cards.

@spec total_bits(t()) :: non_neg_integer()