proxmark3/armsrc/lfadc.h

38 lines
1.1 KiB
C
Raw Normal View History

2019-12-24 17:20:07 +08:00
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LF ADC read/write implementation
//-----------------------------------------------------------------------------
#ifndef __LFADC_H__
#define __LFADC_H__
#include "proxmark3_arm.h"
#include "common.h"
#include "cmd.h"
#include "util.h"
#include "string.h"
extern bool logging;
void lf_sample_mean(void);
2019-12-24 17:20:07 +08:00
bool lf_test_periods(size_t expected, size_t count);
size_t lf_count_edge_periods(size_t max);
size_t lf_detect_gap(size_t max);
void lf_reset_counter();
2020-01-30 00:26:08 +08:00
2019-12-24 17:20:07 +08:00
bool lf_get_tag_modulation();
2020-01-30 00:26:08 +08:00
bool lf_get_reader_modulation();
2019-12-24 17:20:07 +08:00
void lf_wait_periods(size_t periods);
2020-01-29 12:12:36 +08:00
//void lf_init(bool reader);
void lf_init(bool reader, bool simulate);
2019-12-24 17:20:07 +08:00
void lf_finalize();
size_t lf_detect_field_drop(size_t max);
bool lf_manchester_send_bytes(const uint8_t *frame, size_t frame_len);
2019-12-31 04:17:37 +08:00
void lf_modulation(bool modulation);
2019-12-24 17:20:07 +08:00
#endif // __LFADC_H__