- add function to read RC632 serial number
git-svn-id: https://svn.openpcd.org:2342/trunk@254 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
This commit is contained in:
parent
d9c442272b
commit
9e6368f195
|
@ -17,6 +17,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
@ -1470,3 +1473,14 @@ rc632_mifare_transceive(struct rfid_asic_handle *handle,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define RC632_E2_PRODUCT_TYPE 0
|
||||
#define RC632_E2_PRODUCT_SERIAL 8
|
||||
#define RC632_E2_RS_MAX_P 14
|
||||
|
||||
int rc632_get_serial(struct rfid_asic_handle *handle,
|
||||
u_int32_t *serial)
|
||||
{
|
||||
return rc632_read_eeprom(handle, RC632_E2_PRODUCT_SERIAL,
|
||||
4, (u_int8_t *)serial);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue