sensor_api.h 569 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SENSOR_API_H_
  6. #define _SENSOR_API_H_
  7. #include "bh_platform.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. uint32
  12. wasm_sensor_open(const char* name, int instance);
  13. bool
  14. wasm_sensor_config(uint32 sensor, int interval, int bit_cfg, int delay);
  15. bool
  16. wasm_sensor_config_with_attr_container(uint32 sensor, char *buffer, int len);
  17. bool
  18. wasm_sensor_close(uint32 sensor);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of _SENSOR_API_H_ */