class Wiegand::Wiegand26

Defined in:

wiegand/models.cr

Constant Summary

CARD_MASK = 131070
CARD_PAR_MASK = 131071
FAC_PAR_MASK = 66977792
FACILITY_MASK = 33423360

Class Method Summary

Instance Method Summary

Instance methods inherited from class Wiegand::Base

card_number : UInt32 card_number, card_number=(card_number : UInt32) card_number=, facility : UInt32 facility, facility=(facility : UInt32) facility=, wiegand : UInt64 wiegand, wiegand=(wiegand : UInt64) wiegand=

Constructor methods inherited from class Wiegand::Base

new(wiegand : UInt64, facility : UInt32, card_number : UInt32) new

Class methods inherited from class Wiegand::Base

count_1s(int : UInt32 | UInt64) count_1s

Class Method Detail

def self.from_components(facility : UInt32, card_number : UInt32) #

Convert components to wiegand 26 card data


[View source]

Instance Method Detail

def from_wiegand(wiegand : UInt64) #

Convert wiegand 26 card data to components

Hex card data: 0x21a6616 Card Number: 13067 Card Facility Code: 13


[View source]