mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
Set up framework for sniffing
(cherry picked from commit 8a0b331)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "ISO14443-2A.h"
|
||||
#include "Reader14443-2A.h"
|
||||
#include "SniffISO14443-2A.h"
|
||||
|
||||
/* Timing definitions for ISO14443A */
|
||||
#define ISO14443A_SUBCARRIER_DIVIDER 16
|
||||
@@ -231,6 +232,7 @@ INLINE void CodecSetLoadmodState(bool bOnOff) {
|
||||
}
|
||||
}
|
||||
|
||||
// Turn on and off the codec Reader field
|
||||
INLINE void CodecSetReaderField(bool bOnOff) { // this is the function for turning on/off the reader field dumbly; before using this function, please consider to use CodecReaderField{Start,Stop}
|
||||
|
||||
if (bOnOff) {
|
||||
@@ -244,6 +246,7 @@ INLINE void CodecSetReaderField(bool bOnOff) { // this is the function for turni
|
||||
}
|
||||
}
|
||||
|
||||
// Get the status of the reader field
|
||||
INLINE bool CodecGetReaderField(void) {
|
||||
return (CODEC_READER_TIMER.CTRLA == TC_CLKSEL_DIV1_gc) && (AWEXC.OUTOVEN == CODEC_READER_MASK);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// Created by Zitai Chen on 05/07/2018.
|
||||
//
|
||||
|
||||
#include "SniffISO14443-2A.h"
|
||||
|
||||
#include "Reader14443-2A.h"
|
||||
#include "Codec.h"
|
||||
#include "../System.h"
|
||||
#include "../Application/Application.h"
|
||||
#include "LEDHook.h"
|
||||
#include "Terminal/Terminal.h"
|
||||
#include <util/delay.h>
|
||||
|
||||
|
||||
void Sniff14443ACodecInit(void){
|
||||
|
||||
}
|
||||
|
||||
void Sniff14443ACodecDeInit(void) {
|
||||
|
||||
}
|
||||
void Sniff14443ACodecTask(void)
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by 陈子泰 on 05/07/2018.
|
||||
//
|
||||
|
||||
#ifndef CHAMELEON_MINI_SNIFFISO14443_2A_H
|
||||
#define CHAMELEON_MINI_SNIFFISO14443_2A_H
|
||||
|
||||
|
||||
#include "Codec.h"
|
||||
#include "Terminal/CommandLine.h"
|
||||
|
||||
/* Codec Interface */
|
||||
void Sniff14443ACodecInit(void);
|
||||
void Sniff14443ACodecDeInit(void);
|
||||
void Sniff14443ACodecTask(void);
|
||||
|
||||
|
||||
|
||||
#endif //CHAMELEON_MINI_SNIFFISO14443_2A_H
|
||||
Reference in New Issue
Block a user