Icm20948LoadFirmware.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * ________________________________________________________________________________________________________
  3. * Copyright © 2014-2015 InvenSense Inc. Portions Copyright © 2014-2015 Movea. All rights reserved.
  4. * This software, related documentation and any modifications thereto (collectively “Software”) is subject
  5. * to InvenSense and its licensors' intellectual property rights under U.S. and international copyright and
  6. * other intellectual property rights laws.
  7. * InvenSense and its licensors retain all intellectual property and proprietary rights in and to the Software
  8. * and any use, reproduction, disclosure or distribution of the Software without an express license
  9. * agreement from InvenSense is strictly prohibited.
  10. * ________________________________________________________________________________________________________
  11. */
  12. #ifndef INV_ICM20948_LOAD_FIRMWARE_H__
  13. #define INV_ICM20948_LOAD_FIRMWARE_H__
  14. /** @defgroup icm20948_load_firmware load_firmware
  15. @ingroup SmartSensor_driver
  16. @{
  17. */
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif
  22. /* forward declaration */
  23. struct inv_icm20948;
  24. /** @brief Loads the DMP firmware from SRAM
  25. * @param[in] data pointer where the image
  26. * @param[in] size size if the image
  27. * @param[in] load_addr address to loading the image
  28. * @return 0 in case of success, -1 for any error
  29. */
  30. int INV_EXPORT inv_icm20948_firmware_load(struct inv_icm20948 * s, const unsigned char *data, unsigned short size, unsigned short load_addr);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif // INV_ICM20948_LOAD_FIRMWARE_H__
  35. /** @} */