Example program to read HID ProxCards using the gatech BuzzCard format with a HID ProxPoint Plus 6005BG00.

Dependencies:   HID_Wiegand mbed USBDevice

See library: http://mbed.org/users/cbookman3/code/HID_Wiegand/wiki/Homepage

main.cpp

Committer:
cbookman3
Date:
2014-04-22
Revision:
0:59e72754e5b6
Child:
1:093dffbd107b

File content as of revision 0:59e72754e5b6:

#include "mbed.h"
#include "Wiegand.h"

Serial pc(USBTX, USBRX); // tx, rx
void onCardRead();

Wiegand rfid(p30, p29, p28, &onCardRead); //, PinName pHold, &onCardRead); //void (*onCardRead)(void));

int main() {
    while(1) {
        rfid.doEvents();
    }
}

void onCardRead() {
   uint64_t data; 
   data = rfid.getBits(14, 33);
   pc.printf("\nRead id of: %lld",data);
   
}