Skip to main content

mars_bluetooth_hci/
lib.rs

1//! Bluetooth HCI (host controller interface) message encoding and decoding for the device side.
2#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
3#![warn(missing_docs)]
4#![warn(clippy::missing_docs_in_private_items)]
5
6/// Describes HCI events that can be parsed from different types of input.
7pub mod event;
8
9#[cfg(feature = "libc")]
10pub mod libc;
11
12/// Re-export of HCI and CS constants for convenience.
13pub use event::hci_le_cs::constants;
14
15/// Generate C headers.
16#[cfg(feature = "headers")]
17pub fn generate_headers(target_path: &String) -> std::io::Result<()> {
18    safer_ffi::headers::builder().to_file(target_path)?.generate()
19}