Project

General

Profile

Revision 12ea39cc

ID12ea39cc64a8ebc9b7f3c176488a210d80684453
Parent 3811693d
Child e53aa5c5

Added by Thomas Mullins over 11 years ago

Added actual control of tool

View differences:

toolbox/rfid.h
15 15
/* Should be called before anything else */
16 16
void rfid_init();
17 17

  
18
/* Reads the serial number of an rfid tag into an internal buffer, accessbile
18
/* Reads the serial number of an rfid tag into an internal buffer, accessible
19 19
 * with rfid_get_serno */
20 20
void rfid_read();
21 21

  
......
28 28
 * into serno, which should be at least RFID_SERNO_SIZE bytes */
29 29
void rfid_get_serno(char *serno);
30 30

  
31
/* Call this only after calling rfid_read. Returns 1 if serno matches the
32
 * internal buffer of the most recently read serial number */
33
char rfid_check_serno(char *serno);
34

  
35
/* Call this only after calling rfid_read. Returns 1 if the internal buffer is
36
 * nonzero, meaning a serial number was successfully read from an rfid tag */
37
char rfid_nonzero();
38

  
31 39
#endif

Also available in: Unified diff