iot_nfc.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) 2021 Huawei Device Co., Ltd.
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef __IOT_NFC_H__
  16. #define __IOT_NFC_H__
  17. /**
  18. * @brief Initialize the board NFC
  19. * @return Returns 0 success while others failed
  20. */
  21. int BOARD_InitNfc(void);
  22. /**
  23. * @brief Defines the nfc information
  24. */
  25. typedef struct {
  26. const char *deviceID;
  27. const char *devicePWD;
  28. const char *wifiSSID;
  29. const char *wifiPWD;
  30. }NfcInfo;
  31. /**
  32. * @brief Get the nfc info
  33. * @param info Indicates the buffer to storage the data get from NFC
  34. * @return Returns 0 success while others failed
  35. */
  36. int BOARD_GetNfcInfo(NfcInfo *info);
  37. #endif /* __IOT_NFC_H__ */