mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
make style
This commit is contained in:
+5
-5
@@ -880,7 +880,7 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||
uint8_t downlink_mode;
|
||||
} PACKED;
|
||||
struct p *payload = (struct p *) packet->data.asBytes;
|
||||
T55xxReadBlock(payload->page, payload->pwdmode, false, payload->blockno, payload->password,payload->downlink_mode);
|
||||
T55xxReadBlock(payload->page, payload->pwdmode, false, payload->blockno, payload->password, payload->downlink_mode);
|
||||
break;
|
||||
}
|
||||
case CMD_T55XX_WRITE_BLOCK: {
|
||||
@@ -889,15 +889,15 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||
break;
|
||||
}
|
||||
case CMD_T55XX_WAKEUP: {
|
||||
T55xxWakeUp(packet->oldarg[0],packet->oldarg[1]);
|
||||
break;
|
||||
T55xxWakeUp(packet->oldarg[0], packet->oldarg[1]);
|
||||
break;
|
||||
}
|
||||
case CMD_T55XX_RESET_READ: {
|
||||
T55xxResetRead(packet->data.asBytes[0]&0xff);
|
||||
T55xxResetRead(packet->data.asBytes[0] & 0xff);
|
||||
break;
|
||||
}
|
||||
case CMD_T55XX_CHKPWDS: {
|
||||
T55xx_ChkPwds(packet->data.asBytes[0]&0xff);
|
||||
T55xx_ChkPwds(packet->data.asBytes[0] & 0xff);
|
||||
break;
|
||||
}
|
||||
case CMD_PCF7931_READ: {
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@ void T55xxResetRead(uint8_t flags);
|
||||
//id T55xxWriteBlock(uint32_t data, uint8_t blockno, uint32_t pwd, uint8_t flags);
|
||||
void T55xxWriteBlock(uint8_t *data);
|
||||
// void T55xxWriteBlockExt(uint32_t data, uint8_t blockno, uint32_t pwd, uint8_t flags);
|
||||
void T55xxReadBlock(uint8_t page, bool pwd_mode, bool brute_mem, uint8_t block, uint32_t pwd,uint8_t downlink_mode);
|
||||
void T55xxReadBlock(uint8_t page, bool pwd_mode, bool brute_mem, uint8_t block, uint32_t pwd, uint8_t downlink_mode);
|
||||
void T55xxWakeUp(uint32_t Pwd, uint8_t flags);
|
||||
void T55xx_ChkPwds(uint8_t flags);
|
||||
|
||||
|
||||
+347
-329
File diff suppressed because it is too large
Load Diff
+324
-323
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -903,7 +903,7 @@ static int l_T55xx_readblock(lua_State *L) {
|
||||
// try reading the config block and verify that PWD bit is set before doing this!
|
||||
if (!override) {
|
||||
|
||||
if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, false, 0,0)) {
|
||||
if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, false, 0, 0)) {
|
||||
return returnToLuaWithError(L, "Failed to read config block");
|
||||
}
|
||||
|
||||
@@ -920,7 +920,7 @@ static int l_T55xx_readblock(lua_State *L) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!AquireData(usepage1, block, usepwd, password,0)) {
|
||||
if (!AquireData(usepage1, block, usepwd, password, 0)) {
|
||||
return returnToLuaWithError(L, "Failed to aquire data from card");
|
||||
}
|
||||
|
||||
@@ -977,7 +977,7 @@ static int l_T55xx_detect(lua_State *L) {
|
||||
|
||||
if (!useGB) {
|
||||
|
||||
isok = AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password,0);
|
||||
isok = AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, 0);
|
||||
if (isok == false) {
|
||||
return returnToLuaWithError(L, "Failed to aquire LF signal data");
|
||||
}
|
||||
|
||||
+9
-9
@@ -129,20 +129,20 @@ typedef struct {
|
||||
} t55xx_config;
|
||||
*/
|
||||
|
||||
// Extended to support 1 of 4 timing
|
||||
// Extended to support 1 of 4 timing
|
||||
typedef struct {
|
||||
uint16_t start_gap ;
|
||||
uint16_t write_gap ;
|
||||
uint16_t write_0 ;
|
||||
uint16_t write_1 ;
|
||||
uint16_t write_2 ;
|
||||
uint16_t write_3 ;
|
||||
uint16_t read_gap ;
|
||||
uint16_t start_gap ;
|
||||
uint16_t write_gap ;
|
||||
uint16_t write_0 ;
|
||||
uint16_t write_1 ;
|
||||
uint16_t write_2 ;
|
||||
uint16_t write_3 ;
|
||||
uint16_t read_gap ;
|
||||
} t55xx_config_t;
|
||||
// This setup will allow for the 4 downlink modes "m" as well as other items if needed.
|
||||
// Given the one struct we can then read/write to flash/client in one go.
|
||||
typedef struct {
|
||||
t55xx_config_t m[4]; // mode
|
||||
t55xx_config_t m[4]; // mode
|
||||
} t55xx_config;
|
||||
|
||||
/*typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user