Robot Agent
1.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
TDDD07_lab_release_2013-11-07
robot_agent
src
rfid.h
Go to the documentation of this file.
1
12
#ifndef __RFID_H
13
#define __RFID_H
14
15
/* -- Includes -- */
16
/* project libraries */
17
#include "
serialport.h
"
18
19
/* -- Types -- */
20
24
typedef
struct
s_RFID_STRUCT
25
{
26
serialport_t
*
sps
;
// serial port structure
27
char
id
[11];
// current id read
28
char
last_id
[11];
// last id read
29
30
}
rfid_t
;
31
32
/* -- Constants -- */
33
34
/* -- Function Prototypes -- */
35
rfid_t
*
rfid_open
(
char
*device_path);
// Open RFID connection
36
int
rfid_close
(
rfid_t
*rfids);
// Close RFID connection
37
int
rfid_read_locked
(
rfid_t
*rfids);
// Read RFID tag ID (locks program until tag is read)
38
int
rfid_read
(
rfid_t
*rfids);
// Read RFID tag ID
39
40
41
#endif
/* __RFID_H */
rfid_read
int rfid_read(rfid_t *rfids)
Definition:
rfid.c:124
rfid_read_locked
int rfid_read_locked(rfid_t *rfids)
Definition:
rfid.c:70
s_RFID_STRUCT::last_id
char last_id[11]
Definition:
rfid.h:28
rfid_open
rfid_t * rfid_open(char *device_path)
Definition:
rfid.c:35
serialport.h
s_SERIALPORT_STRUCT
Serial Port structure.
Definition:
serialport.h:23
rfid_t
struct s_RFID_STRUCT rfid_t
RFID structure.
s_RFID_STRUCT::sps
serialport_t * sps
Definition:
rfid.h:26
s_RFID_STRUCT
RFID structure.
Definition:
rfid.h:24
rfid_close
int rfid_close(rfid_t *rfids)
Definition:
rfid.c:53
Generated on Wed Nov 13 2013 14:02:31 for Robot Agent by
1.8.5