RFID::Libnfc::Device
use RFID::Libnfc; $device = RFID::Libnfc::Device->new();
Provides a perl OO api to libnfc functionalities (actually implements only mifare-related functionalities)
acName ( )
returns the printable name of the device
nc ( )
returns an integer representing the chip type
possible values are :
NC_PN531 NC_PN532 NC_PN533
these constants are defined in RFID::Libnfc::Constants
nds ( )
returns a pointer to the device connection specification (nfc_device_spec_t)
bActive ( )
returns a boolean which determines if the device is active or not
bCrc ( [ $bool ] )
get/set the crc field which determines if crc must be used or not
bPar ( [ $bool ] )
get/set the parity field which determines if parity must be used or not
ui8TxBits ( [ $bits ] )
get/set the internal buffer holding the transmit bits
RFID::Libnfc RFID::Libnfc::Device RFID::Libnfc::Target RFID::Libnfc::Constants
< check also documentation for libnfc c library [ http://www.libnfc.org/documentation/introduction ] >
xant
Copyright (C) 2009-2011 by xant <xant@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install RFID::Libnfc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RFID::Libnfc
CPAN shell
perl -MCPAN -e shell install RFID::Libnfc
For more information on module installation, please visit the detailed CPAN module installation guide.