Lines Matching refs:mDevice
17 Nfc::Nfc(nfc_nci_device_t* device) : mDevice(device) {} in Nfc()
23 if (mDevice == nullptr || mCallback == nullptr) { in open()
27 int ret = mDevice->open(mDevice, eventCallback, dataCallback); in open()
32 if (mDevice == nullptr) { in write()
35 return mDevice->write(mDevice, data.size(), &data[0]); in write()
41 if (mDevice == nullptr) { in coreInitialized()
44 int ret = mDevice->core_initialized(mDevice, ©[0]); in coreInitialized()
49 if (mDevice == nullptr) { in prediscover()
52 return mDevice->pre_discover(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in prediscover()
56 if (mDevice == nullptr || mCallback == nullptr) { in close()
60 return mDevice->close(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in close()
64 if (mDevice == nullptr) { in controlGranted()
67 return mDevice->control_granted(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in controlGranted()
71 if (mDevice == nullptr) { in powerCycle()
74 return mDevice->power_cycle(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in powerCycle()