Wiegand handler

I am hoping there is a Wiegand protocol file i can import into the project so i dont have to write it. Is there a function that has already been done i can import into my project and use?