]> git.zerfleddert.de Git - proxmark3-svn/blame - client/data.c
Restore original inline help behavior as we've now separate fcts for -h/-m
[proxmark3-svn] / client / data.c
CommitLineData
a553f267 1//-----------------------------------------------------------------------------
2// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3//
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
6// the license.
7//-----------------------------------------------------------------------------
8// Data utilities
9//-----------------------------------------------------------------------------
10
7fe9b0b7 11#include <string.h>
12#include <stdint.h>
13#include "data.h"
14#include "ui.h"
28fdb04f 15//#include "proxusb.h"
902cb3c0 16#include "proxmark3.h"
7fe9b0b7 17#include "cmdmain.h"
18
902cb3c0 19uint8_t* sample_buf;
20size_t sample_buf_len;
7fe9b0b7 21
db09cb3a 22void GetFromBigBuf(uint8_t *dest, int bytes, int start_index)
7fe9b0b7 23{
902cb3c0 24 sample_buf_len = 0;
25 sample_buf = dest;
26// start_index = ((start_index/12)*12);
27// int n = start_index + bytes;
db09cb3a 28 /*
29 if (n % 48 != 0) {
30 PrintAndLog("bad len in GetFromBigBuf");
31 return;
32 }
33 */
902cb3c0 34 UsbCommand c = {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K, {start_index, bytes, 0}};
35 SendCommand(&c);
36/*
37 for (int i = start_index; i < n; i += 48) {
db09cb3a 38 UsbCommand c = {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K, {i, 0, 0}};
39 SendCommand(&c);
902cb3c0 40// WaitForResponse(CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K);
41// memcpy(dest+(i*4), sample_buf, 48);
db09cb3a 42 }
902cb3c0 43*/
7fe9b0b7 44}
Impressum, Datenschutz