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 checkodd_parity_bits
- the number of bits to sum for the odd parity checkfc_len
- the size in bits of the facility code fieldcard_id_len
the size in bits of the card ID field
Link to this section Summary
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()