Merge pull request #162 from marshmellow42/CoverityFixes
[legacy-proxmark3.git] / client / data.c
blob4d7d1e410fdc04e73789345b3560c7a671d5a624
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 //-----------------------------------------------------------------------------
11 #include <string.h>
12 #include <stdint.h>
13 #include "data.h"
14 #include "ui.h"
15 #include "proxmark3.h"
16 #include "cmdmain.h"
18 uint8_t* sample_buf;
20 void GetFromBigBuf(uint8_t *dest, int bytes, int start_index)
22 sample_buf = dest;
23 UsbCommand c = {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K, {start_index, bytes, 0}};
24 SendCommand(&c);