]>
Commit | Line | Data |
---|---|---|
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" | |
902cb3c0 | 15 | #include "proxmark3.h" |
7fe9b0b7 | 16 | #include "cmdmain.h" |
17 | ||
902cb3c0 | 18 | uint8_t* sample_buf; |
7fe9b0b7 | 19 | |
c188b1b9 | 20 | void GetFromBigBuf(uint8_t *dest, int bytes, int start_index) { |
21 | sample_buf = dest; | |
22 | UsbCommand c = {CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K, {start_index, bytes, 0}}; | |
23 | clearCommandBuffer(); | |
24 | SendCommand(&c); | |
7fe9b0b7 | 25 | } |
0b0b182f | 26 | void GetEMLFromBigBuf(uint8_t *dest, uint32_t bytes, uint32_t start_index) { |
aaa1a9a2 | 27 | sample_buf = dest; |
28 | UsbCommand c = {CMD_DOWNLOAD_EML_BIGBUF, {start_index, bytes, 0}}; | |
29 | clearCommandBuffer(); | |
30 | SendCommand(&c); | |
31 | } | |
32 |