mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
style
This commit is contained in:
@@ -795,14 +795,14 @@ int saveFileWAVE(const char *preferredName, const int *data, size_t datalen) {
|
||||
.type = "WAVE",
|
||||
.format.tag = "fmt ",
|
||||
.format.size = sizeof(wave_info.format) - sizeof(wave_info.format.tag) - sizeof(wave_info.format.size),
|
||||
.format.codec = 1, // PCM
|
||||
.format.nb_channel = 1,
|
||||
.format.sample_per_sec = 125000, // TODO update for other tag types
|
||||
.format.byte_per_sec = 125000, // TODO update for other tag types
|
||||
.format.block_align = 1,
|
||||
.format.bit_per_sample = 8,
|
||||
.audio_data.tag = "data",
|
||||
.audio_data.size = datalen,
|
||||
.format.codec = 1, // PCM
|
||||
.format.nb_channel = 1,
|
||||
.format.sample_per_sec = 125000, // TODO update for other tag types
|
||||
.format.byte_per_sec = 125000, // TODO update for other tag types
|
||||
.format.block_align = 1,
|
||||
.format.bit_per_sample = 8,
|
||||
.audio_data.tag = "data",
|
||||
.audio_data.size = datalen,
|
||||
};
|
||||
|
||||
FILE *wave_file = fopen(fileName, "wb");
|
||||
|
||||
+2
-2
@@ -63,8 +63,8 @@ typedef struct {
|
||||
uint64_t current_key; // Use 64 bit and truncate when needed.
|
||||
uint8_t mode;
|
||||
uint8_t charset[
|
||||
BF_CHARSET_DIGITS_SIZE
|
||||
+ BF_CHARSET_UPPERCASE_SIZE
|
||||
BF_CHARSET_DIGITS_SIZE
|
||||
+ BF_CHARSET_UPPERCASE_SIZE
|
||||
];
|
||||
uint8_t charset_length;
|
||||
|
||||
|
||||
+12
-12
@@ -73,14 +73,14 @@
|
||||
|
||||
static const int Iso15693FrameSOF[] = {
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
-1, -1, -1, -1,
|
||||
-1, -1, -1, -1,
|
||||
1, 1, 1, 1,
|
||||
1, 1, 1, 1
|
||||
};
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
-1, -1, -1, -1,
|
||||
-1, -1, -1, -1,
|
||||
1, 1, 1, 1,
|
||||
1, 1, 1, 1
|
||||
};
|
||||
static const int Iso15693Logic0[] = {
|
||||
1, 1, 1, 1,
|
||||
1, 1, 1, 1,
|
||||
@@ -89,10 +89,10 @@ static const int Iso15693Logic0[] = {
|
||||
};
|
||||
static const int Iso15693Logic1[] = {
|
||||
-1, -1, -1, -1,
|
||||
-1, -1, -1, -1,
|
||||
1, 1, 1, 1,
|
||||
1, 1, 1, 1
|
||||
};
|
||||
-1, -1, -1, -1,
|
||||
1, 1, 1, 1,
|
||||
1, 1, 1, 1
|
||||
};
|
||||
|
||||
// EOF defined as
|
||||
// 1) logic '0' (8 pulses of 423.75kHz followed by unmodulated for 18.88us)
|
||||
|
||||
+1
-1
@@ -12375,6 +12375,6 @@
|
||||
"metadata": {
|
||||
"commands_extracted": 713,
|
||||
"extracted_by": "PM3Help2JSON v1.00",
|
||||
"extracted_on": "2024-01-26T08:13:47"
|
||||
"extracted_on": "2024-01-26T11:38:54"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -280,7 +280,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
// 64KB SRAM -> 524288 bits(max sample num) < 2^30
|
||||
uint32_t samples :
|
||||
uint32_t samples :
|
||||
LF_SAMPLES_BITS;
|
||||
bool realtime : 1;
|
||||
bool verbose : 1;
|
||||
|
||||
Reference in New Issue
Block a user