1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
15 #include "proxmark3.h"
19 size_t sample_buf_len
;
21 void GetFromBigBuf(uint8_t *dest
, int bytes
, int start_index
)
25 // start_index = ((start_index/12)*12);
26 // int n = start_index + bytes;
29 PrintAndLog("bad len in GetFromBigBuf");
33 UsbCommand c
= {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K
, {start_index
, bytes
, 0}};
36 for (int i = start_index; i < n; i += 48) {
37 UsbCommand c = {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K, {i, 0, 0}};
39 // WaitForResponse(CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K);
40 // memcpy(dest+(i*4), sample_buf, 48);