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