[INFO] fetching crate apache-nimble-sys 0.0.1... [INFO] checking apache-nimble-sys-0.0.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate apache-nimble-sys 0.0.1 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate apache-nimble-sys 0.0.1 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate apache-nimble-sys 0.0.1 [INFO] finished tweaking crates.io crate apache-nimble-sys 0.0.1 [INFO] tweaked toml for crates.io crate apache-nimble-sys 0.0.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.53.3 (available: v0.70.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding cexpr v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.0) [INFO] [stderr] Adding clang-sys v0.29.3 (available: v1.8.1) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.18) [INFO] [stderr] Adding env_logger v0.7.1 (available: v0.11.5) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding humantime v1.3.0 (available: v2.1.0) [INFO] [stderr] Adding libloading v0.5.2 (available: v0.8.5) [INFO] [stderr] Adding nom v5.1.3 (available: v7.1.3) [INFO] [stderr] Adding peeking_take_while v0.1.2 (available: v1.0.0) [INFO] [stderr] Adding quick-error v1.2.3 (available: v2.0.1) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding shlex v0.1.1 (available: v1.3.0) [INFO] [stderr] Adding strsim v0.8.0 (available: v0.11.1) [INFO] [stderr] Adding textwrap v0.11.0 (available: v0.16.1) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding which v3.1.1 (available: v6.0.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `resolver` has been stabilized in the 1.51 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#resolver-versions for more information about using this feature. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v3.1.1 [INFO] [stderr] Downloaded env_logger v0.7.1 [INFO] [stderr] Downloaded strsim v0.8.0 [INFO] [stderr] Downloaded libloading v0.5.2 [INFO] [stderr] Downloaded shlex v0.1.1 [INFO] [stderr] Downloaded clang-sys v0.29.3 [INFO] [stderr] Downloaded cexpr v0.4.0 [INFO] [stderr] Downloaded cstr_core v0.2.6 [INFO] [stderr] Downloaded bindgen v0.53.3 [INFO] [stderr] Downloaded nom v5.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f07970a3df4ba0d56ad179ef83d21eadb2519fdbd2ed52b0350d8e3de0ad96b [INFO] running `Command { std: "docker" "start" "-a" "2f07970a3df4ba0d56ad179ef83d21eadb2519fdbd2ed52b0350d8e3de0ad96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f07970a3df4ba0d56ad179ef83d21eadb2519fdbd2ed52b0350d8e3de0ad96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f07970a3df4ba0d56ad179ef83d21eadb2519fdbd2ed52b0350d8e3de0ad96b", kill_on_drop: false }` [INFO] [stdout] 2f07970a3df4ba0d56ad179ef83d21eadb2519fdbd2ed52b0350d8e3de0ad96b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bb5c7b6b7f2fd8d73e6414b0a887881e80506b0983e3dc33a1916b4e21fc723 [INFO] running `Command { std: "docker" "start" "-a" "3bb5c7b6b7f2fd8d73e6414b0a887881e80506b0983e3dc33a1916b4e21fc723", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `resolver` has been stabilized in the 1.51 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#resolver-versions for more information about using this feature. [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling bindgen v0.53.3 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking cstr_core v0.2.6 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling apache-nimble-sys v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn free(ptr: *mut cty::c_void) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amt` [INFO] [stdout] --> src/lib.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn malloc(amt: cty::size_t) -> *mut cty::c_void { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/lib.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn __assert_func(file: *const char, line: usize, func: *const char, expr: *const char) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/lib.rs:16:45 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn __assert_func(file: *const char, line: usize, func: *const char, expr: *const char) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:16:58 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn __assert_func(file: *const char, line: usize, func: *const char, expr: *const char) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib.rs:16:77 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn __assert_func(file: *const char, line: usize, func: *const char, expr: *const char) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.data` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:152615 [INFO] [stdout] | [INFO] [stdout] 3 | ...[derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] f... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.data` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type ---------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.data` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:153698 [INFO] [stdout] | [INFO] [stdout] 3 | ...# [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] f... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.data` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type ---------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.h` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:162736 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.h` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type ---------------------------------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.adv_data` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:248112 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.adv_data` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type -------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.scan_rsp` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:250035 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.scan_rsp` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type -------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.sets` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:253037 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.sets` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type --------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.adv_data` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:258500 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.adv_data` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . num_sets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (num_sets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . sets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_adv_data_len_rp { pub max_adv_data_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_adv_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_adv_data_len_rp > ())) . max_adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp) , "::" , stringify ! (max_adv_data_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_num_of_adv_sets_rp { pub num_sets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_num_of_adv_sets_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_num_of_adv_sets_rp > ())) . num_sets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp) , "::" , stringify ! (num_sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_remove_adv_set_cp { pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_remove_adv_set_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_remove_adv_set_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_remove_adv_set_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_params_cp { pub adv_handle : u8 , pub min_itvl : u16 , pub max_itvl : u16 , pub props : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . min_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . max_itvl as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . props as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (props))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type -------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.scans` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:262389 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_set_ext_scan_params_cp { pub own_addr_type : u8 , pub filter_policy : u8 , pub phys : u8 , pub scans : __IncompleteArrayField < scan_params > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.scans` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . num_sets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (num_sets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . sets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_adv_data_len_rp { pub max_adv_data_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_adv_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_adv_data_len_rp > ())) . max_adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp) , "::" , stringify ! (max_adv_data_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_num_of_adv_sets_rp { pub num_sets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_num_of_adv_sets_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_num_of_adv_sets_rp > ())) . num_sets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp) , "::" , stringify ! (num_sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_remove_adv_set_cp { pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_remove_adv_set_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_remove_adv_set_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_remove_adv_set_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_params_cp { pub adv_handle : u8 , pub min_itvl : u16 , pub max_itvl : u16 , pub props : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . min_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . max_itvl as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . props as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (props))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_enable_cp { pub enable : u8 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . adv_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct scan_params { pub type_ : u8 , pub itvl : u16 , pub window : u16 , } # [test] fn bindgen_test_layout_scan_params () { assert_eq ! (:: core :: mem :: size_of :: < scan_params > () , 5usize , concat ! ("Size of: " , stringify ! (scan_params))) ; assert_eq ! (:: core :: mem :: align_of :: < scan_params > () , 1usize , concat ! ("Alignment of " , stringify ! (scan_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (window))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_params_cp { pub own_addr_type : u8 , pub filter_policy : u8 , pub phys : u8 , pub scans : __IncompleteArrayField < scan_params > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type -------------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.conn_params` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:268114 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_le_ext_create_conn_cp { pub filter_policy : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub init_phy_mask : u8 , pub conn_params : __IncompleteArrayField < conn_params > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.conn_params` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . num_sets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (num_sets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . sets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_adv_data_len_rp { pub max_adv_data_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_adv_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_adv_data_len_rp > ())) . max_adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp) , "::" , stringify ! (max_adv_data_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_num_of_adv_sets_rp { pub num_sets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_num_of_adv_sets_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_num_of_adv_sets_rp > ())) . num_sets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp) , "::" , stringify ! (num_sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_remove_adv_set_cp { pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_remove_adv_set_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_remove_adv_set_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_remove_adv_set_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_params_cp { pub adv_handle : u8 , pub min_itvl : u16 , pub max_itvl : u16 , pub props : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . min_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . max_itvl as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . props as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (props))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_enable_cp { pub enable : u8 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . adv_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct scan_params { pub type_ : u8 , pub itvl : u16 , pub window : u16 , } # [test] fn bindgen_test_layout_scan_params () { assert_eq ! (:: core :: mem :: size_of :: < scan_params > () , 5usize , concat ! ("Size of: " , stringify ! (scan_params))) ; assert_eq ! (:: core :: mem :: align_of :: < scan_params > () , 1usize , concat ! ("Alignment of " , stringify ! (scan_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (window))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_params_cp { pub own_addr_type : u8 , pub filter_policy : u8 , pub phys : u8 , pub scans : __IncompleteArrayField < scan_params > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_params_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . filter_policy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . scans as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (scans))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_scan_enable_cp { pub enable : u8 , pub filter_dup : u8 , pub duration : u16 , pub period : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . filter_dup as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (filter_dup))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . duration as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . period as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (period))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct conn_params { pub scan_itvl : u16 , pub scan_window : u16 , pub conn_min_itvl : u16 , pub conn_max_itvl : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_conn_params () { assert_eq ! (:: core :: mem :: size_of :: < conn_params > () , 16usize , concat ! ("Size of: " , stringify ! (conn_params))) ; assert_eq ! (:: core :: mem :: align_of :: < conn_params > () , 1usize , concat ! ("Alignment of " , stringify ! (conn_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_min_itvl as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_max_itvl as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_latency as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . supervision_timeout as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . min_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . max_ce as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_ext_create_conn_cp { pub filter_policy : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub init_phy_mask : u8 , pub conn_params : __IncompleteArrayField < conn_params > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type -------------------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.return_params` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:299510 [INFO] [stdout] | [INFO] [stdout] 3 | ...e (Debug)] pub struct ble_hci_ev_command_complete { pub num_packets : u8 , pub opcode : u16 , pub status : u8 , pub return_params : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.return_params` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . num_sets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (num_sets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . sets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_adv_data_len_rp { pub max_adv_data_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_adv_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_adv_data_len_rp > ())) . max_adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp) , "::" , stringify ! (max_adv_data_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_num_of_adv_sets_rp { pub num_sets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_num_of_adv_sets_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_num_of_adv_sets_rp > ())) . num_sets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp) , "::" , stringify ! (num_sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_remove_adv_set_cp { pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_remove_adv_set_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_remove_adv_set_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_remove_adv_set_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_params_cp { pub adv_handle : u8 , pub min_itvl : u16 , pub max_itvl : u16 , pub props : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . min_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . max_itvl as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . props as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (props))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_enable_cp { pub enable : u8 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . adv_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct scan_params { pub type_ : u8 , pub itvl : u16 , pub window : u16 , } # [test] fn bindgen_test_layout_scan_params () { assert_eq ! (:: core :: mem :: size_of :: < scan_params > () , 5usize , concat ! ("Size of: " , stringify ! (scan_params))) ; assert_eq ! (:: core :: mem :: align_of :: < scan_params > () , 1usize , concat ! ("Alignment of " , stringify ! (scan_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (window))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_params_cp { pub own_addr_type : u8 , pub filter_policy : u8 , pub phys : u8 , pub scans : __IncompleteArrayField < scan_params > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_params_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . filter_policy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . scans as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (scans))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_scan_enable_cp { pub enable : u8 , pub filter_dup : u8 , pub duration : u16 , pub period : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . filter_dup as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (filter_dup))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . duration as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . period as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (period))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct conn_params { pub scan_itvl : u16 , pub scan_window : u16 , pub conn_min_itvl : u16 , pub conn_max_itvl : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_conn_params () { assert_eq ! (:: core :: mem :: size_of :: < conn_params > () , 16usize , concat ! ("Size of: " , stringify ! (conn_params))) ; assert_eq ! (:: core :: mem :: align_of :: < conn_params > () , 1usize , concat ! ("Alignment of " , stringify ! (conn_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_min_itvl as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_max_itvl as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_latency as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . supervision_timeout as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . min_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . max_ce as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_ext_create_conn_cp { pub filter_policy : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub init_phy_mask : u8 , pub conn_params : __IncompleteArrayField < conn_params > , } # [test] fn bindgen_test_layout_ble_hci_le_ext_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_ext_create_conn_cp > () , 10usize , concat ! ("Size of: " , stringify ! (ble_hci_le_ext_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_ext_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_ext_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . filter_policy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . peer_addr as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . init_phy_mask as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (init_phy_mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . conn_params as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (conn_params))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_create_sync_cp { pub options : u8 , pub sid : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_create_sync_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_create_sync_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_create_sync_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . options as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (options))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sid as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . peer_addr_type as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . peer_addr as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . skip as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sync_timeout as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sync_cte_type as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_term_sync_cp { pub sync_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_term_sync_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_term_sync_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_term_sync_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_term_sync_cp > ())) . sync_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp) , "::" , stringify ! (sync_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_dev_to_periodic_adv_list_cp { pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub sid : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_add_dev_to_periodic_adv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . peer_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . sid as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (sid))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_dev_from_periodic_adv_list_cp { pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub sid : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_dev_from_periodic_adv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . peer_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . sid as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (sid))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_periodic_adv_list_size_rp { pub list_size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_periodic_adv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_periodic_adv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_periodic_adv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_periodic_adv_list_size_rp > ())) . list_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp) , "::" , stringify ! (list_size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_transmit_power_rp { pub min_tx_power : i8 , pub max_tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_transmit_power_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_transmit_power_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_transmit_power_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_transmit_power_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_transmit_power_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_transmit_power_rp > ())) . min_tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_transmit_power_rp) , "::" , stringify ! (min_tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_transmit_power_rp > ())) . max_tx_power as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_transmit_power_rp) , "::" , stringify ! (max_tx_power))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rf_path_compensation_rp { pub tx_path_compensation : i16 , pub rx_path_compensation : i16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rf_path_compensation_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rf_path_compensation_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rf_path_compensation_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rf_path_compensation_rp > ())) . tx_path_compensation as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp) , "::" , stringify ! (tx_path_compensation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rf_path_compensation_rp > ())) . rx_path_compensation as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp) , "::" , stringify ! (rx_path_compensation))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_rf_path_compensation_cp { pub tx_path_compensation : i16 , pub rx_path_compensation : i16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_rf_path_compensation_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_rf_path_compensation_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_rf_path_compensation_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_rf_path_compensation_cp > ())) . tx_path_compensation as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp) , "::" , stringify ! (tx_path_compensation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_rf_path_compensation_cp > ())) . rx_path_compensation as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp) , "::" , stringify ! (rx_path_compensation))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_privacy_mode_cp { pub peer_id_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub mode : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_privacy_mode_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_privacy_mode_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_privacy_mode_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_privacy_mode_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_privacy_mode_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . peer_id_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (peer_id_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . mode as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (mode))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_receive_enable_cp { pub sync_handle : u16 , pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_receive_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_receive_enable_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_receive_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_receive_enable_cp > ())) . sync_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp) , "::" , stringify ! (sync_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_receive_enable_cp > ())) . enable as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_cp { pub conn_handle : u16 , pub service_data : u16 , pub sync_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . service_data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (service_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . sync_handle as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (sync_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_set_info_transfer_cp { pub conn_handle : u16 , pub service_data : u16 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_set_info_transfer_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_set_info_transfer_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_set_info_transfer_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . service_data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (service_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . adv_handle as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_set_info_transfer_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_set_info_transfer_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_set_info_transfer_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_set_info_transfer_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_params_cp { pub conn_handle : u16 , pub mode : u8 , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . mode as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (mode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . skip as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . sync_timeout as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . sync_cte_type as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_params_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_periodic_sync_transfer_params_cp { pub mode : u8 , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_periodic_sync_transfer_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . mode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (mode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . skip as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . sync_timeout as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . sync_cte_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_request_peer_sca_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_request_peer_sca_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_request_peer_sca_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_request_peer_sca_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_request_peer_sca_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_request_peer_sca_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_request_peer_sca_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_request_peer_sca_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_feat_cp { pub bit_num : u8 , pub val : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_feat_cp > ())) . bit_num as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_feat_cp) , "::" , stringify ! (bit_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_feat_cp > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_feat_cp) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_disconn_cmp { pub status : u8 , pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_ev_disconn_cmp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_disconn_cmp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_disconn_cmp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_disconn_cmp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_disconn_cmp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . conn_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . reason as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_enrypt_chg { pub status : u8 , pub connection_handle : u16 , pub enabled : u8 , } # [test] fn bindgen_test_layout_ble_hci_ev_enrypt_chg () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_enrypt_chg > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_enrypt_chg))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_enrypt_chg > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_enrypt_chg))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . connection_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (connection_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . enabled as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (enabled))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_rd_rem_ver_info_cmp { pub status : u8 , pub conn_handle : u16 , pub version : u8 , pub manufacturer : u16 , pub subversion : u16 , } # [test] fn bindgen_test_layout_ble_hci_ev_rd_rem_ver_info_cmp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_rd_rem_ver_info_cmp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_rd_rem_ver_info_cmp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . conn_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . version as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (version))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . subversion as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (subversion))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev_command_complete { pub num_packets : u8 , pub opcode : u16 , pub status : u8 , pub return_params : __IncompleteArrayField < u8 > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type ------------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.completed` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:304882 [INFO] [stdout] | [INFO] [stdout] 3 | ...erive (Debug)] pub struct ble_hci_ev_num_comp_pkts { pub count : u8 , pub completed : __IncompleteArrayField < comp_pkt > , } # [test]... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.completed` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [INFO] [stdout] 3 | ...)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } pub const MYNEWT_VAL_TINYCRYPT_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_TRNG_DEV_NAME : & 'static [u8 ; 5usize] = b"trng\0" ; pub const MYNEWT_VAL_TINYCRYPT_UECC_RNG_USE_TRNG : u32 = 0 ; pub const MYNEWT_VAL_HAL_ENABLE_SOFTWARE_BREAKPOINTS : u32 = 1 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_BUF_SZ : u32 = 16 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_ERASES : u32 = 0 ; pub const MYNEWT_VAL_HAL_FLASH_VERIFY_WRITES : u32 = 0 ; pub const MYNEWT_VAL_HAL_SYSTEM_RESET_CB : u32 = 0 ; pub const MYNEWT_VAL_FLOAT_USER : u32 = 0 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_COUNT : u32 = 12 ; pub const MYNEWT_VAL_MSYS_1_BLOCK_SIZE : u32 = 292 ; pub const MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_BLOCK_SIZE : u32 = 0 ; pub const MYNEWT_VAL_MSYS_2_SANITY_MIN_COUNT : u32 = 0 ; pub const MYNEWT_VAL_MSYS_SANITY_TIMEOUT : u32 = 60000 ; pub const MYNEWT_VAL_OS_ASSERT_CB : u32 = 0 ; pub const MYNEWT_VAL_OS_CLI : u32 = 0 ; pub const MYNEWT_VAL_OS_COREDUMP : u32 = 0 ; pub const MYNEWT_VAL_OS_CPUTIME_FREQ : u32 = 1000000 ; pub const MYNEWT_VAL_OS_CPUTIME_TIMER_NUM : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_LOG : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_RESTORE_REGS : u32 = 0 ; pub const MYNEWT_VAL_OS_CRASH_STACKTRACE : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_CTX_SW_STACK_GUARD : u32 = 4 ; pub const MYNEWT_VAL_OS_DEBUG_MODE : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_EVENTQ_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MAX : u32 = 600000 ; pub const MYNEWT_VAL_OS_IDLE_TICKLESS_MS_MIN : u32 = 100 ; pub const MYNEWT_VAL_OS_MAIN_STACK_SIZE : u32 = 1024 ; pub const MYNEWT_VAL_OS_MAIN_TASK_PRIO : u32 = 127 ; pub const MYNEWT_VAL_OS_MAIN_TASK_SANITY_ITVL_MS : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_CHECK : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_GUARD : u32 = 0 ; pub const MYNEWT_VAL_OS_MEMPOOL_POISON : u32 = 0 ; pub const MYNEWT_VAL_OS_SCHEDULING : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSINIT_STAGE : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_CALLOUT : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_EVENTQ : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MBUF : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MEMPOOL : u32 = 0 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_MUTEX : u32 = 1 ; pub const MYNEWT_VAL_OS_SYSVIEW_TRACE_SEM : u32 = 1 ; pub const MYNEWT_VAL_OS_TASK_RUN_TIME_CPUTIME : u32 = 0 ; pub const MYNEWT_VAL_OS_TIME_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_OS_WATCHDOG_MONITOR : u32 = 0 ; pub const MYNEWT_VAL_SANITY_INTERVAL : u32 = 15000 ; pub const MYNEWT_VAL_WATCHDOG_INTERVAL : u32 = 30000 ; pub const MYNEWT_VAL_CONSOLE_UART_BAUD : u32 = 115200 ; pub const MYNEWT_VAL_CONSOLE_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_FLASH_MAP_MAX_AREAS : u32 = 10 ; pub const MYNEWT_VAL_FLASH_MAP_SYSINIT_STAGE : u32 = 2 ; pub const MYNEWT_VAL_DFLT_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_DFLT_LOG_MOD : u32 = 0 ; pub const MYNEWT_VAL_LOG_GLOBAL_IDX : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_CONSOLE_DFLT : u32 = 1 ; pub const MYNEWT_VAL_MODLOG_LOG_MACROS : u32 = 0 ; pub const MYNEWT_VAL_MODLOG_MAX_MAPPINGS : u32 = 16 ; pub const MYNEWT_VAL_MODLOG_MAX_PRINTF_LEN : u32 = 128 ; pub const MYNEWT_VAL_MODLOG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_LOG_CONSOLE : u32 = 1 ; pub const MYNEWT_VAL_LOG_FCB : u32 = 0 ; pub const MYNEWT_VAL_LOG_FCB_SLOT1 : u32 = 0 ; pub const MYNEWT_VAL_LOG_LEVEL : u32 = 255 ; pub const MYNEWT_VAL_MFG_LOG_LVL : u32 = 15 ; pub const MYNEWT_VAL_MFG_LOG_MODULE : u32 = 128 ; pub const MYNEWT_VAL_MFG_MAX_MMRS : u32 = 2 ; pub const MYNEWT_VAL_MFG_SYSINIT_STAGE : u32 = 100 ; pub const MYNEWT_VAL_DEBUG_PANIC_ENABLED : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_CONSTRAIN_DOWN : u32 = 1 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_SYSDOWN_TIMEOUT_MS : u32 = 10000 ; pub const MYNEWT_VAL_SYSINIT_CONSTRAIN_INIT : u32 = 1 ; pub const MYNEWT_VAL_SYSINIT_PANIC_FILE_LINE : u32 = 0 ; pub const MYNEWT_VAL_SYSINIT_PANIC_MESSAGE : u32 = 0 ; pub const MYNEWT_VAL_RWLOCK_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE : u32 = 31 ; pub const MYNEWT_VAL_BLE_ISO : u32 = 0 ; pub const MYNEWT_VAL_BLE_ISO_TEST : u32 = 0 ; pub const MYNEWT_VAL_BLE_MAX_CONNECTIONS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV : u32 = 0 ; pub const MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 0 ; pub const MYNEWT_VAL_BLE_ROLE_BROADCASTER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_CENTRAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_OBSERVER : u32 = 1 ; pub const MYNEWT_VAL_BLE_ROLE_PERIPHERAL : u32 = 1 ; pub const MYNEWT_VAL_BLE_VERSION : u32 = 50 ; pub const MYNEWT_VAL_BLE_WHITELIST : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_PREFERRED_MTU : u32 = 256 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES : u32 = 64 ; pub const MYNEWT_VAL_BLE_ATT_SVR_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO : u32 = 30000 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_INDICATE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_MAX_PROCS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_NOTIFY : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS : u32 = 8 ; pub const MYNEWT_VAL_BLE_GATT_READ_MULT : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_READ_UUID : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_RESUME_RATE : u32 = 1000 ; pub const MYNEWT_VAL_BLE_GATT_SIGNED_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_LONG : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS : u32 = 4 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP : u32 = 1 ; pub const MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_HOST : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_AUTO_START : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_DEBUG : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL : u32 = 1000 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH : u32 = 2 ; pub const MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_LOG_LVL : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_LOG_MOD : u32 = 4 ; pub const MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS : u32 = 0 ; pub const MYNEWT_VAL_BLE_HS_REQUIRE_OS : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN : u32 = 1 ; pub const MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT : u32 = 2000 ; pub const MYNEWT_VAL_BLE_HS_SYSINIT_STAGE : u32 = 200 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_COC_MPS : u32 = 284 ; pub const MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC : u32 = 0 ; pub const MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS : u32 = 1 ; pub const MYNEWT_VAL_BLE_L2CAP_MAX_CHANS : u32 = 3 ; pub const MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT : u32 = 30000 ; pub const MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_MESH : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE : u32 = 128 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED : u32 = 1 ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME : & 'static [u8 ; 10usize] = b"btmonitor\0" ; pub const MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE : u32 = 256 ; pub const MYNEWT_VAL_BLE_MONITOR_UART : u32 = 0 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE : u32 = 1000000 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE : u32 = 64 ; pub const MYNEWT_VAL_BLE_MONITOR_UART_DEV : & 'static [u8 ; 6usize] = b"uart0\0" ; pub const MYNEWT_VAL_BLE_RPA_TIMEOUT : u32 = 300 ; pub const MYNEWT_VAL_BLE_SM_BONDING : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_KEYPRESS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_LEGACY : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MAX_PROCS : u32 = 1 ; pub const MYNEWT_VAL_BLE_SM_MITM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_OUR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS : u32 = 0 ; pub const MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST : u32 = 0 ; pub const MYNEWT_VAL_BLE_STORE_MAX_BONDS : u32 = 3 ; pub const MYNEWT_VAL_BLE_STORE_MAX_CCCDS : u32 = 8 ; pub const MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE : u32 = 1 ; pub const MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT : & 'static [u8 ; 21usize] = b"Apache Mynewt NimBLE\0" ; pub const MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME : & 'static [u8 ; 7usize] = b"nimble\0" ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH : u32 = 31 ; pub const MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM : i32 = - 1 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO : u32 = 0 ; pub const MYNEWT_VAL_BLE_SVC_GAP_SYSINIT_STAGE : u32 = 301 ; pub const MYNEWT_VAL_BLE_SVC_GATT_SYSINIT_STAGE : u32 = 302 ; pub const MYNEWT_VAL_BLE_SVC_IAS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_IPSS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_LLS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_SVC_TPS_SYSINIT_STAGE : u32 = 303 ; pub const MYNEWT_VAL_BLE_ACL_BUF_COUNT : u32 = 24 ; pub const MYNEWT_VAL_BLE_ACL_BUF_SIZE : u32 = 255 ; pub const MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT : u32 = 12 ; pub const MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE : u32 = 70 ; pub const MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT : u32 = 8 ; pub const MYNEWT_VAL_BLE_SOCK_CLI_SYSINIT_STAGE : u32 = 500 ; pub const MYNEWT_VAL_BLE_SOCK_LINUX_DEV : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_STACK_SIZE : u32 = 80 ; pub const MYNEWT_VAL_BLE_SOCK_TASK_PRIO : u32 = 9 ; pub const MYNEWT_VAL_BLE_SOCK_TCP_PORT : u32 = 14433 ; pub const MYNEWT_VAL_BLE_SOCK_USE_LINUX_BLUE : u32 = 0 ; pub const MYNEWT_VAL_BLE_SOCK_USE_TCP : u32 = 1 ; pub const MYNEWT_VAL_APP_NAME : & 'static [u8 ; 10usize] = b"dummy_app\0" ; pub const MYNEWT_VAL_APP_dummy_app : u32 = 1 ; pub const MYNEWT_VAL_ARCH_NAME : & 'static [u8 ; 6usize] = b"dummy\0" ; pub const MYNEWT_VAL_ARCH_dummy : u32 = 1 ; pub const MYNEWT_VAL_BSP_NAME : & 'static [u8 ; 10usize] = b"dummy_bsp\0" ; pub const MYNEWT_VAL_BSP_dummy_bsp : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_LOGCFG : u32 = 1 ; pub const MYNEWT_VAL_NEWT_FEATURE_SYSDOWN : u32 = 1 ; pub const MYNEWT_VAL_TARGET_NAME : & 'static [u8 ; 16usize] = b"porting_default\0" ; pub const MYNEWT_VAL_TARGET_porting_default : u32 = 1 ; pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 35 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const BLE_NPL_OS_ALIGNMENT : u32 = 4 ; pub const BLE_NPL_TIME_FOREVER : u32 = 4294967295 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const __PRIPTR_PREFIX : & 'static [u8 ; 2usize] = b"l\0" ; pub const PRId8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRId64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdLEAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST16 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST8 : & 'static [u8 ; 2usize] = b"d\0" ; pub const PRIdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIi8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiLEAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST16 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST8 : & 'static [u8 ; 2usize] = b"i\0" ; pub const PRIiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIo8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoLEAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST16 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST8 : & 'static [u8 ; 2usize] = b"o\0" ; pub const PRIoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIu8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuLEAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST16 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST8 : & 'static [u8 ; 2usize] = b"u\0" ; pub const PRIuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIx8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxLEAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST16 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST8 : & 'static [u8 ; 2usize] = b"x\0" ; pub const PRIxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIX8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIX64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXLEAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST16 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST32 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXLEAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST8 : & 'static [u8 ; 2usize] = b"X\0" ; pub const PRIXFAST16 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST32 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIXFAST64 : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXMAX : & 'static [u8 ; 3usize] = b"lX\0" ; pub const PRIdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const PRIiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const PRIoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const PRIuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const PRIxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const PRIXPTR : & 'static [u8 ; 3usize] = b"lX\0" ; pub const SCNd8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNd16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNd32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNd64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdLEAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdLEAST16 : & 'static [u8 ; 3usize] = b"hd\0" ; pub const SCNdLEAST32 : & 'static [u8 ; 2usize] = b"d\0" ; pub const SCNdLEAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST8 : & 'static [u8 ; 4usize] = b"hhd\0" ; pub const SCNdFAST16 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST32 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNdFAST64 : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNi8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNi16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNi32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNi64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiLEAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiLEAST16 : & 'static [u8 ; 3usize] = b"hi\0" ; pub const SCNiLEAST32 : & 'static [u8 ; 2usize] = b"i\0" ; pub const SCNiLEAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST8 : & 'static [u8 ; 4usize] = b"hhi\0" ; pub const SCNiFAST16 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST32 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNiFAST64 : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNu8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNu16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNu32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNu64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuLEAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuLEAST16 : & 'static [u8 ; 3usize] = b"hu\0" ; pub const SCNuLEAST32 : & 'static [u8 ; 2usize] = b"u\0" ; pub const SCNuLEAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST8 : & 'static [u8 ; 4usize] = b"hhu\0" ; pub const SCNuFAST16 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST32 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNuFAST64 : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNo8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNo16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNo32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNo64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoLEAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoLEAST16 : & 'static [u8 ; 3usize] = b"ho\0" ; pub const SCNoLEAST32 : & 'static [u8 ; 2usize] = b"o\0" ; pub const SCNoLEAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST8 : & 'static [u8 ; 4usize] = b"hho\0" ; pub const SCNoFAST16 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST32 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNoFAST64 : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNx8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNx16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNx32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNx64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxLEAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxLEAST16 : & 'static [u8 ; 3usize] = b"hx\0" ; pub const SCNxLEAST32 : & 'static [u8 ; 2usize] = b"x\0" ; pub const SCNxLEAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST8 : & 'static [u8 ; 4usize] = b"hhx\0" ; pub const SCNxFAST16 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST32 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNxFAST64 : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdMAX : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiMAX : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoMAX : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuMAX : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxMAX : & 'static [u8 ; 3usize] = b"lx\0" ; pub const SCNdPTR : & 'static [u8 ; 3usize] = b"ld\0" ; pub const SCNiPTR : & 'static [u8 ; 3usize] = b"li\0" ; pub const SCNoPTR : & 'static [u8 ; 3usize] = b"lo\0" ; pub const SCNuPTR : & 'static [u8 ; 3usize] = b"lu\0" ; pub const SCNxPTR : & 'static [u8 ; 3usize] = b"lx\0" ; pub const _STRING_H : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _ASSERT_H : u32 = 1 ; pub const OS_ALIGNMENT : u32 = 4 ; pub const OS_MEMPOOL_F_EXT : u32 = 1 ; pub const OS_MEMPOOL_INFO_NAME_LEN : u32 = 32 ; pub const BLE_ENC_BLOCK_SIZE : u32 = 16 ; pub const BLE_ACL_MAX_PKT_SIZE : u32 = 255 ; pub const BLE_MBUF_HDR_F_CONN_CREDIT : u32 = 32768 ; pub const BLE_MBUF_HDR_F_IGNORED : u32 = 32768 ; pub const BLE_MBUF_HDR_F_SCAN_REQ_TXD : u32 = 16384 ; pub const BLE_MBUF_HDR_F_INITA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_TARGETA_RESOLVED : u32 = 8192 ; pub const BLE_MBUF_HDR_F_EXT_ADV_SEC : u32 = 4096 ; pub const BLE_MBUF_HDR_F_EXT_ADV : u32 = 2048 ; pub const BLE_MBUF_HDR_F_RESOLVED : u32 = 1024 ; pub const BLE_MBUF_HDR_F_AUX_PTR_WAIT : u32 = 512 ; pub const BLE_MBUF_HDR_F_AUX_INVALID : u32 = 256 ; pub const BLE_MBUF_HDR_F_CRC_OK : u32 = 128 ; pub const BLE_MBUF_HDR_F_DEVMATCH : u32 = 64 ; pub const BLE_MBUF_HDR_F_MIC_FAILURE : u32 = 32 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_TXD : u32 = 16 ; pub const BLE_MBUF_HDR_F_SCAN_RSP_RXD : u32 = 8 ; pub const BLE_MBUF_HDR_F_RXSTATE_MASK : u32 = 7 ; pub const BLE_MBUF_HS_HDR_LEN : u32 = 2 ; pub const BLE_DEV_ADDR_LEN : u32 = 6 ; pub const BLE_HW_ERR_DO_NOT_USE : u32 = 0 ; pub const BLE_HW_ERR_HCI_SYNC_LOSS : u32 = 1 ; pub const BLE_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT : u32 = 2 ; pub const BLE_OWN_ADDR_RPA_RANDOM_DEFAULT : u32 = 3 ; pub const BLE_ADDR_PUBLIC : u32 = 0 ; pub const BLE_ADDR_RANDOM : u32 = 1 ; pub const BLE_ADDR_PUBLIC_ID : u32 = 2 ; pub const BLE_ADDR_RANDOM_ID : u32 = 3 ; pub const BLE_HCI_OPCODE_NOP : u32 = 0 ; pub const BLE_HCI_OGF_LINK_CTRL : u32 = 1 ; pub const BLE_HCI_OGF_LINK_POLICY : u32 = 2 ; pub const BLE_HCI_OGF_CTLR_BASEBAND : u32 = 3 ; pub const BLE_HCI_OGF_INFO_PARAMS : u32 = 4 ; pub const BLE_HCI_OGF_STATUS_PARAMS : u32 = 5 ; pub const BLE_HCI_OGF_TESTING : u32 = 6 ; pub const BLE_HCI_OGF_LE : u32 = 8 ; pub const BLE_HCI_OGF_VENDOR : u32 = 63 ; pub const BLE_HCI_NUM_LE_CMDS : u32 = 79 ; pub const BLE_HCI_OCF_DISCONNECT_CMD : u32 = 6 ; pub const BLE_HCI_OCF_RD_REM_VER_INFO : u32 = 29 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_CB_RESET : u32 = 3 ; pub const BLE_HCI_OCF_CB_READ_TX_PWR : u32 = 45 ; pub const BLE_HCI_OCF_CB_SET_CTLR_TO_HOST_FC : u32 = 49 ; pub const BLE_HCI_OCF_CB_HOST_BUF_SIZE : u32 = 51 ; pub const BLE_HCI_OCF_CB_HOST_NUM_COMP_PKTS : u32 = 53 ; pub const BLE_HCI_OCF_CB_SET_EVENT_MASK2 : u32 = 99 ; pub const BLE_HCI_OCF_CB_RD_AUTH_PYLD_TMO : u32 = 123 ; pub const BLE_HCI_OCF_CB_WR_AUTH_PYLD_TMO : u32 = 124 ; pub const BLE_HCI_OCF_IP_RD_LOCAL_VER : u32 = 1 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_CMD : u32 = 2 ; pub const BLE_HCI_OCF_IP_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_IP_RD_BUF_SIZE : u32 = 5 ; pub const BLE_HCI_OCF_IP_RD_BD_ADDR : u32 = 9 ; pub const BLE_HCI_OCF_RD_RSSI : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_EVENT_MASK : u32 = 1 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE : u32 = 2 ; pub const BLE_HCI_OCF_LE_RD_BUF_SIZE_V2 : u32 = 96 ; pub const BLE_HCI_OCF_LE_RD_LOC_SUPP_FEAT : u32 = 3 ; pub const BLE_HCI_OCF_LE_SET_RAND_ADDR : u32 = 5 ; pub const BLE_HCI_OCF_LE_SET_ADV_PARAMS : u32 = 6 ; pub const BLE_HCI_OCF_LE_RD_ADV_CHAN_TXPWR : u32 = 7 ; pub const BLE_HCI_OCF_LE_SET_ADV_DATA : u32 = 8 ; pub const BLE_HCI_MAX_ADV_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA : u32 = 9 ; pub const BLE_HCI_MAX_SCAN_RSP_DATA_LEN : u32 = 31 ; pub const BLE_HCI_OCF_LE_SET_ADV_ENABLE : u32 = 10 ; pub const BLE_HCI_OCF_LE_SET_SCAN_PARAMS : u32 = 11 ; pub const BLE_HCI_OCF_LE_SET_SCAN_ENABLE : u32 = 12 ; pub const BLE_HCI_OCF_LE_CREATE_CONN : u32 = 13 ; pub const BLE_HCI_OCF_LE_CREATE_CONN_CANCEL : u32 = 14 ; pub const BLE_HCI_OCF_LE_RD_WHITE_LIST_SIZE : u32 = 15 ; pub const BLE_HCI_OCF_LE_CLEAR_WHITE_LIST : u32 = 16 ; pub const BLE_HCI_OCF_LE_ADD_WHITE_LIST : u32 = 17 ; pub const BLE_HCI_OCF_LE_RMV_WHITE_LIST : u32 = 18 ; pub const BLE_HCI_OCF_LE_CONN_UPDATE : u32 = 19 ; pub const BLE_HCI_OCF_LE_SET_HOST_CHAN_CLASS : u32 = 20 ; pub const BLE_HCI_OCF_LE_RD_CHAN_MAP : u32 = 21 ; pub const BLE_HCI_OCF_LE_RD_REM_FEAT : u32 = 22 ; pub const BLE_HCI_OCF_LE_ENCRYPT : u32 = 23 ; pub const BLE_HCI_OCF_LE_RAND : u32 = 24 ; pub const BLE_HCI_OCF_LE_START_ENCRYPT : u32 = 25 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_REPLY : u32 = 26 ; pub const BLE_HCI_OCF_LE_LT_KEY_REQ_NEG_REPLY : u32 = 27 ; pub const BLE_HCI_OCF_LE_RD_SUPP_STATES : u32 = 28 ; pub const BLE_HCI_OCF_LE_RX_TEST : u32 = 29 ; pub const BLE_HCI_OCF_LE_TX_TEST : u32 = 30 ; pub const BLE_HCI_OCF_LE_TEST_END : u32 = 31 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_RR : u32 = 32 ; pub const BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR : u32 = 33 ; pub const BLE_HCI_OCF_LE_SET_DATA_LEN : u32 = 34 ; pub const BLE_HCI_OCF_LE_RD_SUGG_DEF_DATA_LEN : u32 = 35 ; pub const BLE_HCI_OCF_LE_WR_SUGG_DEF_DATA_LEN : u32 = 36 ; pub const BLE_HCI_OCF_LE_RD_P256_PUBKEY : u32 = 37 ; pub const BLE_HCI_OCF_LE_GEN_DHKEY : u32 = 38 ; pub const BLE_HCI_OCF_LE_ADD_RESOLV_LIST : u32 = 39 ; pub const BLE_HCI_OCF_LE_RMV_RESOLV_LIST : u32 = 40 ; pub const BLE_HCI_OCF_LE_CLR_RESOLV_LIST : u32 = 41 ; pub const BLE_HCI_OCF_LE_RD_RESOLV_LIST_SIZE : u32 = 42 ; pub const BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR : u32 = 43 ; pub const BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR : u32 = 44 ; pub const BLE_HCI_OCF_LE_SET_ADDR_RES_EN : u32 = 45 ; pub const BLE_HCI_OCF_LE_SET_RPA_TMO : u32 = 46 ; pub const BLE_HCI_OCF_LE_RD_MAX_DATA_LEN : u32 = 47 ; pub const BLE_HCI_OCF_LE_RD_PHY : u32 = 48 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_PHY : u32 = 49 ; pub const BLE_HCI_OCF_LE_SET_PHY : u32 = 50 ; pub const BLE_HCI_OCF_LE_RX_TEST_V2 : u32 = 51 ; pub const BLE_HCI_OCF_LE_TX_TEST_V2 : u32 = 52 ; pub const BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR : u32 = 53 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM : u32 = 54 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_DATA : u32 = 55 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA : u32 = 56 ; pub const BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE : u32 = 57 ; pub const BLE_HCI_OCF_LE_RD_MAX_ADV_DATA_LEN : u32 = 58 ; pub const BLE_HCI_OCF_LE_RD_NUM_OF_ADV_SETS : u32 = 59 ; pub const BLE_HCI_OCF_LE_REMOVE_ADV_SET : u32 = 60 ; pub const BLE_HCI_OCF_LE_CLEAR_ADV_SETS : u32 = 61 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS : u32 = 62 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA : u32 = 63 ; pub const BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE : u32 = 64 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM : u32 = 65 ; pub const BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE : u32 = 66 ; pub const BLE_HCI_OCF_LE_EXT_CREATE_CONN : u32 = 67 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_FILTER : u32 = 1 ; pub const BLE_HCI_LE_PERIODIC_ADV_CREATE_SYNC_OPT_DISABLED : u32 = 2 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC : u32 = 68 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL : u32 = 69 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC : u32 = 70 ; pub const BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST : u32 = 71 ; pub const BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST : u32 = 72 ; pub const BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST : u32 = 73 ; pub const BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE : u32 = 74 ; pub const BLE_HCI_OCF_LE_RD_TRANSMIT_POWER : u32 = 75 ; pub const BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION : u32 = 76 ; pub const BLE_HCI_OCF_LE_WR_RF_PATH_COMPENSATION : u32 = 77 ; pub const BLE_HCI_OCF_LE_SET_PRIVACY_MODE : u32 = 78 ; pub const BLE_HCI_OCF_LE_RX_TEST_V3 : u32 = 79 ; pub const BLE_HCI_OCF_LE_TX_TEST_V3 : u32 = 80 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_PARAMS : u32 = 81 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_CTE_TX_ENABLE : u32 = 82 ; pub const BLE_HCI_OCF_LE_SET_CONNLESS_IQ_SAMPLING_ENABLE : u32 = 83 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RX_PARAMS : u32 = 84 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_TX_PARAMS : u32 = 85 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_REQ_ENABLE : u32 = 86 ; pub const BLE_HCI_OCF_LE_SET_CONN_CTE_RESP_ENABLE : u32 = 87 ; pub const BLE_HCI_OCF_LE_RD_ANTENNA_INFO : u32 = 88 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE : u32 = 89 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER : u32 = 90 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER : u32 = 91 ; pub const BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS : u32 = 92 ; pub const BLE_HCI_OCF_LE_SET_DEFAULT_SYNC_TRANSFER_PARAMS : u32 = 93 ; pub const BLE_HCI_OCF_LE_GENERATE_DHKEY_V2 : u32 = 94 ; pub const BLE_HCI_OCF_LE_MODIFY_SCA : u32 = 95 ; pub const BLE_HCI_OCF_LE_REQ_PEER_SCA : u32 = 109 ; pub const BLE_HCI_OCF_LE_SET_HOST_FEAT : u32 = 116 ; pub const BLE_HCI_CTLR_TO_HOST_FC_OFF : u32 = 0 ; pub const BLE_HCI_CTLR_TO_HOST_FC_ACL : u32 = 1 ; pub const BLE_HCI_CTLR_TO_HOST_FC_SYNC : u32 = 2 ; pub const BLE_HCI_CTLR_TO_HOST_FC_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD : u32 = 1 ; pub const BLE_HCI_ADV_TYPE_ADV_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_TYPE_ADV_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD : u32 = 4 ; pub const BLE_HCI_ADV_TYPE_MAX : u32 = 4 ; pub const BLE_HCI_ADV_CONN_MASK : u32 = 1 ; pub const BLE_HCI_ADV_SCAN_MASK : u32 = 2 ; pub const BLE_HCI_ADV_DIRECT_MASK : u32 = 4 ; pub const BLE_HCI_ADV_SCAN_RSP_MASK : u32 = 8 ; pub const BLE_HCI_ADV_LEGACY_MASK : u32 = 16 ; pub const BLE_HCI_ADV_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_ADV_DATA_STATUS_INCOMPLETE : u32 = 32 ; pub const BLE_HCI_ADV_DATA_STATUS_TRUNCATED : u32 = 64 ; pub const BLE_HCI_ADV_DATA_STATUS_MASK : u32 = 96 ; pub const BLE_HCI_ADV_OWN_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_OWN_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_PUB : u32 = 2 ; pub const BLE_HCI_ADV_OWN_ADDR_PRIV_RAND : u32 = 3 ; pub const BLE_HCI_ADV_OWN_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_ADV_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_ADV_PEER_ADDR_MAX : u32 = 1 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MIN : i32 = - 20 ; pub const BLE_HCI_ADV_CHAN_TXPWR_MAX : u32 = 10 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC : u32 = 0 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RANDOM_IDENT : u32 = 3 ; pub const BLE_HCI_CONN_PEER_ADDR_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_NONE : u32 = 0 ; pub const BLE_HCI_ADV_FILT_SCAN : u32 = 1 ; pub const BLE_HCI_ADV_FILT_CONN : u32 = 2 ; pub const BLE_HCI_ADV_FILT_BOTH : u32 = 3 ; pub const BLE_HCI_ADV_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADV_FILT_DEF : u32 = 0 ; pub const BLE_HCI_ADV_ITVL : u32 = 625 ; pub const BLE_HCI_ADV_ITVL_MIN : u32 = 32 ; pub const BLE_HCI_ADV_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_ADV_ITVL_NONCONN_MIN : u32 = 160 ; pub const BLE_HCI_ADV_ITVL_DEF : u32 = 2048 ; pub const BLE_HCI_ADV_CHANMASK_DEF : u32 = 7 ; pub const BLE_HCI_SCAN_TYPE_PASSIVE : u32 = 0 ; pub const BLE_HCI_SCAN_TYPE_ACTIVE : u32 = 1 ; pub const BLE_HCI_SCAN_ITVL : u32 = 625 ; pub const BLE_HCI_SCAN_ITVL_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_ITVL_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_ITVL_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_WINDOW_MIN : u32 = 4 ; pub const BLE_HCI_SCAN_WINDOW_MAX : u32 = 16384 ; pub const BLE_HCI_SCAN_WINDOW_DEF : u32 = 16 ; pub const BLE_HCI_SCAN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_SCAN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_SCAN_FILT_NO_WL_INITA : u32 = 2 ; pub const BLE_HCI_SCAN_FILT_USE_WL_INITA : u32 = 3 ; pub const BLE_HCI_SCAN_FILT_MAX : u32 = 3 ; pub const BLE_HCI_ADD_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_RMV_WHITE_LIST_LEN : u32 = 7 ; pub const BLE_HCI_CREATE_CONN_LEN : u32 = 25 ; pub const BLE_HCI_CONN_ITVL : u32 = 1250 ; pub const BLE_HCI_CONN_FILT_NO_WL : u32 = 0 ; pub const BLE_HCI_CONN_FILT_USE_WL : u32 = 1 ; pub const BLE_HCI_CONN_FILT_MAX : u32 = 1 ; pub const BLE_HCI_CONN_ITVL_MIN : u32 = 6 ; pub const BLE_HCI_CONN_ITVL_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_LATENCY_MIN : u32 = 0 ; pub const BLE_HCI_CONN_LATENCY_MAX : u32 = 499 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MIN : u32 = 10 ; pub const BLE_HCI_CONN_SPVN_TIMEOUT_MAX : u32 = 3200 ; pub const BLE_HCI_CONN_SPVN_TMO_UNITS : u32 = 10 ; pub const BLE_HCI_INITIATOR_FILT_POLICY_MAX : u32 = 1 ; pub const BLE_HCI_CONN_PEER_ADDR_PUB_ID : u32 = 2 ; pub const BLE_HCI_CONN_PEER_ADDR_RAND_ID : u32 = 3 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MIN : u32 = 27 ; pub const BLE_HCI_SET_DATALEN_TX_OCTETS_MAX : u32 = 251 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MIN : u32 = 328 ; pub const BLE_HCI_SET_DATALEN_TX_TIME_MAX : u32 = 17040 ; pub const BLE_HCI_LE_PHY_1M : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED : u32 = 3 ; pub const BLE_HCI_LE_PHY_NO_TX_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_NO_RX_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_1M_PREF_MASK : u32 = 1 ; pub const BLE_HCI_LE_PHY_2M_PREF_MASK : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_PREF_MASK : u32 = 4 ; pub const BLE_HCI_LE_PHY_PREF_MASK_ALL : u32 = 7 ; pub const BLE_HCI_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_HCI_LE_PHY_CODED_S2_PREF : u32 = 1 ; pub const BLE_HCI_LE_PHY_CODED_S8_PREF : u32 = 2 ; pub const BLE_HCI_LE_PHY_CODED_S8 : u32 = 3 ; pub const BLE_HCI_LE_PHY_CODED_S2 : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE : u32 = 1 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE : u32 = 2 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED : u32 = 4 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED : u32 = 8 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY : u32 = 16 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV : u32 = 32 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_MASK : u32 = 127 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_IND : u32 = 19 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_LD_DIR : u32 = 21 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_HD_DIR : u32 = 29 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_SCAN : u32 = 18 ; pub const BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY_NONCONN : u32 = 16 ; pub const BLE_HCI_MAX_EXT_ADV_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_DATA_OPER_INT : u32 = 0 ; pub const BLE_HCI_LE_SET_DATA_OPER_FIRST : u32 = 1 ; pub const BLE_HCI_LE_SET_DATA_OPER_LAST : u32 = 2 ; pub const BLE_HCI_LE_SET_DATA_OPER_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SET_DATA_OPER_UNCHANGED : u32 = 4 ; pub const BLE_HCI_MAX_EXT_SCAN_RSP_DATA_LEN : u32 = 251 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR : u32 = 64 ; pub const BLE_HCI_LE_SET_PERIODIC_ADV_PROP_MASK : u32 = 64 ; pub const BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN : u32 = 252 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_COMPLETE : u32 = 0 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_INCOMPLETE : u32 = 1 ; pub const BLE_HCI_PERIODIC_DATA_STATUS_TRUNCATED : u32 = 2 ; pub const BLE_HCI_PRIVACY_NETWORK : u32 = 0 ; pub const BLE_HCI_PRIVACY_DEVICE : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_CMP : u32 = 1 ; pub const BLE_HCI_EVCODE_INQUIRY_RESULT : u32 = 2 ; pub const BLE_HCI_EVCODE_CONN_DONE : u32 = 3 ; pub const BLE_HCI_EVCODE_CONN_REQUEST : u32 = 4 ; pub const BLE_HCI_EVCODE_DISCONN_CMP : u32 = 5 ; pub const BLE_HCI_EVCODE_AUTH_CMP : u32 = 6 ; pub const BLE_HCI_EVCODE_REM_NAME_REQ_CMP : u32 = 7 ; pub const BLE_HCI_EVCODE_ENCRYPT_CHG : u32 = 8 ; pub const BLE_HCI_EVCODE_CHG_LINK_KEY_CMP : u32 = 9 ; pub const BLE_HCI_EVCODE_MASTER_LINK_KEY_CMP : u32 = 10 ; pub const BLE_HCI_EVCODE_RD_REM_SUPP_FEAT_CMP : u32 = 11 ; pub const BLE_HCI_EVCODE_RD_REM_VER_INFO_CMP : u32 = 12 ; pub const BLE_HCI_EVCODE_QOS_SETUP_CMP : u32 = 13 ; pub const BLE_HCI_EVCODE_COMMAND_COMPLETE : u32 = 14 ; pub const BLE_HCI_EVCODE_COMMAND_STATUS : u32 = 15 ; pub const BLE_HCI_EVCODE_HW_ERROR : u32 = 16 ; pub const BLE_HCI_EVCODE_NUM_COMP_PKTS : u32 = 19 ; pub const BLE_HCI_EVCODE_MODE_CHANGE : u32 = 20 ; pub const BLE_HCI_EVCODE_RETURN_LINK_KEYS : u32 = 21 ; pub const BLE_HCI_EVCODE_PIN_CODE_REQ : u32 = 22 ; pub const BLE_HCI_EVCODE_LINK_KEY_REQ : u32 = 23 ; pub const BLE_HCI_EVCODE_LINK_KEY_NOTIFY : u32 = 24 ; pub const BLE_HCI_EVCODE_LOOPBACK_CMD : u32 = 25 ; pub const BLE_HCI_EVCODE_DATA_BUF_OVERFLOW : u32 = 26 ; pub const BLE_HCI_EVCODE_MAX_SLOTS_CHG : u32 = 27 ; pub const BLE_HCI_EVCODE_READ_CLK_OFF_COMP : u32 = 28 ; pub const BLE_HCI_EVCODE_CONN_PKT_TYPE_CHG : u32 = 29 ; pub const BLE_HCI_EVCODE_QOS_VIOLATION : u32 = 30 ; pub const BLE_HCI_EVCODE_PSR_MODE_CHG : u32 = 32 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_COMP : u32 = 33 ; pub const BLE_HCI_EVCODE_INQ_RESULT_RSSI : u32 = 34 ; pub const BLE_HCI_EVCODE_READ_REM_EXT_FEAT : u32 = 35 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_COMP : u32 = 44 ; pub const BLE_HCI_EVCODE_SYNCH_CONN_CHG : u32 = 45 ; pub const BLE_HCI_EVCODE_SNIFF_SUBRATING : u32 = 46 ; pub const BLE_HCI_EVCODE_EXT_INQ_RESULT : u32 = 47 ; pub const BLE_HCI_EVCODE_ENC_KEY_REFRESH : u32 = 48 ; pub const BLE_HCI_EVOCDE_IO_CAP_REQ : u32 = 49 ; pub const BLE_HCI_EVCODE_IO_CAP_RSP : u32 = 50 ; pub const BLE_HCI_EVCODE_USER_CONFIRM_REQ : u32 = 51 ; pub const BLE_HCI_EVCODE_PASSKEY_REQ : u32 = 52 ; pub const BLE_HCI_EVCODE_REM_OOB_DATA_REQ : u32 = 53 ; pub const BLE_HCI_EVCODE_SIMPLE_PAIR_COMP : u32 = 54 ; pub const BLE_HCI_EVCODE_LNK_SPVN_TMO_CHG : u32 = 56 ; pub const BLE_HCI_EVCODE_ENH_FLUSH_COMP : u32 = 57 ; pub const BLE_HCI_EVCODE_USER_PASSKEY_NOTIFY : u32 = 59 ; pub const BLE_HCI_EVCODE_KEYPRESS_NOTIFY : u32 = 60 ; pub const BLE_HCI_EVCODE_REM_HOST_SUPP_FEAT : u32 = 61 ; pub const BLE_HCI_EVCODE_LE_META : u32 = 62 ; pub const BLE_HCI_EVCODE_PHYS_LINK_COMP : u32 = 64 ; pub const BLE_HCI_EVCODE_CHAN_SELECTED : u32 = 65 ; pub const BLE_HCI_EVCODE_DISCONN_PHYS_LINK : u32 = 66 ; pub const BLE_HCI_EVCODE_PHYS_LINK_LOSS_EARLY : u32 = 67 ; pub const BLE_HCI_EVCODE_PHYS_LINK_RECOVERY : u32 = 68 ; pub const BLE_HCI_EVCODE_LOGICAL_LINK_COMP : u32 = 69 ; pub const BLE_HCI_EVCODE_DISCONN_LOGICAL_LINK : u32 = 70 ; pub const BLE_HCI_EVCODE_FLOW_SPEC_MODE_COMP : u32 = 71 ; pub const BLE_HCI_EVCODE_NUM_COMP_DATA_BLKS : u32 = 72 ; pub const BLE_HCI_EVCODE_AMP_START_TEST : u32 = 73 ; pub const BLE_HCI_EVOCDE_AMP_TEST_END : u32 = 74 ; pub const BLE_HCI_EVOCDE_AMP_RCVR_REPORT : u32 = 75 ; pub const BLE_HCI_EVCODE_SHORT_RANGE_MODE_CHG : u32 = 76 ; pub const BLE_HCI_EVCODE_AMP_STATUS_CHG : u32 = 77 ; pub const BLE_HCI_EVCODE_TRIG_CLK_CAPTURE : u32 = 78 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_COMP : u32 = 79 ; pub const BLE_HCI_EVCODE_SYNCH_TRAIN_RCVD : u32 = 80 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_RX : u32 = 81 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_TMO : u32 = 82 ; pub const BLE_HCI_EVCODE_TRUNC_PAGE_COMP : u32 = 83 ; pub const BLE_HCI_EVCODE_SLAVE_PAGE_RSP_TMO : u32 = 84 ; pub const BLE_HCI_EVCODE_SLAVE_BCAST_CHAN_MAP : u32 = 85 ; pub const BLE_HCI_EVCODE_INQ_RSP_NOTIFY : u32 = 86 ; pub const BLE_HCI_EVCODE_AUTH_PYLD_TMO : u32 = 87 ; pub const BLE_HCI_EVCODE_SAM_STATUS_CHG : u32 = 88 ; pub const BLE_HCI_EVCODE_VENDOR_DEBUG : u32 = 255 ; pub const BLE_HCI_LE_SUBEV_CONN_COMPLETE : u32 = 1 ; pub const BLE_HCI_LE_SUBEV_ADV_RPT : u32 = 2 ; pub const BLE_HCI_LE_SUBEV_CONN_UPD_COMPLETE : u32 = 3 ; pub const BLE_HCI_LE_SUBEV_RD_REM_USED_FEAT : u32 = 4 ; pub const BLE_HCI_LE_SUBEV_LT_KEY_REQ : u32 = 5 ; pub const BLE_HCI_LE_SUBEV_REM_CONN_PARM_REQ : u32 = 6 ; pub const BLE_HCI_LE_SUBEV_DATA_LEN_CHG : u32 = 7 ; pub const BLE_HCI_LE_SUBEV_RD_LOC_P256_PUBKEY : u32 = 8 ; pub const BLE_HCI_LE_SUBEV_GEN_DHKEY_COMPLETE : u32 = 9 ; pub const BLE_HCI_LE_SUBEV_ENH_CONN_COMPLETE : u32 = 10 ; pub const BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT : u32 = 11 ; pub const BLE_HCI_LE_SUBEV_PHY_UPDATE_COMPLETE : u32 = 12 ; pub const BLE_HCI_LE_SUBEV_EXT_ADV_RPT : u32 = 13 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_ESTAB : u32 = 14 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT : u32 = 15 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_LOST : u32 = 16 ; pub const BLE_HCI_LE_SUBEV_SCAN_TIMEOUT : u32 = 17 ; pub const BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED : u32 = 18 ; pub const BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD : u32 = 19 ; pub const BLE_HCI_LE_SUBEV_CHAN_SEL_ALG : u32 = 20 ; pub const BLE_HCI_LE_SUBEV_CONNLESS_IQ_RPT : u32 = 21 ; pub const BLE_HCI_LE_SUBEV_CONN_IQ_RPT : u32 = 22 ; pub const BLE_HCI_LE_SUBEV_CTE_REQ_FAILED : u32 = 23 ; pub const BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER : u32 = 24 ; pub const BLE_HCI_LE_SUBEV_CIS_ESTAB : u32 = 25 ; pub const BLE_HCI_LE_SUBEV_CIS_REQUEST : u32 = 26 ; pub const BLE_HCI_LE_SUBEV_BIG_COMP : u32 = 27 ; pub const BLE_HCI_LE_SUBEV_BIG_TERMINATE_COMP : u32 = 28 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_ESTAB : u32 = 29 ; pub const BLE_HCI_LE_SUBEV_BIG_SYNC_LOST : u32 = 30 ; pub const BLE_HCI_LE_SUBEV_REQ_PEER_SCA_COMP : u32 = 31 ; pub const BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT : u32 = 34 ; pub const BLE_HCI_EVENT_ACL_BUF_OVERFLOW : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_ADV_IND : u32 = 0 ; pub const BLE_HCI_ADV_RPT_EVTYPE_DIR_IND : u32 = 1 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND : u32 = 2 ; pub const BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND : u32 = 3 ; pub const BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP : u32 = 4 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_IND : u32 = 19 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_DIRECT_IND : u32 = 21 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_SCAN_IND : u32 = 18 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND : u32 = 16 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND : u32 = 27 ; pub const BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND : u32 = 26 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER : u32 = 0 ; pub const BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE : u32 = 1 ; pub const BLE_HCI_LE_CONN_HANDLE_MAX : u32 = 3839 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MIN : u32 = 1 ; pub const BLE_HCI_LE_ADV_RPT_NUM_RPTS_MAX : u32 = 25 ; pub const BLE_HCI_VER_BCS_1_0b : u32 = 0 ; pub const BLE_HCI_VER_BCS_1_1 : u32 = 1 ; pub const BLE_HCI_VER_BCS_1_2 : u32 = 2 ; pub const BLE_HCI_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_HCI_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_HCI_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_HCI_VER_BCS_4_0 : u32 = 6 ; pub const BLE_HCI_VER_BCS_4_1 : u32 = 7 ; pub const BLE_HCI_VER_BCS_4_2 : u32 = 8 ; pub const BLE_HCI_VER_BCS_5_0 : u32 = 9 ; pub const BLE_HCI_VER_BCS_5_1 : u32 = 10 ; pub const BLE_HCI_VER_BCS_5_2 : u32 = 11 ; pub const BLE_LMP_VER_BCS_1_0b : u32 = 0 ; pub const BLE_LMP_VER_BCS_1_1 : u32 = 1 ; pub const BLE_LMP_VER_BCS_1_2 : u32 = 2 ; pub const BLE_LMP_VER_BCS_2_0_EDR : u32 = 3 ; pub const BLE_LMP_VER_BCS_2_1_EDR : u32 = 4 ; pub const BLE_LMP_VER_BCS_3_0_HCS : u32 = 5 ; pub const BLE_LMP_VER_BCS_4_0 : u32 = 6 ; pub const BLE_LMP_VER_BCS_4_1 : u32 = 7 ; pub const BLE_LMP_VER_BCS_4_2 : u32 = 8 ; pub const BLE_LMP_VER_BCS_5_0 : u32 = 9 ; pub const BLE_LMP_VER_BCS_5_1 : u32 = 10 ; pub const BLE_LMP_VER_BCS_5_2 : u32 = 11 ; pub const BLE_HCI_VER_BCS : u32 = 9 ; pub const BLE_LMP_VER_BCS : u32 = 9 ; pub const BLE_HCI_DATA_HDR_SZ : u32 = 4 ; pub const BLE_HCI_PB_FIRST_NON_FLUSH : u32 = 0 ; pub const BLE_HCI_PB_MIDDLE : u32 = 1 ; pub const BLE_HCI_PB_FIRST_FLUSH : u32 = 2 ; pub const BLE_HCI_PB_FULL : u32 = 3 ; pub const BLE_ATT_UUID_PRIMARY_SERVICE : u32 = 10240 ; pub const BLE_ATT_UUID_SECONDARY_SERVICE : u32 = 10241 ; pub const BLE_ATT_UUID_INCLUDE : u32 = 10242 ; pub const BLE_ATT_UUID_CHARACTERISTIC : u32 = 10243 ; pub const BLE_ATT_ERR_INVALID_HANDLE : u32 = 1 ; pub const BLE_ATT_ERR_READ_NOT_PERMITTED : u32 = 2 ; pub const BLE_ATT_ERR_WRITE_NOT_PERMITTED : u32 = 3 ; pub const BLE_ATT_ERR_INVALID_PDU : u32 = 4 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_ATT_ERR_REQ_NOT_SUPPORTED : u32 = 6 ; pub const BLE_ATT_ERR_INVALID_OFFSET : u32 = 7 ; pub const BLE_ATT_ERR_INSUFFICIENT_AUTHOR : u32 = 8 ; pub const BLE_ATT_ERR_PREPARE_QUEUE_FULL : u32 = 9 ; pub const BLE_ATT_ERR_ATTR_NOT_FOUND : u32 = 10 ; pub const BLE_ATT_ERR_ATTR_NOT_LONG : u32 = 11 ; pub const BLE_ATT_ERR_INSUFFICIENT_KEY_SZ : u32 = 12 ; pub const BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN : u32 = 13 ; pub const BLE_ATT_ERR_UNLIKELY : u32 = 14 ; pub const BLE_ATT_ERR_INSUFFICIENT_ENC : u32 = 15 ; pub const BLE_ATT_ERR_UNSUPPORTED_GROUP : u32 = 16 ; pub const BLE_ATT_ERR_INSUFFICIENT_RES : u32 = 17 ; pub const BLE_ATT_OP_ERROR_RSP : u32 = 1 ; pub const BLE_ATT_OP_MTU_REQ : u32 = 2 ; pub const BLE_ATT_OP_MTU_RSP : u32 = 3 ; pub const BLE_ATT_OP_FIND_INFO_REQ : u32 = 4 ; pub const BLE_ATT_OP_FIND_INFO_RSP : u32 = 5 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_REQ : u32 = 6 ; pub const BLE_ATT_OP_FIND_TYPE_VALUE_RSP : u32 = 7 ; pub const BLE_ATT_OP_READ_TYPE_REQ : u32 = 8 ; pub const BLE_ATT_OP_READ_TYPE_RSP : u32 = 9 ; pub const BLE_ATT_OP_READ_REQ : u32 = 10 ; pub const BLE_ATT_OP_READ_RSP : u32 = 11 ; pub const BLE_ATT_OP_READ_BLOB_REQ : u32 = 12 ; pub const BLE_ATT_OP_READ_BLOB_RSP : u32 = 13 ; pub const BLE_ATT_OP_READ_MULT_REQ : u32 = 14 ; pub const BLE_ATT_OP_READ_MULT_RSP : u32 = 15 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_REQ : u32 = 16 ; pub const BLE_ATT_OP_READ_GROUP_TYPE_RSP : u32 = 17 ; pub const BLE_ATT_OP_WRITE_REQ : u32 = 18 ; pub const BLE_ATT_OP_WRITE_RSP : u32 = 19 ; pub const BLE_ATT_OP_PREP_WRITE_REQ : u32 = 22 ; pub const BLE_ATT_OP_PREP_WRITE_RSP : u32 = 23 ; pub const BLE_ATT_OP_EXEC_WRITE_REQ : u32 = 24 ; pub const BLE_ATT_OP_EXEC_WRITE_RSP : u32 = 25 ; pub const BLE_ATT_OP_NOTIFY_REQ : u32 = 27 ; pub const BLE_ATT_OP_INDICATE_REQ : u32 = 29 ; pub const BLE_ATT_OP_INDICATE_RSP : u32 = 30 ; pub const BLE_ATT_OP_WRITE_CMD : u32 = 82 ; pub const BLE_ATT_ATTR_MAX_LEN : u32 = 512 ; pub const BLE_ATT_F_READ : u32 = 1 ; pub const BLE_ATT_F_WRITE : u32 = 2 ; pub const BLE_ATT_F_READ_ENC : u32 = 4 ; pub const BLE_ATT_F_READ_AUTHEN : u32 = 8 ; pub const BLE_ATT_F_READ_AUTHOR : u32 = 16 ; pub const BLE_ATT_F_WRITE_ENC : u32 = 32 ; pub const BLE_ATT_F_WRITE_AUTHEN : u32 = 64 ; pub const BLE_ATT_F_WRITE_AUTHOR : u32 = 128 ; pub const HA_FLAG_PERM_RW : u32 = 3 ; pub const BLE_ATT_ACCESS_OP_READ : u32 = 1 ; pub const BLE_ATT_ACCESS_OP_WRITE : u32 = 2 ; pub const BLE_ATT_MTU_DFLT : u32 = 23 ; pub const BLE_ATT_MTU_MAX : u32 = 527 ; pub const BLE_EDDYSTONE_MAX_UUIDS16 : u32 = 3 ; pub const BLE_EDDYSTONE_URL_MAX_LEN : u32 = 17 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP_WWW : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS_WWW : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTP : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SCHEME_HTTPS : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM_SLASH : u32 = 0 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG_SLASH : u32 = 1 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU_SLASH : u32 = 2 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET_SLASH : u32 = 3 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO_SLASH : u32 = 4 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ_SLASH : u32 = 5 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV_SLASH : u32 = 6 ; pub const BLE_EDDYSTONE_URL_SUFFIX_COM : u32 = 7 ; pub const BLE_EDDYSTONE_URL_SUFFIX_ORG : u32 = 8 ; pub const BLE_EDDYSTONE_URL_SUFFIX_EDU : u32 = 9 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NET : u32 = 10 ; pub const BLE_EDDYSTONE_URL_SUFFIX_INFO : u32 = 11 ; pub const BLE_EDDYSTONE_URL_SUFFIX_BIZ : u32 = 12 ; pub const BLE_EDDYSTONE_URL_SUFFIX_GOV : u32 = 13 ; pub const BLE_EDDYSTONE_URL_SUFFIX_NONE : u32 = 255 ; pub const BLE_UUID_STR_LEN : u32 = 37 ; pub const BLE_HS_ADV_MAX_SZ : u32 = 31 ; pub const BLE_HS_ADV_MAX_FIELD_SZ : u32 = 29 ; pub const BLE_HS_ADV_TYPE_FLAGS : u32 = 1 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS16 : u32 = 2 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS16 : u32 = 3 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS32 : u32 = 4 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS32 : u32 = 5 ; pub const BLE_HS_ADV_TYPE_INCOMP_UUIDS128 : u32 = 6 ; pub const BLE_HS_ADV_TYPE_COMP_UUIDS128 : u32 = 7 ; pub const BLE_HS_ADV_TYPE_INCOMP_NAME : u32 = 8 ; pub const BLE_HS_ADV_TYPE_COMP_NAME : u32 = 9 ; pub const BLE_HS_ADV_TYPE_TX_PWR_LVL : u32 = 10 ; pub const BLE_HS_ADV_TYPE_SLAVE_ITVL_RANGE : u32 = 18 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS16 : u32 = 20 ; pub const BLE_HS_ADV_TYPE_SOL_UUIDS128 : u32 = 21 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID16 : u32 = 22 ; pub const BLE_HS_ADV_TYPE_PUBLIC_TGT_ADDR : u32 = 23 ; pub const BLE_HS_ADV_TYPE_RANDOM_TGT_ADDR : u32 = 24 ; pub const BLE_HS_ADV_TYPE_APPEARANCE : u32 = 25 ; pub const BLE_HS_ADV_TYPE_ADV_ITVL : u32 = 26 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID32 : u32 = 32 ; pub const BLE_HS_ADV_TYPE_SVC_DATA_UUID128 : u32 = 33 ; pub const BLE_HS_ADV_TYPE_URI : u32 = 36 ; pub const BLE_HS_ADV_TYPE_MESH_PROV : u32 = 41 ; pub const BLE_HS_ADV_TYPE_MESH_MESSAGE : u32 = 42 ; pub const BLE_HS_ADV_TYPE_MESH_BEACON : u32 = 43 ; pub const BLE_HS_ADV_TYPE_MFG_DATA : u32 = 255 ; pub const BLE_HS_ADV_FLAGS_LEN : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_LTD : u32 = 1 ; pub const BLE_HS_ADV_F_DISC_GEN : u32 = 2 ; pub const BLE_HS_ADV_F_BREDR_UNSUP : u32 = 4 ; pub const BLE_HS_ADV_TX_PWR_LVL_LEN : u32 = 1 ; pub const BLE_HS_ADV_TX_PWR_LVL_AUTO : i32 = - 128 ; pub const BLE_HS_ADV_SLAVE_ITVL_RANGE_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID16_MIN_LEN : u32 = 2 ; pub const BLE_HS_ADV_PUBLIC_TGT_ADDR_ENTRY_LEN : u32 = 6 ; pub const BLE_HS_ADV_APPEARANCE_LEN : u32 = 2 ; pub const BLE_HS_ADV_ADV_ITVL_LEN : u32 = 2 ; pub const BLE_HS_ADV_SVC_DATA_UUID32_MIN_LEN : u32 = 4 ; pub const BLE_HS_ADV_SVC_DATA_UUID128_MIN_LEN : u32 = 16 ; pub const BLE_GAP_DISC_DUR_DFLT : f64 = 10240.0 ; pub const BLE_GAP_CONN_DUR_DFLT : u32 = 30000 ; pub const BLE_GAP_CONN_PAUSE_CENTRAL : u32 = 1000 ; pub const BLE_GAP_CONN_PAUSE_PERIPHERAL : u32 = 5000 ; pub const BLE_GAP_ADV_DFLT_CHANNEL_MAP : u32 = 7 ; pub const BLE_GAP_INITIAL_CONN_LATENCY : u32 = 0 ; pub const BLE_GAP_INITIAL_SUPERVISION_TIMEOUT : u32 = 256 ; pub const BLE_GAP_INITIAL_CONN_MIN_CE_LEN : u32 = 0 ; pub const BLE_GAP_INITIAL_CONN_MAX_CE_LEN : u32 = 0 ; pub const BLE_GAP_ROLE_MASTER : u32 = 0 ; pub const BLE_GAP_ROLE_SLAVE : u32 = 1 ; pub const BLE_GAP_EVENT_CONNECT : u32 = 0 ; pub const BLE_GAP_EVENT_DISCONNECT : u32 = 1 ; pub const BLE_GAP_EVENT_CONN_UPDATE : u32 = 3 ; pub const BLE_GAP_EVENT_CONN_UPDATE_REQ : u32 = 4 ; pub const BLE_GAP_EVENT_L2CAP_UPDATE_REQ : u32 = 5 ; pub const BLE_GAP_EVENT_TERM_FAILURE : u32 = 6 ; pub const BLE_GAP_EVENT_DISC : u32 = 7 ; pub const BLE_GAP_EVENT_DISC_COMPLETE : u32 = 8 ; pub const BLE_GAP_EVENT_ADV_COMPLETE : u32 = 9 ; pub const BLE_GAP_EVENT_ENC_CHANGE : u32 = 10 ; pub const BLE_GAP_EVENT_PASSKEY_ACTION : u32 = 11 ; pub const BLE_GAP_EVENT_NOTIFY_RX : u32 = 12 ; pub const BLE_GAP_EVENT_NOTIFY_TX : u32 = 13 ; pub const BLE_GAP_EVENT_SUBSCRIBE : u32 = 14 ; pub const BLE_GAP_EVENT_MTU : u32 = 15 ; pub const BLE_GAP_EVENT_IDENTITY_RESOLVED : u32 = 16 ; pub const BLE_GAP_EVENT_REPEAT_PAIRING : u32 = 17 ; pub const BLE_GAP_EVENT_PHY_UPDATE_COMPLETE : u32 = 18 ; pub const BLE_GAP_EVENT_EXT_DISC : u32 = 19 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC : u32 = 20 ; pub const BLE_GAP_EVENT_PERIODIC_REPORT : u32 = 21 ; pub const BLE_GAP_EVENT_PERIODIC_SYNC_LOST : u32 = 22 ; pub const BLE_GAP_EVENT_SCAN_REQ_RCVD : u32 = 23 ; pub const BLE_GAP_EVENT_PERIODIC_TRANSFER : u32 = 24 ; pub const BLE_GAP_SUBSCRIBE_REASON_WRITE : u32 = 1 ; pub const BLE_GAP_SUBSCRIBE_REASON_TERM : u32 = 2 ; pub const BLE_GAP_SUBSCRIBE_REASON_RESTORE : u32 = 3 ; pub const BLE_GAP_REPEAT_PAIRING_RETRY : u32 = 1 ; pub const BLE_GAP_REPEAT_PAIRING_IGNORE : u32 = 2 ; pub const BLE_GAP_CONN_MODE_NON : u32 = 0 ; pub const BLE_GAP_CONN_MODE_DIR : u32 = 1 ; pub const BLE_GAP_CONN_MODE_UND : u32 = 2 ; pub const BLE_GAP_DISC_MODE_NON : u32 = 0 ; pub const BLE_GAP_DISC_MODE_LTD : u32 = 1 ; pub const BLE_GAP_DISC_MODE_GEN : u32 = 2 ; pub const BLE_GAP_PRIVATE_MODE_NETWORK : u32 = 0 ; pub const BLE_GAP_PRIVATE_MODE_DEVICE : u32 = 1 ; pub const BLE_GAP_LE_PHY_1M : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED : u32 = 3 ; pub const BLE_GAP_LE_PHY_1M_MASK : u32 = 1 ; pub const BLE_GAP_LE_PHY_2M_MASK : u32 = 2 ; pub const BLE_GAP_LE_PHY_CODED_MASK : u32 = 4 ; pub const BLE_GAP_LE_PHY_ANY_MASK : u32 = 15 ; pub const BLE_GAP_LE_PHY_CODED_ANY : u32 = 0 ; pub const BLE_GAP_LE_PHY_CODED_S2 : u32 = 1 ; pub const BLE_GAP_LE_PHY_CODED_S8 : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_SVC : u32 = 1 ; pub const BLE_GATT_REGISTER_OP_CHR : u32 = 2 ; pub const BLE_GATT_REGISTER_OP_DSC : u32 = 3 ; pub const BLE_GATT_SVC_UUID16 : u32 = 6145 ; pub const BLE_GATT_DSC_CLT_CFG_UUID16 : u32 = 10498 ; pub const BLE_GATT_CHR_PROP_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_PROP_READ : u32 = 2 ; pub const BLE_GATT_CHR_PROP_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_PROP_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_PROP_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_PROP_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_PROP_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_PROP_EXTENDED : u32 = 128 ; pub const BLE_GATT_ACCESS_OP_READ_CHR : u32 = 0 ; pub const BLE_GATT_ACCESS_OP_WRITE_CHR : u32 = 1 ; pub const BLE_GATT_ACCESS_OP_READ_DSC : u32 = 2 ; pub const BLE_GATT_ACCESS_OP_WRITE_DSC : u32 = 3 ; pub const BLE_GATT_CHR_F_BROADCAST : u32 = 1 ; pub const BLE_GATT_CHR_F_READ : u32 = 2 ; pub const BLE_GATT_CHR_F_WRITE_NO_RSP : u32 = 4 ; pub const BLE_GATT_CHR_F_WRITE : u32 = 8 ; pub const BLE_GATT_CHR_F_NOTIFY : u32 = 16 ; pub const BLE_GATT_CHR_F_INDICATE : u32 = 32 ; pub const BLE_GATT_CHR_F_AUTH_SIGN_WRITE : u32 = 64 ; pub const BLE_GATT_CHR_F_RELIABLE_WRITE : u32 = 128 ; pub const BLE_GATT_CHR_F_AUX_WRITE : u32 = 256 ; pub const BLE_GATT_CHR_F_READ_ENC : u32 = 512 ; pub const BLE_GATT_CHR_F_READ_AUTHEN : u32 = 1024 ; pub const BLE_GATT_CHR_F_READ_AUTHOR : u32 = 2048 ; pub const BLE_GATT_CHR_F_WRITE_ENC : u32 = 4096 ; pub const BLE_GATT_CHR_F_WRITE_AUTHEN : u32 = 8192 ; pub const BLE_GATT_CHR_F_WRITE_AUTHOR : u32 = 16384 ; pub const BLE_GATT_SVC_TYPE_END : u32 = 0 ; pub const BLE_GATT_SVC_TYPE_PRIMARY : u32 = 1 ; pub const BLE_GATT_SVC_TYPE_SECONDARY : u32 = 2 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [u8 ; 5usize] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const MODLOG_MODULE_DFLT : u32 = 255 ; pub const LOG_LEVEL_DEBUG : u32 = 0 ; pub const LOG_LEVEL_INFO : u32 = 1 ; pub const LOG_LEVEL_WARN : u32 = 2 ; pub const LOG_LEVEL_ERROR : u32 = 3 ; pub const LOG_LEVEL_CRITICAL : u32 = 4 ; pub const LOG_LEVEL_MAX : u32 = 15 ; pub const BLE_L2CAP_CID_ATT : u32 = 4 ; pub const BLE_L2CAP_CID_SIG : u32 = 5 ; pub const BLE_L2CAP_CID_SM : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_REJECT : u32 = 1 ; pub const BLE_L2CAP_SIG_OP_CONNECT_REQ : u32 = 2 ; pub const BLE_L2CAP_SIG_OP_CONNECT_RSP : u32 = 3 ; pub const BLE_L2CAP_SIG_OP_CONFIG_REQ : u32 = 4 ; pub const BLE_L2CAP_SIG_OP_CONFIG_RSP : u32 = 5 ; pub const BLE_L2CAP_SIG_OP_DISCONN_REQ : u32 = 6 ; pub const BLE_L2CAP_SIG_OP_DISCONN_RSP : u32 = 7 ; pub const BLE_L2CAP_SIG_OP_ECHO_REQ : u32 = 8 ; pub const BLE_L2CAP_SIG_OP_ECHO_RSP : u32 = 9 ; pub const BLE_L2CAP_SIG_OP_INFO_REQ : u32 = 10 ; pub const BLE_L2CAP_SIG_OP_INFO_RSP : u32 = 11 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_REQ : u32 = 12 ; pub const BLE_L2CAP_SIG_OP_CREATE_CHAN_RSP : u32 = 13 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_REQ : u32 = 14 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_RSP : u32 = 15 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_REQ : u32 = 16 ; pub const BLE_L2CAP_SIG_OP_MOVE_CHAN_CONF_RSP : u32 = 17 ; pub const BLE_L2CAP_SIG_OP_UPDATE_REQ : u32 = 18 ; pub const BLE_L2CAP_SIG_OP_UPDATE_RSP : u32 = 19 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_REQ : u32 = 20 ; pub const BLE_L2CAP_SIG_OP_LE_CREDIT_CONNECT_RSP : u32 = 21 ; pub const BLE_L2CAP_SIG_OP_FLOW_CTRL_CREDIT : u32 = 22 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ : u32 = 23 ; pub const BLE_L2CAP_SIG_OP_CREDIT_CONNECT_RSP : u32 = 24 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_REQ : u32 = 25 ; pub const BLE_L2CAP_SIG_OP_CREDIT_RECONFIG_RSP : u32 = 26 ; pub const BLE_L2CAP_SIG_OP_MAX : u32 = 27 ; pub const BLE_L2CAP_SIG_ERR_CMD_NOT_UNDERSTOOD : u32 = 0 ; pub const BLE_L2CAP_SIG_ERR_MTU_EXCEEDED : u32 = 1 ; pub const BLE_L2CAP_SIG_ERR_INVALID_CID : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_CONNECTION_SUCCESS : u32 = 0 ; pub const BLE_L2CAP_COC_ERR_UNKNOWN_LE_PSM : u32 = 2 ; pub const BLE_L2CAP_COC_ERR_NO_RESOURCES : u32 = 4 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHEN : u32 = 5 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_AUTHOR : u32 = 6 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_KEY_SZ : u32 = 7 ; pub const BLE_L2CAP_COC_ERR_INSUFFICIENT_ENC : u32 = 8 ; pub const BLE_L2CAP_COC_ERR_INVALID_SOURCE_CID : u32 = 9 ; pub const BLE_L2CAP_COC_ERR_SOURCE_CID_ALREADY_USED : u32 = 10 ; pub const BLE_L2CAP_COC_ERR_UNACCEPTABLE_PARAMETERS : u32 = 11 ; pub const BLE_L2CAP_COC_ERR_INVALID_PARAMETERS : u32 = 12 ; pub const BLE_L2CAP_ERR_RECONFIG_SUCCEED : u32 = 0 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED : u32 = 1 ; pub const BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED : u32 = 2 ; pub const BLE_L2CAP_ERR_RECONFIG_INVALID_DCID : u32 = 3 ; pub const BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_CONNECTED : u32 = 0 ; pub const BLE_L2CAP_EVENT_COC_DISCONNECTED : u32 = 1 ; pub const BLE_L2CAP_EVENT_COC_ACCEPT : u32 = 2 ; pub const BLE_L2CAP_EVENT_COC_DATA_RECEIVED : u32 = 3 ; pub const BLE_L2CAP_EVENT_COC_TX_UNSTALLED : u32 = 4 ; pub const BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED : u32 = 5 ; pub const BLE_L2CAP_EVENT_COC_PEER_RECONFIGURED : u32 = 6 ; pub const BLE_SM_ERR_PASSKEY : u32 = 1 ; pub const BLE_SM_ERR_OOB : u32 = 2 ; pub const BLE_SM_ERR_AUTHREQ : u32 = 3 ; pub const BLE_SM_ERR_CONFIRM_MISMATCH : u32 = 4 ; pub const BLE_SM_ERR_PAIR_NOT_SUPP : u32 = 5 ; pub const BLE_SM_ERR_ENC_KEY_SZ : u32 = 6 ; pub const BLE_SM_ERR_CMD_NOT_SUPP : u32 = 7 ; pub const BLE_SM_ERR_UNSPECIFIED : u32 = 8 ; pub const BLE_SM_ERR_REPEATED : u32 = 9 ; pub const BLE_SM_ERR_INVAL : u32 = 10 ; pub const BLE_SM_ERR_DHKEY : u32 = 11 ; pub const BLE_SM_ERR_NUMCMP : u32 = 12 ; pub const BLE_SM_ERR_ALREADY : u32 = 13 ; pub const BLE_SM_ERR_CROSS_TRANS : u32 = 14 ; pub const BLE_SM_ERR_MAX_PLUS_1 : u32 = 15 ; pub const BLE_SM_PAIR_ALG_JW : u32 = 0 ; pub const BLE_SM_PAIR_ALG_PASSKEY : u32 = 1 ; pub const BLE_SM_PAIR_ALG_OOB : u32 = 2 ; pub const BLE_SM_PAIR_ALG_NUMCMP : u32 = 3 ; pub const BLE_SM_PAIR_KEY_DIST_ENC : u32 = 1 ; pub const BLE_SM_PAIR_KEY_DIST_ID : u32 = 2 ; pub const BLE_SM_PAIR_KEY_DIST_SIGN : u32 = 4 ; pub const BLE_SM_PAIR_KEY_DIST_LINK : u32 = 8 ; pub const BLE_SM_PAIR_KEY_DIST_RESERVED : u32 = 240 ; pub const BLE_SM_IO_CAP_DISP_ONLY : u32 = 0 ; pub const BLE_SM_IO_CAP_DISP_YES_NO : u32 = 1 ; pub const BLE_SM_IO_CAP_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_SM_IO_CAP_NO_IO : u32 = 3 ; pub const BLE_SM_IO_CAP_KEYBOARD_DISP : u32 = 4 ; pub const BLE_SM_IO_CAP_RESERVED : u32 = 5 ; pub const BLE_SM_PAIR_OOB_NO : u32 = 0 ; pub const BLE_SM_PAIR_OOB_YES : u32 = 1 ; pub const BLE_SM_PAIR_OOB_RESERVED : u32 = 2 ; pub const BLE_SM_PAIR_AUTHREQ_BOND : u32 = 1 ; pub const BLE_SM_PAIR_AUTHREQ_MITM : u32 = 4 ; pub const BLE_SM_PAIR_AUTHREQ_SC : u32 = 8 ; pub const BLE_SM_PAIR_AUTHREQ_KEYPRESS : u32 = 16 ; pub const BLE_SM_PAIR_AUTHREQ_RESERVED : u32 = 226 ; pub const BLE_SM_PAIR_KEY_SZ_MIN : u32 = 7 ; pub const BLE_SM_PAIR_KEY_SZ_MAX : u32 = 16 ; pub const BLE_SM_IOACT_NONE : u32 = 0 ; pub const BLE_SM_IOACT_OOB : u32 = 1 ; pub const BLE_SM_IOACT_INPUT : u32 = 2 ; pub const BLE_SM_IOACT_DISP : u32 = 3 ; pub const BLE_SM_IOACT_NUMCMP : u32 = 4 ; pub const BLE_SM_IOACT_OOB_SC : u32 = 5 ; pub const BLE_SM_IOACT_MAX_PLUS_ONE : u32 = 6 ; pub const BLE_STORE_OBJ_TYPE_OUR_SEC : u32 = 1 ; pub const BLE_STORE_OBJ_TYPE_PEER_SEC : u32 = 2 ; pub const BLE_STORE_OBJ_TYPE_CCCD : u32 = 3 ; pub const BLE_STORE_EVENT_OVERFLOW : u32 = 1 ; pub const BLE_STORE_EVENT_FULL : u32 = 2 ; pub const BLE_HS_FOREVER : u32 = 2147483647 ; pub const BLE_HS_CONN_HANDLE_NONE : u32 = 65535 ; pub const BLE_HS_EAGAIN : u32 = 1 ; pub const BLE_HS_EALREADY : u32 = 2 ; pub const BLE_HS_EINVAL : u32 = 3 ; pub const BLE_HS_EMSGSIZE : u32 = 4 ; pub const BLE_HS_ENOENT : u32 = 5 ; pub const BLE_HS_ENOMEM : u32 = 6 ; pub const BLE_HS_ENOTCONN : u32 = 7 ; pub const BLE_HS_ENOTSUP : u32 = 8 ; pub const BLE_HS_EAPP : u32 = 9 ; pub const BLE_HS_EBADDATA : u32 = 10 ; pub const BLE_HS_EOS : u32 = 11 ; pub const BLE_HS_ECONTROLLER : u32 = 12 ; pub const BLE_HS_ETIMEOUT : u32 = 13 ; pub const BLE_HS_EDONE : u32 = 14 ; pub const BLE_HS_EBUSY : u32 = 15 ; pub const BLE_HS_EREJECT : u32 = 16 ; pub const BLE_HS_EUNKNOWN : u32 = 17 ; pub const BLE_HS_EROLE : u32 = 18 ; pub const BLE_HS_ETIMEOUT_HCI : u32 = 19 ; pub const BLE_HS_ENOMEM_EVT : u32 = 20 ; pub const BLE_HS_ENOADDR : u32 = 21 ; pub const BLE_HS_ENOTSYNCED : u32 = 22 ; pub const BLE_HS_EAUTHEN : u32 = 23 ; pub const BLE_HS_EAUTHOR : u32 = 24 ; pub const BLE_HS_EENCRYPT : u32 = 25 ; pub const BLE_HS_EENCRYPT_KEY_SZ : u32 = 26 ; pub const BLE_HS_ESTORE_CAP : u32 = 27 ; pub const BLE_HS_ESTORE_FAIL : u32 = 28 ; pub const BLE_HS_EPREEMPTED : u32 = 29 ; pub const BLE_HS_EDISABLED : u32 = 30 ; pub const BLE_HS_ESTALLED : u32 = 31 ; pub const BLE_HS_ERR_ATT_BASE : u32 = 256 ; pub const BLE_HS_ERR_HCI_BASE : u32 = 512 ; pub const BLE_HS_ERR_L2C_BASE : u32 = 768 ; pub const BLE_HS_ERR_SM_US_BASE : u32 = 1024 ; pub const BLE_HS_ERR_SM_PEER_BASE : u32 = 1280 ; pub const BLE_HS_ERR_HW_BASE : u32 = 1536 ; pub const BLE_HS_IO_DISPLAY_ONLY : u32 = 0 ; pub const BLE_HS_IO_DISPLAY_YESNO : u32 = 1 ; pub const BLE_HS_IO_KEYBOARD_ONLY : u32 = 2 ; pub const BLE_HS_IO_NO_INPUT_OUTPUT : u32 = 3 ; pub const BLE_HS_IO_KEYBOARD_DISPLAY : u32 = 4 ; pub const BLE_SVC_GAP_UUID16 : u32 = 6144 ; pub const BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME : u32 = 10752 ; pub const BLE_SVC_GAP_CHR_UUID16_APPEARANCE : u32 = 10753 ; pub const BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS : u32 = 10756 ; pub const BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION : u32 = 10918 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN : u32 = 0 ; pub const BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER : u32 = 128 ; pub const BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR : u32 = 1157 ; pub type size_t = cty :: c_ulong ; pub type wchar_t = cty :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : cty :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = cty :: c_uchar ; pub type __u_short = cty :: c_ushort ; pub type __u_int = cty :: c_uint ; pub type __u_long = cty :: c_ulong ; pub type __int8_t = cty :: c_schar ; pub type __uint8_t = cty :: c_uchar ; pub type __int16_t = cty :: c_short ; pub type __uint16_t = cty :: c_ushort ; pub type __int32_t = cty :: c_int ; pub type __uint32_t = cty :: c_uint ; pub type __int64_t = cty :: c_long ; pub type __uint64_t = cty :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = cty :: c_long ; pub type __u_quad_t = cty :: c_ulong ; pub type __intmax_t = cty :: c_long ; pub type __uintmax_t = cty :: c_ulong ; pub type __dev_t = cty :: c_ulong ; pub type __uid_t = cty :: c_uint ; pub type __gid_t = cty :: c_uint ; pub type __ino_t = cty :: c_ulong ; pub type __ino64_t = cty :: c_ulong ; pub type __mode_t = cty :: c_uint ; pub type __nlink_t = cty :: c_ulong ; pub type __off_t = cty :: c_long ; pub type __off64_t = cty :: c_long ; pub type __pid_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [cty :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = cty :: c_long ; pub type __rlim_t = cty :: c_ulong ; pub type __rlim64_t = cty :: c_ulong ; pub type __id_t = cty :: c_uint ; pub type __time_t = cty :: c_long ; pub type __useconds_t = cty :: c_uint ; pub type __suseconds_t = cty :: c_long ; pub type __suseconds64_t = cty :: c_long ; pub type __daddr_t = cty :: c_int ; pub type __key_t = cty :: c_int ; pub type __clockid_t = cty :: c_int ; pub type __timer_t = * mut cty :: c_void ; pub type __blksize_t = cty :: c_long ; pub type __blkcnt_t = cty :: c_long ; pub type __blkcnt64_t = cty :: c_long ; pub type __fsblkcnt_t = cty :: c_ulong ; pub type __fsblkcnt64_t = cty :: c_ulong ; pub type __fsfilcnt_t = cty :: c_ulong ; pub type __fsfilcnt64_t = cty :: c_ulong ; pub type __fsword_t = cty :: c_long ; pub type __ssize_t = cty :: c_long ; pub type __syscall_slong_t = cty :: c_long ; pub type __syscall_ulong_t = cty :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut cty :: c_char ; pub type __intptr_t = cty :: c_long ; pub type __socklen_t = cty :: c_uint ; pub type __sig_atomic_t = cty :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = cty :: c_schar ; pub type int_fast16_t = cty :: c_long ; pub type int_fast32_t = cty :: c_long ; pub type int_fast64_t = cty :: c_long ; pub type uint_fast8_t = cty :: c_uchar ; pub type uint_fast16_t = cty :: c_ulong ; pub type uint_fast32_t = cty :: c_ulong ; pub type uint_fast64_t = cty :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type ble_npl_event_fn = :: core :: option :: Option < unsafe extern "C" fn (ev : * mut ble_npl_event) > ; pub const ble_npl_error_BLE_NPL_OK : ble_npl_error = 0 ; pub const ble_npl_error_BLE_NPL_ENOMEM : ble_npl_error = 1 ; pub const ble_npl_error_BLE_NPL_EINVAL : ble_npl_error = 2 ; pub const ble_npl_error_BLE_NPL_INVALID_PARAM : ble_npl_error = 3 ; pub const ble_npl_error_BLE_NPL_MEM_NOT_ALIGNED : ble_npl_error = 4 ; pub const ble_npl_error_BLE_NPL_BAD_MUTEX : ble_npl_error = 5 ; pub const ble_npl_error_BLE_NPL_TIMEOUT : ble_npl_error = 6 ; pub const ble_npl_error_BLE_NPL_ERR_IN_ISR : ble_npl_error = 7 ; pub const ble_npl_error_BLE_NPL_ERR_PRIV : ble_npl_error = 8 ; pub const ble_npl_error_BLE_NPL_OS_NOT_STARTED : ble_npl_error = 9 ; pub const ble_npl_error_BLE_NPL_ENOENT : ble_npl_error = 10 ; pub const ble_npl_error_BLE_NPL_EBUSY : ble_npl_error = 11 ; pub const ble_npl_error_BLE_NPL_ERROR : ble_npl_error = 12 ; pub type ble_npl_error = u32 ; pub use self :: ble_npl_error as ble_npl_error_t ; pub type ble_npl_time_t = u32 ; pub type ble_npl_stime_t = i32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_event { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_event () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_event > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_event))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_event > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_event))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_event > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_event) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_eventq { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_eventq () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_eventq > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_eventq))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_eventq > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_eventq))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_eventq > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_eventq) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_callout { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_callout () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_callout > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_callout))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_callout > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_callout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_callout > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_callout) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_mutex { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_mutex () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_mutex > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_mutex))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_mutex > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_mutex))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_mutex > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_mutex) , "::" , stringify ! (dummy))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_npl_sem { pub dummy : cty :: c_int , } # [test] fn bindgen_test_layout_ble_npl_sem () { assert_eq ! (:: core :: mem :: size_of :: < ble_npl_sem > () , 4usize , concat ! ("Size of: " , stringify ! (ble_npl_sem))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_npl_sem > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_npl_sem))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_npl_sem > ())) . dummy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_npl_sem) , "::" , stringify ! (dummy))) ; } extern "C" { pub fn ble_npl_os_started () -> bool ; } extern "C" { pub fn ble_npl_get_current_task_id () -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_eventq_init (evq : * mut ble_npl_eventq) ; } extern "C" { pub fn ble_npl_eventq_get (evq : * mut ble_npl_eventq , tmo : ble_npl_time_t) -> * mut ble_npl_event ; } extern "C" { pub fn ble_npl_eventq_put (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_eventq_remove (evq : * mut ble_npl_eventq , ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_event_init (ev : * mut ble_npl_event , fn_ : ble_npl_event_fn , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_event_is_queued (ev : * mut ble_npl_event) -> bool ; } extern "C" { pub fn ble_npl_event_get_arg (ev : * mut ble_npl_event) -> * mut cty :: c_void ; } extern "C" { pub fn ble_npl_event_set_arg (ev : * mut ble_npl_event , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_eventq_is_empty (evq : * mut ble_npl_eventq) -> bool ; } extern "C" { pub fn ble_npl_event_run (ev : * mut ble_npl_event) ; } extern "C" { pub fn ble_npl_mutex_init (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_pend (mu : * mut ble_npl_mutex , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_mutex_release (mu : * mut ble_npl_mutex) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_init (sem : * mut ble_npl_sem , tokens : u16) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_pend (sem : * mut ble_npl_sem , timeout : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_release (sem : * mut ble_npl_sem) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_sem_get_count (sem : * mut ble_npl_sem) -> u16 ; } extern "C" { pub fn ble_npl_callout_init (co : * mut ble_npl_callout , evq : * mut ble_npl_eventq , ev_cb : ble_npl_event_fn , ev_arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_callout_reset (co : * mut ble_npl_callout , ticks : ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_callout_stop (co : * mut ble_npl_callout) ; } extern "C" { pub fn ble_npl_callout_is_active (co : * mut ble_npl_callout) -> bool ; } extern "C" { pub fn ble_npl_callout_get_ticks (co : * mut ble_npl_callout) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_remaining_ticks (co : * mut ble_npl_callout , time : ble_npl_time_t) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_callout_set_arg (co : * mut ble_npl_callout , arg : * mut cty :: c_void) ; } extern "C" { pub fn ble_npl_time_get () -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks (ms : u32 , out_ticks : * mut ble_npl_time_t) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms (ticks : ble_npl_time_t , out_ms : * mut u32) -> ble_npl_error_t ; } extern "C" { pub fn ble_npl_time_ms_to_ticks32 (ms : u32) -> ble_npl_time_t ; } extern "C" { pub fn ble_npl_time_ticks_to_ms32 (ticks : ble_npl_time_t) -> u32 ; } extern "C" { pub fn ble_npl_time_delay (ticks : ble_npl_time_t) ; } extern "C" { pub fn ble_npl_hw_enter_critical () -> u32 ; } extern "C" { pub fn ble_npl_hw_exit_critical (ctx : u32) ; } extern "C" { pub fn ble_npl_hw_is_in_critical () -> bool ; } extern "C" { pub fn nimble_port_init () ; } extern "C" { pub fn nimble_port_run () ; } extern "C" { pub fn nimble_port_get_dflt_eventq () -> * mut ble_npl_eventq ; } pub type __gwchar_t = cty :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : cty :: c_long , pub rem : cty :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { assert_eq ! (:: core :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: core :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < imaxdiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const cty :: c_char , __endptr : * mut * mut cty :: c_char , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : cty :: c_int) -> uintmax_t ; } extern "C" { pub fn memcpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memmove (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut cty :: c_void , __src : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memset (__s : * mut cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : size_t) -> cty :: c_int ; } extern "C" { pub fn memchr (__s : * const cty :: c_void , __c : cty :: c_int , __n : cty :: c_ulong) -> * mut cty :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcat (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strncat (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_ulong ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const cty :: c_ushort , pub __ctype_tolower : * const cty :: c_int , pub __ctype_toupper : * const cty :: c_int , pub __names : [* const cty :: c_char ; 13usize] , } # [test] fn bindgen_test_layout___locale_struct () { assert_eq ! (:: core :: mem :: size_of :: < __locale_struct > () , 232usize , concat ! ("Size of: " , stringify ! (__locale_struct))) ; assert_eq ! (:: core :: mem :: align_of :: < __locale_struct > () , 8usize , concat ! ("Alignment of " , stringify ! (__locale_struct))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __locales as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__locales))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_b as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_b))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_tolower))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__ctype_toupper))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < __locale_struct > ())) . __names as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (__locale_struct) , "::" , stringify ! (__names))) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn strcoll_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __l : locale_t) -> cty :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t , __l : locale_t) -> size_t ; } extern "C" { pub fn strdup (__s : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strndup (__string : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn strchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strrchr (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn strcspn (__s : * const cty :: c_char , __reject : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strspn (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const cty :: c_char , __accept : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strstr (__haystack : * const cty :: c_char , __needle : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok (__s : * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut cty :: c_char , __delim : * const cty :: c_char , __save_ptr : * mut * mut cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strlen (__s : * const cty :: c_char) -> cty :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const cty :: c_char , __maxlen : size_t) -> size_t ; } extern "C" { pub fn strerror (__errnum : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : cty :: c_int , __buf : * mut cty :: c_char , __buflen : size_t) -> cty :: c_int ; } extern "C" { pub fn strerror_l (__errnum : cty :: c_int , __l : locale_t) -> * mut cty :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const cty :: c_void , __s2 : * const cty :: c_void , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn bcopy (__src : * const cty :: c_void , __dest : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn bzero (__s : * mut cty :: c_void , __n : cty :: c_ulong) ; } extern "C" { pub fn index (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn rindex (__s : * const cty :: c_char , __c : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn ffs (__i : cty :: c_int) -> cty :: c_int ; } extern "C" { pub fn ffsl (__l : cty :: c_long) -> cty :: c_int ; } extern "C" { pub fn ffsll (__ll : cty :: c_longlong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char) -> cty :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : cty :: c_ulong) -> cty :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const cty :: c_char , __s2 : * const cty :: c_char , __n : size_t , __loc : locale_t) -> cty :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut cty :: c_void , __n : size_t) ; } extern "C" { pub fn strsep (__stringp : * mut * mut cty :: c_char , __delim : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn strsignal (__sig : cty :: c_int) -> * mut cty :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char) -> * mut cty :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : size_t) -> * mut cty :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut cty :: c_char , __src : * const cty :: c_char , __n : cty :: c_ulong) -> * mut cty :: c_char ; } extern "C" { pub fn __assert_fail (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert_perror_fail (__errnum : cty :: c_int , __file : * const cty :: c_char , __line : cty :: c_uint , __function : * const cty :: c_char) ; } extern "C" { pub fn __assert (__assertion : * const cty :: c_char , __file : * const cty :: c_char , __line : cty :: c_int) ; } pub type os_sr_t = u32 ; extern "C" { pub fn put_le16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_le24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_le64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_le16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_le24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_le64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn put_be16 (buf : * mut cty :: c_void , x : u16) ; } extern "C" { pub fn put_be24 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be32 (buf : * mut cty :: c_void , x : u32) ; } extern "C" { pub fn put_be64 (buf : * mut cty :: c_void , x : u64) ; } extern "C" { pub fn get_be16 (buf : * const cty :: c_void) -> u16 ; } extern "C" { pub fn get_be24 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be32 (buf : * const cty :: c_void) -> u32 ; } extern "C" { pub fn get_be64 (buf : * const cty :: c_void) -> u64 ; } extern "C" { pub fn swap_in_place (buf : * mut cty :: c_void , len : cty :: c_int) ; } extern "C" { pub fn swap_buf (dst : * mut u8 , src : * const u8 , len : cty :: c_int) ; } pub const os_error_OS_OK : os_error = 0 ; pub const os_error_OS_ENOMEM : os_error = 1 ; pub const os_error_OS_EINVAL : os_error = 2 ; pub const os_error_OS_INVALID_PARM : os_error = 3 ; pub const os_error_OS_MEM_NOT_ALIGNED : os_error = 4 ; pub const os_error_OS_BAD_MUTEX : os_error = 5 ; pub const os_error_OS_TIMEOUT : os_error = 6 ; pub const os_error_OS_ERR_IN_ISR : os_error = 7 ; pub const os_error_OS_ERR_PRIV : os_error = 8 ; pub const os_error_OS_NOT_STARTED : os_error = 9 ; pub const os_error_OS_ENOENT : os_error = 10 ; pub const os_error_OS_EBUSY : os_error = 11 ; pub const os_error_OS_ERROR : os_error = 12 ; pub type os_error = u32 ; pub use self :: os_error as os_error_t ; # [doc = " A mbuf pool from which to allocate mbufs. This contains a pointer to the os"] # [doc = " mempool to allocate mbufs out of, the total number of elements in the pool,"] # [doc = " and the amount of \"user\" data in a non-packet header mbuf. The total pool"] # [doc = " size, in bytes, should be:"] # [doc = " os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool { # [doc = " Total length of the databuf in each mbuf. This is the size of the"] # [doc = " mempool block, minus the mbuf header"] pub omp_databuf_len : u16 , # [doc = " The memory pool which to allocate mbufs out of"] pub omp_pool : * mut os_mempool , pub omp_next : os_mbuf_pool__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pool__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pool , } # [test] fn bindgen_test_layout_os_mbuf_pool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pool () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pool > () , 24usize , concat ! ("Size of: " , stringify ! (os_mbuf_pool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_databuf_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_databuf_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_pool as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_pool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pool > ())) . omp_next as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pool) , "::" , stringify ! (omp_next))) ; } # [doc = " A packet header structure that preceeds the mbuf packet headers."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr { # [doc = " Overall length of the packet."] pub omp_len : u16 , # [doc = " Flags"] pub omp_flags : u16 , pub omp_next : os_mbuf_pkthdr__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf_pkthdr__bindgen_ty_1 { pub stqe_next : * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mbuf_pkthdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [test] fn bindgen_test_layout_os_mbuf_pkthdr () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf_pkthdr > () , 16usize , concat ! ("Size of: " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf_pkthdr > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf_pkthdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_flags as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf_pkthdr > ())) . omp_next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf_pkthdr) , "::" , stringify ! (omp_next))) ; } # [doc = " Chained memory buffer."] # [repr (C)] # [derive (Debug)] pub struct os_mbuf { # [doc = " Current pointer to data in the structure"] pub om_data : * mut u8 , # [doc = " Flags associated with this buffer, see OS_MBUF_F_* defintions"] pub om_flags : u8 , # [doc = " Length of packet header"] pub om_pkthdr_len : u8 , # [doc = " Length of data in this buffer"] pub om_len : u16 , # [doc = " The mbuf pool this mbuf was allocated out of"] pub om_omp : * mut os_mbuf_pool , pub om_next : os_mbuf__bindgen_ty_1 , # [doc = " Pointer to the beginning of the data, after this buffer"] pub om_databuf : __IncompleteArrayField < u8 > , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mbuf__bindgen_ty_1 { pub sle_next : * mut os_mbuf , } # [test] fn bindgen_test_layout_os_mbuf__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_mbuf () { assert_eq ! (:: core :: mem :: size_of :: < os_mbuf > () , 32usize , concat ! ("Size of: " , stringify ! (os_mbuf))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mbuf > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mbuf))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_flags as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_pkthdr_len as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_pkthdr_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_omp as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_omp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_next as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_next))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mbuf > ())) . om_databuf as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (os_mbuf) , "::" , stringify ! (om_databuf))) ; } # [doc = " Structure representing a queue of mbufs."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue { pub mq_head : os_mqueue__bindgen_ty_1 , # [doc = " Event to post when new buffers are available on the queue."] pub mq_ev : ble_npl_event , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mqueue__bindgen_ty_1 { pub stqh_first : * mut os_mbuf_pkthdr , pub stqh_last : * mut * mut os_mbuf_pkthdr , } # [test] fn bindgen_test_layout_os_mqueue__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_first))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue__bindgen_ty_1 > ())) . stqh_last as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mqueue__bindgen_ty_1) , "::" , stringify ! (stqh_last))) ; } # [test] fn bindgen_test_layout_os_mqueue () { assert_eq ! (:: core :: mem :: size_of :: < os_mqueue > () , 24usize , concat ! ("Size of: " , stringify ! (os_mqueue))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mqueue > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mqueue))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_head as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_head))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mqueue > ())) . mq_ev as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mqueue) , "::" , stringify ! (mq_ev))) ; } extern "C" { # [doc = " Initializes an mqueue. An mqueue is a queue of mbufs that ties to a"] # [doc = " particular task's event queue. Mqueues form a helper API around a common"] # [doc = " paradigm: wait on an event queue until at least one packet is available,"] # [doc = " then process a queue of packets."] # [doc = ""] # [doc = " When mbufs are available on the queue, an event OS_EVENT_T_MQUEUE_DATA"] # [doc = " will be posted to the task's mbuf queue."] # [doc = ""] # [doc = " @param mq The mqueue to initialize"] # [doc = " @param ev_cb The callback to associate with the mqeueue"] # [doc = " event. Typically, this callback pulls each"] # [doc = " packet off the mqueue and processes them."] # [doc = " @param arg The argument to associate with the mqueue event."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_init (mq : * mut os_mqueue , ev_cb : ble_npl_event_fn , arg : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Remove and return a single mbuf from the mbuf queue. Does not block."] # [doc = ""] # [doc = " @param mq The mbuf queue to pull an element off of."] # [doc = ""] # [doc = " @return The next mbuf in the queue, or NULL if queue has no mbufs."] pub fn os_mqueue_get (arg1 : * mut os_mqueue) -> * mut os_mbuf ; } extern "C" { # [doc = " Adds a packet (i.e. packet header mbuf) to an mqueue. The event associated"] # [doc = " with the mqueue gets posted to the specified eventq."] # [doc = ""] # [doc = " @param mq The mbuf queue to append the mbuf to."] # [doc = " @param evq The event queue to post an event to."] # [doc = " @param m The mbuf to append to the mbuf queue."] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure."] pub fn os_mqueue_put (arg1 : * mut os_mqueue , arg2 : * mut ble_npl_eventq , arg3 : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " MSYS is a system level mbuf registry. Allows the system to share"] # [doc = " packet buffers amongst the various networking stacks that can be running"] # [doc = " simultaeneously."] # [doc = ""] # [doc = " Mbuf pools are created in the system initialization code, and then when"] # [doc = " a mbuf is allocated out of msys, it will try and find the best fit based"] # [doc = " upon estimated mbuf size."] # [doc = ""] # [doc = " os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to"] # [doc = " allocate mbufs out of it."] # [doc = ""] # [doc = " @param new_pool The pool to register with MSYS"] # [doc = ""] # [doc = " @return 0 on success, non-zero on failure"] pub fn os_msys_register (arg1 : * mut os_mbuf_pool) -> cty :: c_int ; } extern "C" { # [doc = " Allocate a mbuf from msys. Based upon the data size requested,"] # [doc = " os_msys_get() will choose the mbuf pool that has the best fit."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param leadingspace The amount of leadingspace to allocate in the mbuf"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get (dsize : u16 , leadingspace : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " De-registers all mbuf pools from msys."] pub fn os_msys_reset () ; } extern "C" { # [doc = " Allocate a packet header structure from the MSYS pool. See"] # [doc = " os_msys_register() for a description of MSYS."] # [doc = ""] # [doc = " @param dsize The estimated size of the data being stored in the mbuf"] # [doc = " @param user_hdr_len The length to allocate for the packet header structure"] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_msys_get_pkthdr (dsize : u16 , user_hdr_len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Count the number of blocks in all the mbuf pools that are allocated."] # [doc = ""] # [doc = " @return total number of blocks allocated in Msys"] pub fn os_msys_count () -> cty :: c_int ; } extern "C" { # [doc = " Return the number of free blocks in Msys"] # [doc = ""] # [doc = " @return Number of free blocks available in Msys"] pub fn os_msys_num_free () -> cty :: c_int ; } extern "C" { # [doc = " Initialize a pool of mbufs."] # [doc = ""] # [doc = " @param omp The mbuf pool to initialize"] # [doc = " @param mp The memory pool that will hold this mbuf pool"] # [doc = " @param buf_len The length of the buffer itself."] # [doc = " @param nbufs The number of buffers in the pool"] # [doc = ""] # [doc = " @return 0 on success, error code on failure."] pub fn os_mbuf_pool_init (arg1 : * mut os_mbuf_pool , mp : * mut os_mempool , arg2 : u16 , arg3 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized"] # [doc = " prior to being returned."] # [doc = ""] # [doc = " @param omp The mbuf pool to return the packet from"] # [doc = " @param leadingspace The amount of leadingspace to put before the data"] # [doc = " section by default."] # [doc = ""] # [doc = " @return An initialized mbuf on success, and NULL on failure."] pub fn os_mbuf_get (omp : * mut os_mbuf_pool , arg1 : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Allocate a new packet header mbuf out of the os_mbuf_pool."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate out of"] # [doc = " @param user_pkthdr_len The packet header length to reserve for the caller."] # [doc = ""] # [doc = " @return A freshly allocated mbuf on success, NULL on failure."] pub fn os_mbuf_get_pkthdr (omp : * mut os_mbuf_pool , pkthdr_len : u8) -> * mut os_mbuf ; } extern "C" { # [doc = " Duplicate a chain of mbufs. Return the start of the duplicated chain."] # [doc = ""] # [doc = " @param omp The mbuf pool to duplicate out of"] # [doc = " @param om The mbuf chain to duplicate"] # [doc = ""] # [doc = " @return A pointer to the new chain of mbufs"] pub fn os_mbuf_dup (m : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Locates the specified absolute offset within an mbuf chain. The offset"] # [doc = " can be one past than the total length of the chain, but no greater."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to seek within."] # [doc = " @param off The absolute address to find."] # [doc = " @param out_off On success, this points to the relative offset"] # [doc = " within the returned mbuf."] # [doc = ""] # [doc = " @return The mbuf containing the specified offset on"] # [doc = " success."] # [doc = " NULL if the specified offset is out of bounds."] pub fn os_mbuf_off (om : * const os_mbuf , off : cty :: c_int , out_off : * mut u16) -> * mut os_mbuf ; } extern "C" { pub fn os_mbuf_copydata (m : * const os_mbuf , off : cty :: c_int , len : cty :: c_int , dst : * mut cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Append data onto a mbuf"] # [doc = ""] # [doc = " @param om The mbuf to append the data onto"] # [doc = " @param data The data to append onto the mbuf"] # [doc = " @param len The length of the data to append"] # [doc = ""] # [doc = " @return 0 on success, and an error code on failure"] pub fn os_mbuf_append (m : * mut os_mbuf , arg1 : * const cty :: c_void , arg2 : u16) -> cty :: c_int ; } extern "C" { # [doc = " Reads data from one mbuf and appends it to another. On error, the specified"] # [doc = " data range may be partially appended. Neither mbuf is required to contain"] # [doc = " an mbuf packet header."] # [doc = ""] # [doc = " @param dst The mbuf to append to."] # [doc = " @param src The mbuf to copy data from."] # [doc = " @param src_off The absolute offset within the source mbuf"] # [doc = " chain to read from."] # [doc = " @param len The number of bytes to append."] # [doc = ""] # [doc = " @return 0 on success;"] # [doc = " OS_EINVAL if the specified range extends beyond"] # [doc = " the end of the source mbuf chain."] pub fn os_mbuf_appendfrom (dst : * mut os_mbuf , src : * const os_mbuf , src_off : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Release a mbuf back to the pool"] # [doc = ""] # [doc = " @param omp The Mbuf pool to release back to"] # [doc = " @param om The Mbuf to release back to the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free (mb : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Free a chain of mbufs"] # [doc = ""] # [doc = " @param omp The mbuf pool to free the chain of mbufs into"] # [doc = " @param om The starting mbuf of the chain to free back into the pool"] # [doc = ""] # [doc = " @return 0 on success, -1 on failure"] pub fn os_mbuf_free_chain (om : * mut os_mbuf) -> cty :: c_int ; } extern "C" { # [doc = " Adjust the length of a mbuf, trimming either from the head or the tail"] # [doc = " of the mbuf."] # [doc = ""] # [doc = " @param mp The mbuf chain to adjust"] # [doc = " @param req_len The length to trim from the mbuf. If positive, trims"] # [doc = " from the head of the mbuf, if negative, trims from the"] # [doc = " tail of the mbuf."] pub fn os_mbuf_adj (mp : * mut os_mbuf , req_len : cty :: c_int) ; } extern "C" { # [doc = " Performs a memory compare of the specified region of an mbuf chain against a"] # [doc = " flat buffer."] # [doc = ""] # [doc = " @param om The start of the mbuf chain to compare."] # [doc = " @param off The offset within the mbuf chain to start the"] # [doc = " comparison."] # [doc = " @param data The flat buffer to compare."] # [doc = " @param len The length of the flat buffer."] # [doc = ""] # [doc = " @return 0 if both memory regions are identical;"] # [doc = " A memcmp return code if there is a mismatch;"] # [doc = " INT_MAX if the mbuf is too short."] pub fn os_mbuf_cmpf (om : * const os_mbuf , off : cty :: c_int , data : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Compares the contents of two mbuf chains. The ranges of the two chains to"] # [doc = " be compared are specified via the two offset parameters and the len"] # [doc = " parameter. Neither mbuf chain is required to contain a packet header."] # [doc = ""] # [doc = " @param om1 The first mbuf chain to compare."] # [doc = " @param offset1 The absolute offset within om1 at which to"] # [doc = " start the comparison."] # [doc = " @param om2 The second mbuf chain to compare."] # [doc = " @param offset2 The absolute offset within om2 at which to"] # [doc = " start the comparison."] # [doc = " @param len The number of bytes to compare."] # [doc = ""] # [doc = " @return 0 if both mbuf segments are identical;"] # [doc = " A memcmp() return code if the segment contents"] # [doc = " differ;"] # [doc = " INT_MAX if a specified range extends beyond the"] # [doc = " end of its corresponding mbuf chain."] pub fn os_mbuf_cmpm (om1 : * const os_mbuf , offset1 : u16 , om2 : * const os_mbuf , offset2 : u16 , len : u16) -> cty :: c_int ; } extern "C" { # [doc = " Increases the length of an mbuf chain by adding data to the front. If there"] # [doc = " is insufficient room in the leading mbuf, additional mbufs are allocated and"] # [doc = " prepended as necessary. If this function fails to allocate an mbuf, the"] # [doc = " entire chain is freed."] # [doc = ""] # [doc = " The specified mbuf chain does not need to contain a packet header."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The head of the mbuf chain."] # [doc = " @param len The number of bytes to prepend."] # [doc = ""] # [doc = " @return The new head of the chain on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_prepend (om : * mut os_mbuf , len : cty :: c_int) -> * mut os_mbuf ; } extern "C" { # [doc = " Prepends a chunk of empty data to the specified mbuf chain and ensures the"] # [doc = " chunk is contiguous. If either operation fails, the specified mbuf chain is"] # [doc = " freed and NULL is returned."] # [doc = ""] # [doc = " @param om The mbuf chain to prepend to."] # [doc = " @param len The number of bytes to prepend and pullup."] # [doc = ""] # [doc = " @return The modified mbuf on success;"] # [doc = " NULL on failure (and the mbuf chain is freed)."] pub fn os_mbuf_prepend_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Copies the contents of a flat buffer into an mbuf chain, starting at the"] # [doc = " specified destination offset. If the mbuf is too small for the source data,"] # [doc = " it is extended as necessary. If the destination mbuf contains a packet"] # [doc = " header, the header length is updated."] # [doc = ""] # [doc = " @param omp The mbuf pool to allocate from."] # [doc = " @param om The mbuf chain to copy into."] # [doc = " @param off The offset within the chain to copy to."] # [doc = " @param src The source buffer to copy from."] # [doc = " @param len The number of bytes to copy."] # [doc = ""] # [doc = " @return 0 on success; nonzero on failure."] pub fn os_mbuf_copyinto (om : * mut os_mbuf , off : cty :: c_int , src : * const cty :: c_void , len : cty :: c_int) -> cty :: c_int ; } extern "C" { # [doc = " Attaches a second mbuf chain onto the end of the first. If the first chain"] # [doc = " contains a packet header, the header's length is updated. If the second"] # [doc = " chain has a packet header, its header is cleared."] # [doc = ""] # [doc = " @param first The mbuf chain being attached to."] # [doc = " @param second The mbuf chain that gets attached."] pub fn os_mbuf_concat (first : * mut os_mbuf , second : * mut os_mbuf) ; } extern "C" { # [doc = " Increases the length of an mbuf chain by the specified amount. If there is"] # [doc = " not sufficient room in the last buffer, a new buffer is allocated and"] # [doc = " appended to the chain. It is an error to request more data than can fit in"] # [doc = " a single buffer."] # [doc = ""] # [doc = " @param omp"] # [doc = " @param om The head of the chain to extend."] # [doc = " @param len The number of bytes to extend by."] # [doc = ""] # [doc = " @return A pointer to the new data on success;"] # [doc = " NULL on failure."] pub fn os_mbuf_extend (om : * mut os_mbuf , len : u16) -> * mut cty :: c_void ; } extern "C" { # [doc = " Rearrange a mbuf chain so that len bytes are contiguous,"] # [doc = " and in the data area of an mbuf (so that OS_MBUF_DATA() will"] # [doc = " work on a structure of size len.) Returns the resulting"] # [doc = " mbuf chain on success, free's it and returns NULL on failure."] # [doc = ""] # [doc = " If there is room, it will add up to \"max_protohdr - len\""] # [doc = " extra bytes to the contiguous region, in an attempt to avoid being"] # [doc = " called next time."] # [doc = ""] # [doc = " @param omp The mbuf pool to take the mbufs out of"] # [doc = " @param om The mbuf chain to make contiguous"] # [doc = " @param len The number of bytes in the chain to make contiguous"] # [doc = ""] # [doc = " @return The contiguous mbuf chain on success, NULL on failure."] pub fn os_mbuf_pullup (om : * mut os_mbuf , len : u16) -> * mut os_mbuf ; } extern "C" { # [doc = " Removes and frees empty mbufs from the front of a chain. If the chain"] # [doc = " contains a packet header, it is preserved."] # [doc = ""] # [doc = " @param om The mbuf chain to trim."] # [doc = ""] # [doc = " @return The head of the trimmed mbuf chain."] pub fn os_mbuf_trim_front (om : * mut os_mbuf) -> * mut os_mbuf ; } extern "C" { # [doc = " Creates a single chained mbuf from m1 and m2 utilizing all"] # [doc = " the available buffer space in all mbufs in the resulting"] # [doc = " chain. In other words, ensures there is no leading space in"] # [doc = " any mbuf in the resulting chain and trailing space only in"] # [doc = " the last mbuf in the chain. Mbufs from either chain may be"] # [doc = " freed if not needed. No mbufs are allocated. Note that mbufs"] # [doc = " from m2 are added to the end of m1. If m1 has a packet"] # [doc = " header, it is retained and length updated. If m2 has a packet"] # [doc = " header it is discarded. If m1 is NULL, NULL is returned and"] # [doc = " m2 is left untouched."] # [doc = ""] # [doc = " @param m1 Pointer to first mbuf chain to pack"] # [doc = " @param m2 Pointer to second mbuf chain to pack"] # [doc = ""] # [doc = " @return struct os_mbuf* Pointer to resulting mbuf chain"] pub fn os_mbuf_pack_chains (m1 : * mut os_mbuf , m2 : * mut os_mbuf) -> * mut os_mbuf ; } # [doc = " A memory block structure. This simply contains a pointer to the free list"] # [doc = " chain and is only used when the block is on the free list. When the block"] # [doc = " has been removed from the free list the entire memory block is usable by the"] # [doc = " caller."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock { pub mb_next : os_memblock__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_memblock__bindgen_ty_1 { pub sle_next : * mut os_memblock , } # [test] fn bindgen_test_layout_os_memblock__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock__bindgen_ty_1 > ())) . sle_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock__bindgen_ty_1) , "::" , stringify ! (sle_next))) ; } # [test] fn bindgen_test_layout_os_memblock () { assert_eq ! (:: core :: mem :: size_of :: < os_memblock > () , 8usize , concat ! ("Size of: " , stringify ! (os_memblock))) ; assert_eq ! (:: core :: mem :: align_of :: < os_memblock > () , 8usize , concat ! ("Alignment of " , stringify ! (os_memblock))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_memblock > ())) . mb_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_memblock) , "::" , stringify ! (mb_next))) ; } # [doc = " Memory pool"] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool { # [doc = " Size of the memory blocks, in bytes."] pub mp_block_size : u32 , # [doc = " The number of memory blocks."] pub mp_num_blocks : u16 , # [doc = " The number of free blocks left"] pub mp_num_free : u16 , # [doc = " The lowest number of free blocks seen"] pub mp_min_free : u16 , # [doc = " Bitmap of OS_MEMPOOL_F_[...] values."] pub mp_flags : u8 , # [doc = " Address of memory buffer used by pool"] pub mp_membuf_addr : usize , pub mp_list : os_mempool__bindgen_ty_1 , pub __bindgen_anon_1 : os_mempool__bindgen_ty_2 , # [doc = " Name for memory block"] pub name : * mut cty :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_1 { pub stqe_next : * mut os_mempool , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_1 > ())) . stqe_next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_1) , "::" , stringify ! (stqe_next))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool__bindgen_ty_2 { pub slh_first : * mut os_memblock , } # [test] fn bindgen_test_layout_os_mempool__bindgen_ty_2 () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool__bindgen_ty_2 > ())) . slh_first as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool__bindgen_ty_2) , "::" , stringify ! (slh_first))) ; } # [test] fn bindgen_test_layout_os_mempool () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_num_free as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_min_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_flags as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_membuf_addr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_membuf_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . mp_list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (mp_list))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool > ())) . name as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (os_mempool) , "::" , stringify ! (name))) ; } # [doc = " Block put callback function. If configured, this callback gets executed"] # [doc = " whenever a block is freed to the corresponding extended mempool. Note: The"] # [doc = " os_memblock_put() function calls this callback instead of freeing the block"] # [doc = " itself. Therefore, it is the callback's responsibility to free the block"] # [doc = " via a call to os_memblock_put_from_cb()."] # [doc = ""] # [doc = " @param ome The extended mempool that a block is being"] # [doc = " freed back to."] # [doc = " @param data The block being freed."] # [doc = " @param arg Optional argument configured along with the"] # [doc = " callback."] # [doc = ""] # [doc = " @return Indicates whether the block was successfully"] # [doc = " freed. A non-zero value should only be"] # [doc = " returned if the block was not successfully"] # [doc = " released back to its pool."] pub type os_mempool_put_fn = :: core :: option :: Option < unsafe extern "C" fn (ome : * mut os_mempool_ext , data : * mut cty :: c_void , arg : * mut cty :: c_void) -> os_error_t > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_ext { pub mpe_mp : os_mempool , pub mpe_put_cb : os_mempool_put_fn , pub mpe_put_arg : * mut cty :: c_void , } # [test] fn bindgen_test_layout_os_mempool_ext () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_ext > () , 64usize , concat ! ("Size of: " , stringify ! (os_mempool_ext))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_ext > () , 8usize , concat ! ("Alignment of " , stringify ! (os_mempool_ext))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_mp as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_mp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_cb as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_cb))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_ext > ())) . mpe_put_arg as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (os_mempool_ext) , "::" , stringify ! (mpe_put_arg))) ; } # [doc = " Information describing a memory pool, used to return OS information"] # [doc = " to the management layer."] # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct os_mempool_info { # [doc = " Size of the memory blocks in the pool"] pub omi_block_size : cty :: c_int , # [doc = " Number of memory blocks in the pool"] pub omi_num_blocks : cty :: c_int , # [doc = " Number of free memory blocks"] pub omi_num_free : cty :: c_int , # [doc = " Minimum number of free memory blocks ever"] pub omi_min_free : cty :: c_int , # [doc = " Name of the memory pool"] pub omi_name : [cty :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_os_mempool_info () { assert_eq ! (:: core :: mem :: size_of :: < os_mempool_info > () , 48usize , concat ! ("Size of: " , stringify ! (os_mempool_info))) ; assert_eq ! (:: core :: mem :: align_of :: < os_mempool_info > () , 4usize , concat ! ("Alignment of " , stringify ! (os_mempool_info))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_block_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_block_size))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_blocks as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_blocks))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_num_free as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_num_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_min_free as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_min_free))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < os_mempool_info > ())) . omi_name as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (os_mempool_info) , "::" , stringify ! (omi_name))) ; } extern "C" { # [doc = " Get information about the next system memory pool."] # [doc = ""] # [doc = " @param mempool The current memory pool, or NULL if starting iteration."] # [doc = " @param info A pointer to the structure to return memory pool information"] # [doc = " into."] # [doc = ""] # [doc = " @return The next memory pool in the list to get information about, or NULL"] # [doc = " when at the last memory pool."] pub fn os_mempool_info_get_next (arg1 : * mut os_mempool , arg2 : * mut os_mempool_info) -> * mut os_mempool ; } pub type os_membuf_t = u32 ; extern "C" { # [doc = " Initialize a memory pool."] # [doc = ""] # [doc = " @param mp Pointer to a pointer to a mempool"] # [doc = " @param blocks The number of blocks in the pool"] # [doc = " @param blocks_size The size of the block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_init (mp : * mut os_mempool , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Initializes an extended memory pool. Extended attributes (e.g., callbacks)"] # [doc = " are not specified when this function is called; they are assigned manually"] # [doc = " after initialization."] # [doc = ""] # [doc = " @param mpe The extended memory pool to initialize."] # [doc = " @param blocks The number of blocks in the pool."] # [doc = " @param block_size The size of each block, in bytes."] # [doc = " @param membuf Pointer to memory to contain blocks."] # [doc = " @param name Name of the pool."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_ext_init (mpe : * mut os_mempool_ext , blocks : u16 , block_size : u32 , membuf : * mut cty :: c_void , name : * mut cty :: c_char) -> os_error_t ; } extern "C" { # [doc = " Clears a memory pool."] # [doc = ""] # [doc = " @param mp The mempool to clear."] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_mempool_clear (mp : * mut os_mempool) -> os_error_t ; } extern "C" { # [doc = " Performs an integrity check of the specified mempool. This function"] # [doc = " attempts to detect memory corruption in the specified memory pool."] # [doc = ""] # [doc = " @param mp The mempool to check."] # [doc = ""] # [doc = " @return true if the memory pool passes the integrity"] # [doc = " check;"] # [doc = " false if the memory pool is corrupt."] pub fn os_mempool_is_sane (mp : * const os_mempool) -> bool ; } extern "C" { # [doc = " Checks if a memory block was allocated from the specified mempool."] # [doc = ""] # [doc = " @param mp The mempool to check as parent."] # [doc = " @param block_addr The memory block to check as child."] # [doc = ""] # [doc = " @return 0 if the block does not belong to the mempool;"] # [doc = " 1 if the block does belong to the mempool."] pub fn os_memblock_from (mp : * const os_mempool , block_addr : * const cty :: c_void) -> cty :: c_int ; } extern "C" { # [doc = " Get a memory block from a memory pool"] # [doc = ""] # [doc = " @param mp Pointer to the memory pool"] # [doc = ""] # [doc = " @return void* Pointer to block if available; NULL otherwise"] pub fn os_memblock_get (mp : * mut os_mempool) -> * mut cty :: c_void ; } extern "C" { # [doc = " Puts the memory block back into the pool, ignoring the put callback, if any."] # [doc = " This function should only be called from a put callback to free a block"] # [doc = " without causing infinite recursion."] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put_from_cb (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } extern "C" { # [doc = " Puts the memory block back into the pool"] # [doc = ""] # [doc = " @param mp Pointer to memory pool"] # [doc = " @param block_addr Pointer to memory block"] # [doc = ""] # [doc = " @return os_error_t"] pub fn os_memblock_put (mp : * mut os_mempool , block_addr : * mut cty :: c_void) -> os_error_t ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_encryption_block { pub key : [u8 ; 16usize] , pub plain_text : [u8 ; 16usize] , pub cipher_text : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_encryption_block () { assert_eq ! (:: core :: mem :: size_of :: < ble_encryption_block > () , 48usize , concat ! ("Size of: " , stringify ! (ble_encryption_block))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_encryption_block > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_encryption_block))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . plain_text as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (plain_text))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_encryption_block > ())) . cipher_text as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ble_encryption_block) , "::" , stringify ! (cipher_text))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_rxinfo { pub flags : u16 , pub channel : u8 , pub handle : u8 , pub rssi : i8 , pub phy : i8 , pub phy_mode : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_rxinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_rxinfo > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_rxinfo > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . channel as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (channel))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . handle as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . rssi as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (rssi))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_rxinfo > ())) . phy_mode as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_rxinfo) , "::" , stringify ! (phy_mode))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_mbuf_hdr_txinfo { pub flags : u8 , pub offset : u8 , pub pyld_len : u8 , pub hdr_byte : u8 , } # [test] fn bindgen_test_layout_ble_mbuf_hdr_txinfo () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr_txinfo > () , 4usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr_txinfo > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr_txinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . flags as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . offset as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (offset))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . pyld_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (pyld_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr_txinfo > ())) . hdr_byte as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr_txinfo) , "::" , stringify ! (hdr_byte))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ble_mbuf_hdr { pub __bindgen_anon_1 : ble_mbuf_hdr__bindgen_ty_1 , pub beg_cputime : u32 , pub rem_usecs : u32 , } # [repr (C)] # [derive (Copy , Clone)] pub union ble_mbuf_hdr__bindgen_ty_1 { pub rxinfo : ble_mbuf_hdr_rxinfo , pub txinfo : ble_mbuf_hdr_txinfo , _bindgen_union_align : [u16 ; 4usize] , } # [test] fn bindgen_test_layout_ble_mbuf_hdr__bindgen_ty_1 () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr__bindgen_ty_1 > () , 2usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . rxinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (rxinfo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr__bindgen_ty_1 > ())) . txinfo as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr__bindgen_ty_1) , "::" , stringify ! (txinfo))) ; } # [test] fn bindgen_test_layout_ble_mbuf_hdr () { assert_eq ! (:: core :: mem :: size_of :: < ble_mbuf_hdr > () , 16usize , concat ! ("Size of: " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_mbuf_hdr > () , 4usize , concat ! ("Alignment of " , stringify ! (ble_mbuf_hdr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . beg_cputime as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (beg_cputime))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_mbuf_hdr > ())) . rem_usecs as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_mbuf_hdr) , "::" , stringify ! (rem_usecs))) ; } extern "C" { pub static mut g_dev_addr : [u8 ; 6usize] ; } extern "C" { pub static mut g_random_addr : [u8 ; 6usize] ; } pub const ble_error_codes_BLE_ERR_SUCCESS : ble_error_codes = 0 ; pub const ble_error_codes_BLE_ERR_UNKNOWN_HCI_CMD : ble_error_codes = 1 ; pub const ble_error_codes_BLE_ERR_UNK_CONN_ID : ble_error_codes = 2 ; pub const ble_error_codes_BLE_ERR_HW_FAIL : ble_error_codes = 3 ; pub const ble_error_codes_BLE_ERR_PAGE_TMO : ble_error_codes = 4 ; pub const ble_error_codes_BLE_ERR_AUTH_FAIL : ble_error_codes = 5 ; pub const ble_error_codes_BLE_ERR_PINKEY_MISSING : ble_error_codes = 6 ; pub const ble_error_codes_BLE_ERR_MEM_CAPACITY : ble_error_codes = 7 ; pub const ble_error_codes_BLE_ERR_CONN_SPVN_TMO : ble_error_codes = 8 ; pub const ble_error_codes_BLE_ERR_CONN_LIMIT : ble_error_codes = 9 ; pub const ble_error_codes_BLE_ERR_SYNCH_CONN_LIMIT : ble_error_codes = 10 ; pub const ble_error_codes_BLE_ERR_ACL_CONN_EXISTS : ble_error_codes = 11 ; pub const ble_error_codes_BLE_ERR_CMD_DISALLOWED : ble_error_codes = 12 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_RESOURCES : ble_error_codes = 13 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_SECURITY : ble_error_codes = 14 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_BD_ADDR : ble_error_codes = 15 ; pub const ble_error_codes_BLE_ERR_CONN_ACCEPT_TMO : ble_error_codes = 16 ; pub const ble_error_codes_BLE_ERR_UNSUPPORTED : ble_error_codes = 17 ; pub const ble_error_codes_BLE_ERR_INV_HCI_CMD_PARMS : ble_error_codes = 18 ; pub const ble_error_codes_BLE_ERR_REM_USER_CONN_TERM : ble_error_codes = 19 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_RESRCS : ble_error_codes = 20 ; pub const ble_error_codes_BLE_ERR_RD_CONN_TERM_PWROFF : ble_error_codes = 21 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_LOCAL : ble_error_codes = 22 ; pub const ble_error_codes_BLE_ERR_REPEATED_ATTEMPTS : ble_error_codes = 23 ; pub const ble_error_codes_BLE_ERR_NO_PAIRING : ble_error_codes = 24 ; pub const ble_error_codes_BLE_ERR_UNK_LMP : ble_error_codes = 25 ; pub const ble_error_codes_BLE_ERR_UNSUPP_REM_FEATURE : ble_error_codes = 26 ; pub const ble_error_codes_BLE_ERR_SCO_OFFSET : ble_error_codes = 27 ; pub const ble_error_codes_BLE_ERR_SCO_ITVL : ble_error_codes = 28 ; pub const ble_error_codes_BLE_ERR_SCO_AIR_MODE : ble_error_codes = 29 ; pub const ble_error_codes_BLE_ERR_INV_LMP_LL_PARM : ble_error_codes = 30 ; pub const ble_error_codes_BLE_ERR_UNSPECIFIED : ble_error_codes = 31 ; pub const ble_error_codes_BLE_ERR_UNSUPP_LMP_LL_PARM : ble_error_codes = 32 ; pub const ble_error_codes_BLE_ERR_NO_ROLE_CHANGE : ble_error_codes = 33 ; pub const ble_error_codes_BLE_ERR_LMP_LL_RSP_TMO : ble_error_codes = 34 ; pub const ble_error_codes_BLE_ERR_LMP_COLLISION : ble_error_codes = 35 ; pub const ble_error_codes_BLE_ERR_LMP_PDU : ble_error_codes = 36 ; pub const ble_error_codes_BLE_ERR_ENCRYPTION_MODE : ble_error_codes = 37 ; pub const ble_error_codes_BLE_ERR_LINK_KEY_CHANGE : ble_error_codes = 38 ; pub const ble_error_codes_BLE_ERR_UNSUPP_QOS : ble_error_codes = 39 ; pub const ble_error_codes_BLE_ERR_INSTANT_PASSED : ble_error_codes = 40 ; pub const ble_error_codes_BLE_ERR_UNIT_KEY_PAIRING : ble_error_codes = 41 ; pub const ble_error_codes_BLE_ERR_DIFF_TRANS_COLL : ble_error_codes = 42 ; pub const ble_error_codes_BLE_ERR_QOS_PARM : ble_error_codes = 44 ; pub const ble_error_codes_BLE_ERR_QOS_REJECTED : ble_error_codes = 45 ; pub const ble_error_codes_BLE_ERR_CHAN_CLASS : ble_error_codes = 46 ; pub const ble_error_codes_BLE_ERR_INSUFFICIENT_SEC : ble_error_codes = 47 ; pub const ble_error_codes_BLE_ERR_PARM_OUT_OF_RANGE : ble_error_codes = 48 ; pub const ble_error_codes_BLE_ERR_PENDING_ROLE_SW : ble_error_codes = 50 ; pub const ble_error_codes_BLE_ERR_RESERVED_SLOT : ble_error_codes = 52 ; pub const ble_error_codes_BLE_ERR_ROLE_SW_FAIL : ble_error_codes = 53 ; pub const ble_error_codes_BLE_ERR_INQ_RSP_TOO_BIG : ble_error_codes = 54 ; pub const ble_error_codes_BLE_ERR_SEC_SIMPLE_PAIR : ble_error_codes = 55 ; pub const ble_error_codes_BLE_ERR_HOST_BUSY_PAIR : ble_error_codes = 56 ; pub const ble_error_codes_BLE_ERR_CONN_REJ_CHANNEL : ble_error_codes = 57 ; pub const ble_error_codes_BLE_ERR_CTLR_BUSY : ble_error_codes = 58 ; pub const ble_error_codes_BLE_ERR_CONN_PARMS : ble_error_codes = 59 ; pub const ble_error_codes_BLE_ERR_DIR_ADV_TMO : ble_error_codes = 60 ; pub const ble_error_codes_BLE_ERR_CONN_TERM_MIC : ble_error_codes = 61 ; pub const ble_error_codes_BLE_ERR_CONN_ESTABLISHMENT : ble_error_codes = 62 ; pub const ble_error_codes_BLE_ERR_MAC_CONN_FAIL : ble_error_codes = 63 ; pub const ble_error_codes_BLE_ERR_COARSE_CLK_ADJ : ble_error_codes = 64 ; pub const ble_error_codes_BLE_ERR_TYPE0_SUBMAP_NDEF : ble_error_codes = 65 ; pub const ble_error_codes_BLE_ERR_UNK_ADV_INDENT : ble_error_codes = 66 ; pub const ble_error_codes_BLE_ERR_LIMIT_REACHED : ble_error_codes = 67 ; pub const ble_error_codes_BLE_ERR_OPERATION_CANCELLED : ble_error_codes = 68 ; pub const ble_error_codes_BLE_ERR_PACKET_TOO_LONG : ble_error_codes = 69 ; pub const ble_error_codes_BLE_ERR_MAX : ble_error_codes = 255 ; pub type ble_error_codes = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ble_addr_t { pub type_ : u8 , pub val : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < ble_addr_t > () , 7usize , concat ! ("Size of: " , stringify ! (ble_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_addr_t > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_addr_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cmd { pub opcode : u16 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_cmd () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cmd > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cmd))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cmd > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cmd))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . length as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cmd > ())) . data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cmd) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev { pub opcode : u8 , pub length : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_ev))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . opcode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . length as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev > ())) . data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_lc_disconnect_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_lc_disconnect_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_lc_disconnect_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_lc_disconnect_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_lc_disconnect_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_lc_disconnect_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_lc_disconnect_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rem_ver_info_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rem_ver_info_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rem_ver_info_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rem_ver_info_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rem_ver_info_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rem_ver_info_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rem_ver_info_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_cp { pub conn_handle : u16 , pub type_ : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_cp > ())) . type_ as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_cp) , "::" , stringify ! (type_))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_read_tx_pwr_rp { pub conn_handle : u16 , pub tx_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_cb_read_tx_pwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_read_tx_pwr_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_read_tx_pwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_read_tx_pwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_read_tx_pwr_rp > ())) . tx_level as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_read_tx_pwr_rp) , "::" , stringify ! (tx_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_ctlr_to_host_fc_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_cb_ctlr_to_host_fc_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_ctlr_to_host_fc_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_ctlr_to_host_fc_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_ctlr_to_host_fc_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_buf_size_cp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_buf_size_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_buf_size_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_buf_size_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_buf_size_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_buf_size_cp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_buf_size_cp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_host_num_comp_pkts_entry { pub handle : u16 , pub count : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_entry () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_entry > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_entry > ())) . count as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_entry) , "::" , stringify ! (count))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_cb_host_num_comp_pkts_cp { pub handles : u8 , pub h : __IncompleteArrayField < ble_hci_cb_host_num_comp_pkts_entry > , } # [test] fn bindgen_test_layout_ble_hci_cb_host_num_comp_pkts_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_host_num_comp_pkts_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . handles as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (handles))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_host_num_comp_pkts_cp > ())) . h as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_host_num_comp_pkts_cp) , "::" , stringify ! (h))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_set_event_mask2_cp { pub event_mask2 : u64 , } # [test] fn bindgen_test_layout_ble_hci_cb_set_event_mask2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_set_event_mask2_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_set_event_mask2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_set_event_mask2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_set_event_mask2_cp > ())) . event_mask2 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_set_event_mask2_cp) , "::" , stringify ! (event_mask2))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_rd_auth_pyld_tmo_rp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_rd_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_rd_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_rd_auth_pyld_tmo_rp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_rd_auth_pyld_tmo_rp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_cp { pub conn_handle : u16 , pub tmo : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_cp > ())) . tmo as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_cp) , "::" , stringify ! (tmo))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_cb_wr_auth_pyld_tmo_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_cb_wr_auth_pyld_tmo_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_cb_wr_auth_pyld_tmo_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_cb_wr_auth_pyld_tmo_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_cb_wr_auth_pyld_tmo_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_local_ver_rp { pub hci_ver : u8 , pub hci_rev : u16 , pub lmp_ver : u8 , pub manufacturer : u16 , pub lmp_subver : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_local_ver_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_local_ver_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_local_ver_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_local_ver_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_ver as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . hci_rev as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (hci_rev))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_ver as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_ver))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_local_ver_rp > ())) . lmp_subver as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_local_ver_rp) , "::" , stringify ! (lmp_subver))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_cmd_rp { pub commands : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_cmd_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_cmd_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_cmd_rp > ())) . commands as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_cmd_rp) , "::" , stringify ! (commands))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_buf_size_rp { pub acl_data_len : u16 , pub sco_data_len : u8 , pub acl_num : u16 , pub sco_num : u16 , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_buf_size_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . acl_num as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (acl_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_buf_size_rp > ())) . sco_num as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_buf_size_rp) , "::" , stringify ! (sco_num))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ip_rd_bd_addr_rp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_ip_rd_bd_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ip_rd_bd_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ip_rd_bd_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ip_rd_bd_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ip_rd_bd_addr_rp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ip_rd_bd_addr_rp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_cp { pub handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_cp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_cp) , "::" , stringify ! (handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_rd_rssi_rp { pub handle : u16 , pub rssi : i8 , } # [test] fn bindgen_test_layout_ble_hci_rd_rssi_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_rd_rssi_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_rd_rssi_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_rd_rssi_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_rd_rssi_rp > ())) . rssi as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_rd_rssi_rp) , "::" , stringify ! (rssi))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_event_mask_cp { pub event_mask : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_set_event_mask_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_event_mask_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_event_mask_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_event_mask_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_event_mask_cp > ())) . event_mask as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_event_mask_cp) , "::" , stringify ! (event_mask))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_rp { pub data_len : u16 , pub data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_rp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_rp) , "::" , stringify ! (data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_buf_size_v2_rp { pub data_len : u16 , pub data_packets : u8 , pub iso_data_len : u16 , pub iso_data_packets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_buf_size_v2_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_buf_size_v2_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_buf_size_v2_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . data_packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (data_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_buf_size_v2_rp > ())) . iso_data_packets as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_buf_size_v2_rp) , "::" , stringify ! (iso_data_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_loc_supp_feat_rp { pub features : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_loc_supp_feat_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_loc_supp_feat_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_loc_supp_feat_rp > ())) . features as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_loc_supp_feat_rp) , "::" , stringify ! (features))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rand_addr_cp { pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_rand_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rand_addr_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rand_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rand_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rand_addr_cp > ())) . addr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rand_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_params_cp { pub min_interval : u16 , pub max_interval : u16 , pub type_ : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub chan_map : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_params_cp > () , 15usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . min_interval as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (min_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . max_interval as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (max_interval))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . type_ as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . peer_addr as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . chan_map as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_params_cp > ())) . filter_policy as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_adv_chan_txpwr_rp { pub power_level : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_adv_chan_txpwr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_adv_chan_txpwr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_adv_chan_txpwr_rp > ())) . power_level as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_adv_chan_txpwr_rp) , "::" , stringify ! (power_level))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_data_cp { pub adv_data_len : u8 , pub adv_data : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_data_cp > ())) . adv_data as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_rsp_data_cp { pub scan_rsp_len : u8 , pub scan_rsp : [u8 ; 31usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_enable_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_params_cp { pub scan_type : u8 , pub scan_itvl : u16 , pub scan_window : u16 , pub own_addr_type : u8 , pub filter_policy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . scan_window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_params_cp > ())) . filter_policy as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_params_cp) , "::" , stringify ! (filter_policy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_scan_enable_cp { pub enable : u8 , pub filter_duplicates : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_scan_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_scan_enable_cp > ())) . filter_duplicates as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_scan_enable_cp) , "::" , stringify ! (filter_duplicates))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_create_conn_cp { pub scan_itvl : u16 , pub scan_window : u16 , pub filter_policy : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub own_addr_type : u8 , pub min_conn_itvl : u16 , pub max_conn_itvl : u16 , pub conn_latency : u16 , pub tmo : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_create_conn_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . filter_policy as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . peer_addr as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_conn_itvl as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_conn_itvl as * const _ as usize } , 15usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_conn_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . conn_latency as * const _ as usize } , 17usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . tmo as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (tmo))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . min_ce as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_create_conn_cp > ())) . max_ce as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_create_conn_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_white_list_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_white_list_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_white_list_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_white_list_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_white_list_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_white_list_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_whte_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_whte_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_whte_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_whte_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_whte_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_whte_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_whte_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_white_list_cp { pub addr_type : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_white_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_white_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_white_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_white_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_white_list_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_white_list_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_conn_update_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce_len : u16 , pub max_ce_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_conn_update_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_conn_update_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_conn_update_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_conn_update_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . min_ce_len as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (min_ce_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_conn_update_cp > ())) . max_ce_len as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_conn_update_cp) , "::" , stringify ! (max_ce_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_chan_class_cp { pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_chan_class_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_chan_class_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_chan_class_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_chan_class_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_chan_class_cp > ())) . chan_map as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_chan_class_cp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_chan_map_rp { pub conn_handle : u16 , pub chan_map : [u8 ; 5usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_chan_map_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_chan_map_rp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_chan_map_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_chan_map_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_chan_map_rp > ())) . chan_map as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_chan_map_rp) , "::" , stringify ! (chan_map))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rem_feat_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rem_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rem_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rem_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rem_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rem_feat_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rem_feat_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_cp { pub key : [u8 ; 16usize] , pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_cp > () , 32usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_cp > ())) . data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_cp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_encrypt_rp { pub data : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_encrypt_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_encrypt_rp > () , 16usize , concat ! ("Size of: " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_encrypt_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_encrypt_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_encrypt_rp > ())) . data as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_encrypt_rp) , "::" , stringify ! (data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rand_rp { pub random_number : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rand_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rand_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rand_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rand_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rand_rp > ())) . random_number as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rand_rp) , "::" , stringify ! (random_number))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_start_encrypt_cp { pub conn_handle : u16 , pub rand : u64 , pub div : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_start_encrypt_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_start_encrypt_cp > () , 28usize , concat ! ("Size of: " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_start_encrypt_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_start_encrypt_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . rand as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (rand))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . div as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (div))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_start_encrypt_cp > ())) . ltk as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_start_encrypt_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_cp { pub conn_handle : u16 , pub ltk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_cp > () , 18usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_cp > ())) . ltk as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_cp) , "::" , stringify ! (ltk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_lt_key_req_neg_reply_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_lt_key_req_neg_reply_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_lt_key_req_neg_reply_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_lt_key_req_neg_reply_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_lt_key_req_neg_reply_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_supp_states_rp { pub states : u64 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_supp_states_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_supp_states_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_supp_states_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_supp_states_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_supp_states_rp > ())) . states as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_supp_states_rp) , "::" , stringify ! (states))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_cp { pub rx_chan : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_cp) , "::" , stringify ! (rx_chan))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_cp) , "::" , stringify ! (payload))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_test_end_rp { pub num_packets : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_test_end_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_test_end_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_test_end_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_test_end_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_test_end_rp > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_test_end_rp) , "::" , stringify ! (num_packets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_cp { pub conn_handle : u16 , pub conn_itvl_min : u16 , pub conn_itvl_max : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_min as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_itvl_max as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . conn_latency as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . supervision_timeout as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . min_ce as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_cp > ())) . max_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_cp) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_param_rr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_param_rr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_param_rr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_param_rr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_param_rr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_param_rr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_cp { pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_cp > ())) . reason as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_cp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_conn_params_nrr_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_conn_params_nrr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_conn_params_nrr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_conn_params_nrr_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_conn_params_nrr_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_cp { pub conn_handle : u16 , pub tx_octets : u16 , pub tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_octets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_cp > ())) . tx_time as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_cp) , "::" , stringify ! (tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_data_len_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_data_len_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_data_len_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_sugg_def_data_len_rp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_sugg_def_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_sugg_def_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_sugg_def_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_sugg_def_data_len_rp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_sugg_def_data_len_cp { pub max_tx_octets : u16 , pub max_tx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_sugg_def_data_len_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_sugg_def_data_len_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_octets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_octets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_sugg_def_data_len_cp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_sugg_def_data_len_cp) , "::" , stringify ! (max_tx_time))) ; } # [repr (C , packed)] # [derive (Copy , Clone)] pub struct ble_hci_le_gen_dhkey_cp { pub pkey : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ble_hci_le_gen_dhkey_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_gen_dhkey_cp > () , 64usize , concat ! ("Size of: " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_gen_dhkey_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_gen_dhkey_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_gen_dhkey_cp > ())) . pkey as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_gen_dhkey_cp) , "::" , stringify ! (pkey))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_resolv_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub peer_irk : [u8 ; 16usize] , pub local_irk : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_ble_hci_le_add_resolv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_resolv_list_cp > () , 39usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_resolv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_resolv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . peer_irk as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (peer_irk))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_resolv_list_cp > ())) . local_irk as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_resolv_list_cp) , "::" , stringify ! (local_irk))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rmv_resolve_list_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rmv_resolve_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rmv_resolve_list_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rmv_resolve_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rmv_resolve_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rmv_resolve_list_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rmv_resolve_list_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_resolv_list_size_rp { pub size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_resolv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_resolv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_resolv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_resolv_list_size_rp > ())) . size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_resolv_list_size_rp) , "::" , stringify ! (size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_peer_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_peer_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_peer_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_peer_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_peer_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_cp { pub peer_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_cp) , "::" , stringify ! (peer_id_addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_local_recolv_addr_rp { pub rpa : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_rd_local_recolv_addr_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_local_recolv_addr_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_local_recolv_addr_rp > ())) . rpa as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_local_recolv_addr_rp) , "::" , stringify ! (rpa))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_addr_res_en_cp { pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_addr_res_en_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_addr_res_en_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_addr_res_en_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_addr_res_en_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_addr_res_en_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_rpa_tmo_cp { pub rpa_timeout : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_rpa_tmo_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_rpa_tmo_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_rpa_tmo_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_rpa_tmo_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_rpa_tmo_cp > ())) . rpa_timeout as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_rpa_tmo_cp) , "::" , stringify ! (rpa_timeout))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_data_len_rp { pub max_tx_octests : u16 , pub max_tx_time : u16 , pub max_rx_octests : u16 , pub max_rx_time : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_data_len_rp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_octests as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_tx_time as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_tx_time))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_octests as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_octests))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_data_len_rp > ())) . max_rx_time as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_data_len_rp) , "::" , stringify ! (max_rx_time))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_phy_rp { pub conn_handle : u16 , pub tx_phy : u8 , pub rx_phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_phy_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_phy_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_phy_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_phy_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . tx_phy as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (tx_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_phy_rp > ())) . rx_phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_phy_rp) , "::" , stringify ! (rx_phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_phy_cp { pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_phy_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . all_phys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . tx_phys as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_phy_cp > ())) . rx_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_phy_cp) , "::" , stringify ! (rx_phys))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_phy_cp { pub conn_handle : u16 , pub all_phys : u8 , pub tx_phys : u8 , pub rx_phys : u8 , pub phy_options : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_phy_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_phy_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_phy_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_phy_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . all_phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (all_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . tx_phys as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (tx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . rx_phys as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (rx_phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_phy_cp > ())) . phy_options as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_phy_cp) , "::" , stringify ! (phy_options))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rx_test_v2_cp { pub rx_chan : u8 , pub phy : u8 , pub index : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rx_test_v2_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . rx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (rx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . phy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rx_test_v2_cp > ())) . index as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rx_test_v2_cp) , "::" , stringify ! (index))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_tx_test_v2_cp { pub tx_chan : u8 , pub test_data_len : u8 , pub payload : u8 , pub phy : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_tx_test_v2_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_tx_test_v2_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_tx_test_v2_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_tx_test_v2_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . tx_chan as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (tx_chan))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . test_data_len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (test_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . payload as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (payload))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_tx_test_v2_cp > ())) . phy as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_tx_test_v2_cp) , "::" , stringify ! (phy))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_adv_set_rnd_addr_cp { pub adv_handle : u8 , pub addr : [u8 ; 6usize] , } # [test] fn bindgen_test_layout_ble_hci_le_set_adv_set_rnd_addr_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_adv_set_rnd_addr_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_adv_set_rnd_addr_cp > ())) . addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_adv_set_rnd_addr_cp) , "::" , stringify ! (addr))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_cp { pub adv_handle : u8 , pub props : u16 , pub pri_itvl_min : [u8 ; 3usize] , pub pri_itvl_max : [u8 ; 3usize] , pub pri_chan_map : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub filter_policy : u8 , pub tx_power : i8 , pub pri_phy : u8 , pub sec_max_skip : u8 , pub sec_phy : u8 , pub sid : u8 , pub scan_req_notif : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_cp > () , 25usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . props as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (props))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_min as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_min))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_itvl_max as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_itvl_max))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_chan_map as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_chan_map))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . own_addr_type as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr_type as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . peer_addr as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . filter_policy as * const _ as usize } , 18usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . tx_power as * const _ as usize } , 19usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . pri_phy as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (pri_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_max_skip as * const _ as usize } , 21usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_max_skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sec_phy as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sec_phy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . sid as * const _ as usize } , 23usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_cp > ())) . scan_req_notif as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_cp) , "::" , stringify ! (scan_req_notif))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_adv_params_rp { pub tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_params_rp > ())) . tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_params_rp) , "::" , stringify ! (tx_power))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_data_cp > ())) . adv_data as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_rsp_data_cp { pub adv_handle : u8 , pub operation : u8 , pub fragment_pref : u8 , pub scan_rsp_len : u8 , pub scan_rsp : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_rsp_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_rsp_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . fragment_pref as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (fragment_pref))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp_len as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_rsp_data_cp > ())) . scan_rsp as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_rsp_data_cp) , "::" , stringify ! (scan_rsp))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct adv_set { pub adv_handle : u8 , pub duration : u16 , pub max_events : u8 , } # [test] fn bindgen_test_layout_adv_set () { assert_eq ! (:: core :: mem :: size_of :: < adv_set > () , 4usize , concat ! ("Size of: " , stringify ! (adv_set))) ; assert_eq ! (:: core :: mem :: align_of :: < adv_set > () , 1usize , concat ! ("Alignment of " , stringify ! (adv_set))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . duration as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < adv_set > ())) . max_events as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (adv_set) , "::" , stringify ! (max_events))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_adv_enable_cp { pub enable : u8 , pub num_sets : u8 , pub sets : __IncompleteArrayField < adv_set > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . num_sets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (num_sets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_adv_enable_cp > ())) . sets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_adv_enable_cp) , "::" , stringify ! (sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_max_adv_data_len_rp { pub max_adv_data_len : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_max_adv_data_len_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_max_adv_data_len_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_max_adv_data_len_rp > ())) . max_adv_data_len as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_max_adv_data_len_rp) , "::" , stringify ! (max_adv_data_len))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_num_of_adv_sets_rp { pub num_sets : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_num_of_adv_sets_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_num_of_adv_sets_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_num_of_adv_sets_rp > ())) . num_sets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_num_of_adv_sets_rp) , "::" , stringify ! (num_sets))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_remove_adv_set_cp { pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_remove_adv_set_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_remove_adv_set_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_remove_adv_set_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_remove_adv_set_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_remove_adv_set_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_params_cp { pub adv_handle : u8 , pub min_itvl : u16 , pub max_itvl : u16 , pub props : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 7usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . min_itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . max_itvl as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_params_cp > ())) . props as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_params_cp) , "::" , stringify ! (props))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_periodic_adv_data_cp { pub adv_handle : u8 , pub operation : u8 , pub adv_data_len : u8 , pub adv_data : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_data_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_data_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_data_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . operation as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (operation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data_len as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data_len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_data_cp > ())) . adv_data as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_data_cp) , "::" , stringify ! (adv_data))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_periodic_adv_enable_cp { pub enable : u8 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_periodic_adv_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_periodic_adv_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_periodic_adv_enable_cp > ())) . adv_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_periodic_adv_enable_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct scan_params { pub type_ : u8 , pub itvl : u16 , pub window : u16 , } # [test] fn bindgen_test_layout_scan_params () { assert_eq ! (:: core :: mem :: size_of :: < scan_params > () , 5usize , concat ! ("Size of: " , stringify ! (scan_params))) ; assert_eq ! (:: core :: mem :: align_of :: < scan_params > () , 1usize , concat ! ("Alignment of " , stringify ! (scan_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . type_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . itvl as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < scan_params > ())) . window as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (scan_params) , "::" , stringify ! (window))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_set_ext_scan_params_cp { pub own_addr_type : u8 , pub filter_policy : u8 , pub phys : u8 , pub scans : __IncompleteArrayField < scan_params > , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_params_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . own_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . filter_policy as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . phys as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (phys))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_params_cp > ())) . scans as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_params_cp) , "::" , stringify ! (scans))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_ext_scan_enable_cp { pub enable : u8 , pub filter_dup : u8 , pub duration : u16 , pub period : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_set_ext_scan_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_ext_scan_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_ext_scan_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . enable as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . filter_dup as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (filter_dup))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . duration as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (duration))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_ext_scan_enable_cp > ())) . period as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_ext_scan_enable_cp) , "::" , stringify ! (period))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct conn_params { pub scan_itvl : u16 , pub scan_window : u16 , pub conn_min_itvl : u16 , pub conn_max_itvl : u16 , pub conn_latency : u16 , pub supervision_timeout : u16 , pub min_ce : u16 , pub max_ce : u16 , } # [test] fn bindgen_test_layout_conn_params () { assert_eq ! (:: core :: mem :: size_of :: < conn_params > () , 16usize , concat ! ("Size of: " , stringify ! (conn_params))) ; assert_eq ! (:: core :: mem :: align_of :: < conn_params > () , 1usize , concat ! ("Alignment of " , stringify ! (conn_params))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_itvl as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . scan_window as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (scan_window))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_min_itvl as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_min_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_max_itvl as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_max_itvl))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . conn_latency as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (conn_latency))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . supervision_timeout as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (supervision_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . min_ce as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (min_ce))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < conn_params > ())) . max_ce as * const _ as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (conn_params) , "::" , stringify ! (max_ce))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_le_ext_create_conn_cp { pub filter_policy : u8 , pub own_addr_type : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub init_phy_mask : u8 , pub conn_params : __IncompleteArrayField < conn_params > , } # [test] fn bindgen_test_layout_ble_hci_le_ext_create_conn_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_ext_create_conn_cp > () , 10usize , concat ! ("Size of: " , stringify ! (ble_hci_le_ext_create_conn_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_ext_create_conn_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_ext_create_conn_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . filter_policy as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (filter_policy))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . own_addr_type as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (own_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . peer_addr_type as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . peer_addr as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . init_phy_mask as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (init_phy_mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_ext_create_conn_cp > ())) . conn_params as * const _ as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_ext_create_conn_cp) , "::" , stringify ! (conn_params))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_create_sync_cp { pub options : u8 , pub sid : u8 , pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_create_sync_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_create_sync_cp > () , 14usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_create_sync_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . options as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (options))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sid as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sid))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . peer_addr_type as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . peer_addr as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . skip as * const _ as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sync_timeout as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_create_sync_cp > ())) . sync_cte_type as * const _ as usize } , 13usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_create_sync_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_term_sync_cp { pub sync_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_term_sync_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_term_sync_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_term_sync_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_term_sync_cp > ())) . sync_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_term_sync_cp) , "::" , stringify ! (sync_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_add_dev_to_periodic_adv_list_cp { pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub sid : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_add_dev_to_periodic_adv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . peer_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_add_dev_to_periodic_adv_list_cp > ())) . sid as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_add_dev_to_periodic_adv_list_cp) , "::" , stringify ! (sid))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rem_dev_from_periodic_adv_list_cp { pub peer_addr_type : u8 , pub peer_addr : [u8 ; 6usize] , pub sid : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rem_dev_from_periodic_adv_list_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . peer_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (peer_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . peer_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (peer_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rem_dev_from_periodic_adv_list_cp > ())) . sid as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rem_dev_from_periodic_adv_list_cp) , "::" , stringify ! (sid))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_periodic_adv_list_size_rp { pub list_size : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_periodic_adv_list_size_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_periodic_adv_list_size_rp > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_periodic_adv_list_size_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_periodic_adv_list_size_rp > ())) . list_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_periodic_adv_list_size_rp) , "::" , stringify ! (list_size))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_transmit_power_rp { pub min_tx_power : i8 , pub max_tx_power : i8 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_transmit_power_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_transmit_power_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_transmit_power_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_transmit_power_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_transmit_power_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_transmit_power_rp > ())) . min_tx_power as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_transmit_power_rp) , "::" , stringify ! (min_tx_power))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_transmit_power_rp > ())) . max_tx_power as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_transmit_power_rp) , "::" , stringify ! (max_tx_power))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_rd_rf_path_compensation_rp { pub tx_path_compensation : i16 , pub rx_path_compensation : i16 , } # [test] fn bindgen_test_layout_ble_hci_le_rd_rf_path_compensation_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_rd_rf_path_compensation_rp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_rd_rf_path_compensation_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rf_path_compensation_rp > ())) . tx_path_compensation as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp) , "::" , stringify ! (tx_path_compensation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_rd_rf_path_compensation_rp > ())) . rx_path_compensation as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_rd_rf_path_compensation_rp) , "::" , stringify ! (rx_path_compensation))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_wr_rf_path_compensation_cp { pub tx_path_compensation : i16 , pub rx_path_compensation : i16 , } # [test] fn bindgen_test_layout_ble_hci_le_wr_rf_path_compensation_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_wr_rf_path_compensation_cp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_wr_rf_path_compensation_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_rf_path_compensation_cp > ())) . tx_path_compensation as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp) , "::" , stringify ! (tx_path_compensation))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_wr_rf_path_compensation_cp > ())) . rx_path_compensation as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_wr_rf_path_compensation_cp) , "::" , stringify ! (rx_path_compensation))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_privacy_mode_cp { pub peer_id_addr_type : u8 , pub peer_id_addr : [u8 ; 6usize] , pub mode : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_privacy_mode_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_privacy_mode_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_privacy_mode_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_privacy_mode_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_privacy_mode_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . peer_id_addr_type as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (peer_id_addr_type))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . peer_id_addr as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (peer_id_addr))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_privacy_mode_cp > ())) . mode as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_privacy_mode_cp) , "::" , stringify ! (mode))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_receive_enable_cp { pub sync_handle : u16 , pub enable : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_receive_enable_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_receive_enable_cp > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_receive_enable_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_receive_enable_cp > ())) . sync_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp) , "::" , stringify ! (sync_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_receive_enable_cp > ())) . enable as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_receive_enable_cp) , "::" , stringify ! (enable))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_cp { pub conn_handle : u16 , pub service_data : u16 , pub sync_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . service_data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (service_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_cp > ())) . sync_handle as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_cp) , "::" , stringify ! (sync_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_set_info_transfer_cp { pub conn_handle : u16 , pub service_data : u16 , pub adv_handle : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_set_info_transfer_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_set_info_transfer_cp > () , 5usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_set_info_transfer_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . service_data as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (service_data))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_cp > ())) . adv_handle as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_cp) , "::" , stringify ! (adv_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_set_info_transfer_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_set_info_transfer_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_set_info_transfer_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_set_info_transfer_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_set_info_transfer_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_set_info_transfer_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_params_cp { pub conn_handle : u16 , pub mode : u8 , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . mode as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (mode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . skip as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . sync_timeout as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_cp > ())) . sync_cte_type as * const _ as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_periodic_adv_sync_transfer_params_rp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_periodic_adv_sync_transfer_params_rp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_periodic_adv_sync_transfer_params_rp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_periodic_adv_sync_transfer_params_rp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_default_periodic_sync_transfer_params_cp { pub mode : u8 , pub skip : u16 , pub sync_timeout : u16 , pub sync_cte_type : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_default_periodic_sync_transfer_params_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > () , 6usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . mode as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (mode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . skip as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (skip))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . sync_timeout as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (sync_timeout))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_default_periodic_sync_transfer_params_cp > ())) . sync_cte_type as * const _ as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_default_periodic_sync_transfer_params_cp) , "::" , stringify ! (sync_cte_type))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_request_peer_sca_cp { pub conn_handle : u16 , } # [test] fn bindgen_test_layout_ble_hci_le_request_peer_sca_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_request_peer_sca_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_request_peer_sca_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_request_peer_sca_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_request_peer_sca_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_request_peer_sca_cp > ())) . conn_handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_request_peer_sca_cp) , "::" , stringify ! (conn_handle))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_le_set_host_feat_cp { pub bit_num : u8 , pub val : u8 , } # [test] fn bindgen_test_layout_ble_hci_le_set_host_feat_cp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_le_set_host_feat_cp > () , 2usize , concat ! ("Size of: " , stringify ! (ble_hci_le_set_host_feat_cp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_le_set_host_feat_cp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_le_set_host_feat_cp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_feat_cp > ())) . bit_num as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_feat_cp) , "::" , stringify ! (bit_num))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_le_set_host_feat_cp > ())) . val as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_le_set_host_feat_cp) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_disconn_cmp { pub status : u8 , pub conn_handle : u16 , pub reason : u8 , } # [test] fn bindgen_test_layout_ble_hci_ev_disconn_cmp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_disconn_cmp > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_disconn_cmp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_disconn_cmp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_disconn_cmp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . conn_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_disconn_cmp > ())) . reason as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_disconn_cmp) , "::" , stringify ! (reason))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_enrypt_chg { pub status : u8 , pub connection_handle : u16 , pub enabled : u8 , } # [test] fn bindgen_test_layout_ble_hci_ev_enrypt_chg () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_enrypt_chg > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_enrypt_chg))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_enrypt_chg > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_enrypt_chg))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . connection_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (connection_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_enrypt_chg > ())) . enabled as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_enrypt_chg) , "::" , stringify ! (enabled))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_rd_rem_ver_info_cmp { pub status : u8 , pub conn_handle : u16 , pub version : u8 , pub manufacturer : u16 , pub subversion : u16 , } # [test] fn bindgen_test_layout_ble_hci_ev_rd_rem_ver_info_cmp () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_rd_rem_ver_info_cmp > () , 8usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_rd_rem_ver_info_cmp > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . conn_handle as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (conn_handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . version as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (version))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . manufacturer as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (manufacturer))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_rd_rem_ver_info_cmp > ())) . subversion as * const _ as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_rd_rem_ver_info_cmp) , "::" , stringify ! (subversion))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev_command_complete { pub num_packets : u8 , pub opcode : u16 , pub status : u8 , pub return_params : __IncompleteArrayField < u8 > , } # [test] fn bindgen_test_layout_ble_hci_ev_command_complete () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_command_complete > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_command_complete))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_command_complete > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_command_complete))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete) , "::" , stringify ! (num_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete > ())) . opcode as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete) , "::" , stringify ! (opcode))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete > ())) . status as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete > ())) . return_params as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete) , "::" , stringify ! (return_params))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_command_complete_nop { pub num_packets : u8 , pub opcode : u16 , } # [test] fn bindgen_test_layout_ble_hci_ev_command_complete_nop () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_command_complete_nop > () , 3usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_command_complete_nop))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_command_complete_nop > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_command_complete_nop))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete_nop > ())) . num_packets as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete_nop) , "::" , stringify ! (num_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_complete_nop > ())) . opcode as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_complete_nop) , "::" , stringify ! (opcode))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_command_status { pub status : u8 , pub num_packets : u8 , pub opcode : u16 , } # [test] fn bindgen_test_layout_ble_hci_ev_command_status () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_command_status > () , 4usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_command_status))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_command_status > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_command_status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_status > ())) . status as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_status) , "::" , stringify ! (status))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_status > ())) . num_packets as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_status) , "::" , stringify ! (num_packets))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_command_status > ())) . opcode as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_command_status) , "::" , stringify ! (opcode))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct ble_hci_ev_hw_error { pub hw_code : u8 , } # [test] fn bindgen_test_layout_ble_hci_ev_hw_error () { assert_eq ! (:: core :: mem :: size_of :: < ble_hci_ev_hw_error > () , 1usize , concat ! ("Size of: " , stringify ! (ble_hci_ev_hw_error))) ; assert_eq ! (:: core :: mem :: align_of :: < ble_hci_ev_hw_error > () , 1usize , concat ! ("Alignment of " , stringify ! (ble_hci_ev_hw_error))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < ble_hci_ev_hw_error > ())) . hw_code as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ble_hci_ev_hw_error) , "::" , stringify ! (hw_code))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct comp_pkt { pub handle : u16 , pub packets : u16 , } # [test] fn bindgen_test_layout_comp_pkt () { assert_eq ! (:: core :: mem :: size_of :: < comp_pkt > () , 4usize , concat ! ("Size of: " , stringify ! (comp_pkt))) ; assert_eq ! (:: core :: mem :: align_of :: < comp_pkt > () , 1usize , concat ! ("Alignment of " , stringify ! (comp_pkt))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < comp_pkt > ())) . handle as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (comp_pkt) , "::" , stringify ! (handle))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < comp_pkt > ())) . packets as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (comp_pkt) , "::" , stringify ! (packets))) ; } # [repr (C , packed)] # [derive (Debug)] pub struct ble_hci_ev_num_comp_pkts { pub count : u8 , pub completed : __IncompleteArrayField < comp_pkt > , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type --------------------------------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.data` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:307662 [INFO] [stdout] | [INFO] [stdout] 3 | ...] # [derive (Debug)] pub struct ble_hci_ev_le_meta { pub subevent : u8 , pub data : __IncompleteArrayField < u8 > , } # [test] fn bind... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.data` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `__IncompleteArrayField` implemented `Clone`, you could clone the value [INFO] [stdout] --> /opt/rustwide/target/debug/build/apache-nimble-sys-8f97fc8c58212dc9/out/bindings.rs:3:2299 [INFO] [stdout] | [WARN] too much data in the log, truncating it