mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
em4x70: fix function names
This commit is contained in:
parent
6a9d975260
commit
a2c21f1d07
1 changed files with 10 additions and 10 deletions
|
@ -80,7 +80,7 @@ static void init_tag(void) {
|
|||
memset(tag.data, 0x00, sizeof(tag.data) / sizeof(tag.data[0]));
|
||||
}
|
||||
|
||||
static void EM4170_setup_read(void) {
|
||||
static void em4x70_setup_read(void) {
|
||||
|
||||
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD);
|
||||
|
@ -550,7 +550,7 @@ static bool em4x70_read_um2(void) {
|
|||
|
||||
}
|
||||
|
||||
static bool find_EM4X70_Tag(void) {
|
||||
static bool find_em4x70_Tag(void) {
|
||||
// function is used to check wether a tag on the proxmark is an
|
||||
// EM4170 tag or not -> speed up "lf search" process
|
||||
return find_listen_window(false);
|
||||
|
@ -646,10 +646,10 @@ void em4x70_info(em4x70_data_t *etd) {
|
|||
command_parity = etd->parity;
|
||||
|
||||
init_tag();
|
||||
EM4170_setup_read();
|
||||
em4x70_setup_read();
|
||||
|
||||
// Find the Tag
|
||||
if (get_signalproperties() && find_EM4X70_Tag()) {
|
||||
if (get_signalproperties() && find_em4x70_Tag()) {
|
||||
// Read ID, UM1 and UM2
|
||||
status = em4x70_read_id() && em4x70_read_um1() && em4x70_read_um2();
|
||||
}
|
||||
|
@ -666,10 +666,10 @@ void em4x70_write(em4x70_data_t *etd) {
|
|||
command_parity = etd->parity;
|
||||
|
||||
init_tag();
|
||||
EM4170_setup_read();
|
||||
em4x70_setup_read();
|
||||
|
||||
// Find the Tag
|
||||
if (get_signalproperties() && find_EM4X70_Tag()) {
|
||||
if (get_signalproperties() && find_em4x70_Tag()) {
|
||||
|
||||
// Write
|
||||
status = write(etd->word, etd->address) == PM3_SUCCESS;
|
||||
|
@ -695,10 +695,10 @@ void em4x70_unlock(em4x70_data_t *etd) {
|
|||
command_parity = etd->parity;
|
||||
|
||||
init_tag();
|
||||
EM4170_setup_read();
|
||||
em4x70_setup_read();
|
||||
|
||||
// Find the Tag
|
||||
if (get_signalproperties() && find_EM4X70_Tag()) {
|
||||
if (get_signalproperties() && find_em4x70_Tag()) {
|
||||
|
||||
// Read ID (required for send_pin command)
|
||||
if (em4x70_read_id()) {
|
||||
|
@ -729,10 +729,10 @@ void em4x70_auth(em4x70_data_t *etd) {
|
|||
command_parity = etd->parity;
|
||||
|
||||
init_tag();
|
||||
EM4170_setup_read();
|
||||
em4x70_setup_read();
|
||||
|
||||
// Find the Tag
|
||||
if (get_signalproperties() && find_EM4X70_Tag()) {
|
||||
if (get_signalproperties() && find_em4x70_Tag()) {
|
||||
|
||||
// Authenticate and get tag response
|
||||
status = authenticate(etd->rnd, etd->frnd, response) == PM3_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue