1 package RFID::Biblio::Reader::API;
8 RFID::Biblio::Reader::API - low-level RFID reader documentation
12 =head1 MANDATORY METHODS
14 Each reader must implement following hooks as sub-classes.
22 my @tags = $self->invetory;
26 my $hash = $self->read_blocks( $tag );
28 All blocks are under key which is tag UID with array of blocks returned from reader
30 $hash = { 'E000000123456789' => [ 'blk1', 'blk2', ... ] };
32 L<RFID::Biblio::Reader::3M810> sends tag UID with data payload, so we might expect
33 to receive response from other tags from protocol specification,
37 $self->write_blocks( $tag => $bytes );
39 $self->write_blocks( $tag => [ 'blk1', 'blk2', ... ] );
43 my $afi = $self->read_afi( $tag );
47 $self->write_afi( $tag => $afi );
54 Just calls C<init> in reader implementation so this class
55 can be used as simple stub base class like
56 L<RFID::Biblio::Reader::librfid> does
64 $self->init && return $self;