proxmark3/armsrc/iso14443a.h

22 lines
799 B
C
Raw Normal View History

2010-07-13 21:39:30 +08:00
#ifndef __ISO14443A_H
#define __ISO14443A_H
#include "common.h"
typedef struct nestedVector { uint32_t nt, ks1; } nestedVector;
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);
2010-07-13 21:39:30 +08:00
extern void ReaderTransmitShort(const uint8_t* bt);
extern void ReaderTransmit(uint8_t* frame, int len);
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);
extern int ReaderReceivePar(uint8_t* receivedAnswer, uint32_t * parptr);
2010-07-13 21:39:30 +08:00
extern void iso14443a_setup();
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 */