Skip to content

Commit

Permalink
refactor: nci factory test rf on
Browse files Browse the repository at this point in the history
  • Loading branch information
DeimosHall committed Aug 8, 2023
1 parent d27531a commit 9c036bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Electroniccats_PN7150.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ bool Electroniccats_PN7150::NxpNci_FactoryTest_Prbs(NxpNci_TechType_t type, NxpN
return Electroniccats_PN7150::nciFactoryTestPrbs(type, bitrate);
}

bool Electroniccats_PN7150::NxpNci_FactoryTest_RfOn(void) {
bool Electroniccats_PN7150::nciFactoryTestRfOn() {
uint8_t NCIRfOn[] = {0x2F, 0x3D, 0x02, 0x20, 0x01};

(void)writeData(NCIRfOn, sizeof(NCIRfOn));
Expand All @@ -1667,3 +1667,8 @@ bool Electroniccats_PN7150::NxpNci_FactoryTest_RfOn(void) {

return SUCCESS;
}

// Deprecated, use nciFactoryTestRfOn instead
bool Electroniccats_PN7150::NxpNci_FactoryTest_RfOn() {
return Electroniccats_PN7150::nciFactoryTestRfOn();
}
3 changes: 2 additions & 1 deletion src/Electroniccats_PN7150.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ class Electroniccats_PN7150 {
bool ReaderActivateNext(RfIntf_t *pRfIntf); // Deprecated, use readerActivateNext() instead
bool nciFactoryTestPrbs(NxpNci_TechType_t type, NxpNci_Bitrate_t bitrate);
bool NxpNci_FactoryTest_Prbs(NxpNci_TechType_t type, NxpNci_Bitrate_t bitrate); // Deprecated, use nciFactoryTestPrbs() instead
bool NxpNci_FactoryTest_RfOn(void);
bool nciFactoryTestRfOn();
bool NxpNci_FactoryTest_RfOn();
void ReadNdef(RfIntf_t RfIntf);
void WriteNdef(RfIntf_t RfIntf);
};
Expand Down

0 comments on commit 9c036bc

Please sign in to comment.