hw_dcmi_wrapper_sys

Crates.iohw_dcmi_wrapper_sys
lib.rshw_dcmi_wrapper_sys
version0.3.0
created_at2025-02-06 08:56:26.135468+00
updated_at2025-08-16 20:48:11.858508+00
descriptionA raw FFI binding to the Huawei DCMI API.
homepage
repositoryhttps://github.com/ZhuLegend/hw_dcmi
max_upload_size
id1545247
size316,683
ZHU ZIJUN (ZhuLegend)

documentation

https://docs.rs/hw_dcmi_wrapper_sys

README

hw_dcmi_wrapper_sys

Crates.io version Crates.io downloads Docs.rs docs

中文文档

Rust bindings for the DaVinci Card Management Interface (DCMI), a C-based programmatic interface for monitoring and managing various states within Huawei NPUs.

It is intended to be a platform for building 3rd-party applications, and is also the underlying library for Huawei's npu-smi tool.

See hw_dcmi_wrapper for a safe wrapper over top of these bindings.

About Bindings

These binding is generated by bindgen, and you can obtain the binding of dynamic links by enabling the 'load_dynamic' feature (via libloading). Otherwise, the binding of static links will be generated.

By default, the library searches for DCMI components in the /usr/local/dcmi directory. You can override this path by setting the HW_DCMI_PATH environment variable.

If you want to regenerate bindings, you can set HW_DCMI_BINDING_BUILD to true to regenerate bindings, the generated bindings will be saved in:

  • Static link: hw_dcmi_wrapper_sys/src/bindings.rs
  • Dynamic link: hw_dcmi_wrapper_sys/src/bindings_dyn.rs

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 15

cargo fmt