2010-07-13 21:39:30 +08:00
|
|
|
#ifndef __ISO14443A_H
|
|
|
|
#define __ISO14443A_H
|
|
|
|
#include "common.h"
|
|
|
|
|
2011-05-31 19:31:20 +08:00
|
|
|
typedef struct nestedVector { uint32_t nt, ks1; } nestedVector;
|
|
|
|
|
2011-05-26 20:55:15 +08:00
|
|
|
extern byte_t oddparity (const byte_t bt);
|
|
|
|
extern uint32_t GetParity(const uint8_t * pbtCmd, int iLen);
|
2010-07-13 21:39:30 +08:00
|
|
|
extern void AppendCrc14443a(uint8_t* data, int len);
|
2011-05-26 20:55:15 +08:00
|
|
|
|
2010-07-13 21:39:30 +08:00
|
|
|
extern void ReaderTransmitShort(const uint8_t* bt);
|
|
|
|
extern void ReaderTransmit(uint8_t* frame, int len);
|
2011-05-26 20:55:15 +08:00
|
|
|
extern void ReaderTransmitPar(uint8_t* frame, int len, uint32_t par);
|
2010-07-13 21:39:30 +08:00
|
|
|
extern int ReaderReceive(uint8_t* receivedAnswer);
|
2011-05-31 19:31:20 +08:00
|
|
|
extern int ReaderReceivePar(uint8_t* receivedAnswer, uint32_t * parptr);
|
2011-05-26 20:55:15 +08:00
|
|
|
|
2010-07-13 21:39:30 +08:00
|
|
|
extern void iso14443a_setup();
|
2011-05-26 20:55:15 +08:00
|
|
|
extern int iso14443a_select_card(uint8_t * uid_ptr, iso14a_card_select_t * resp_data, uint32_t * cuid_ptr);
|
2010-07-13 21:39:30 +08:00
|
|
|
extern void iso14a_set_trigger(int enable);
|
|
|
|
|
|
|
|
#endif /* __ISO14443A_H */
|