Skip to main content

Crate ohos_sensors_sys

Crate ohos_sensors_sys 

Source
Available on crate feature api-11 only.
Expand description

Rust bindings for the sensors module of OpenHarmony.

§Feature flags

§OpenHarmony API level

This crate by default exposes bindings for API-level 10. Optionally enable one of the api-* features to get access to bindings for newer OpenHarmony versions.

  • api-10 (enabled by default) — No effect. API-10 bindings can’t be deselected. The feature exists for internal purposes.
  • api-11 — Enables bindings for OpenHarmony API-level 11
  • api-12 — Enables bindings for OpenHarmony API-level 12
  • api-13 — Enables bindings for OpenHarmony API-level 13
  • api-14 — Enables bindings for OpenHarmony API-level 14
  • api-15 — Enables bindings for OpenHarmony API-level 15
  • api-16 — Enables bindings for OpenHarmony API-level 16.
  • api-17 — Enables bindings for OpenHarmony API-level 17.
  • api-18 — Enables bindings for OpenHarmony API-level 18 (5.1.0).
  • api-19 — Enables bindings for OpenHarmony API-level 19.
  • api-20 — Enables bindings for OpenHarmony API-level 20.
  • api-21 — Enables bindings for OpenHarmony API-level 21.
  • document-features — Document available features when building the documentation

Modules§

sensor
sensor_type
vibrator
vibrator_type