ota_backend_sdcard.h 875 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief OTA SDCARD backend interface
  9. */
  10. #ifndef __OTA_BACKEND_SDCARD_H__
  11. #define __OTA_BACKEND_SDCARD_H__
  12. #include <ota_backend.h>
  13. /** structure of ota backend sdcard init param, Initialized by the user*/
  14. struct ota_backend_sdcard_init_param {
  15. /** ota.bin full path*/
  16. const char *fpath;
  17. };
  18. /**
  19. * @brief ota backend sdcard init.
  20. *
  21. * This routine init backend sdcard,calls by ota app.
  22. *
  23. * @param cb call back function,to tell ota app start stop upgrade,and upgrade progress.
  24. * @param param backend sdcard init param.
  25. *
  26. *return backend if init success.
  27. *return NULL if init fail.
  28. */
  29. struct ota_backend *ota_backend_sdcard_init(ota_backend_notify_cb_t cb,
  30. struct ota_backend_sdcard_init_param *param);
  31. #endif /* __OTA_BACKEND_SDCARD_H__ */