[INFO] fetching crate simavr-section-sys 0.1.0... [INFO] checking simavr-section-sys-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate simavr-section-sys 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate simavr-section-sys 0.1.0 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 simavr-section-sys 0.1.0 [INFO] finished tweaking crates.io crate simavr-section-sys 0.1.0 [INFO] tweaked toml for crates.io crate simavr-section-sys 0.1.0 written to /workspace/builds/worker-1-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 58 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.59.2 (available: v0.70.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.18) [INFO] [stderr] Adding env_logger v0.9.3 (available: v0.11.5) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding peeking_take_while v0.1.2 (available: v1.0.0) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.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 v4.4.2 (available: v6.0.3) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ea890d6cad0398db7fba058396e125908d8075f16aab74e7f7e99fe18242f78f [INFO] running `Command { std: "docker" "start" "-a" "ea890d6cad0398db7fba058396e125908d8075f16aab74e7f7e99fe18242f78f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea890d6cad0398db7fba058396e125908d8075f16aab74e7f7e99fe18242f78f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea890d6cad0398db7fba058396e125908d8075f16aab74e7f7e99fe18242f78f", kill_on_drop: false }` [INFO] [stdout] ea890d6cad0398db7fba058396e125908d8075f16aab74e7f7e99fe18242f78f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] f4ef21cc2eee9859ef61d3d851d820232666f9d4750d28c254972611b2f7a928 [INFO] running `Command { std: "docker" "start" "-a" "f4ef21cc2eee9859ef61d3d851d820232666f9d4750d28c254972611b2f7a928", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling simavr-section-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4098 [INFO] [stdout] | [INFO] [stdout] 3 | ..._MAX : u32 = 4294967295 ; pub type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_char ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ushort` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4146 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: ... [INFO] [stdout] | ^^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ushort; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ushort`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4239 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_schar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4286 [INFO] [stdout] | [INFO] [stdout] 3 | ...rate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __in... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_char ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_schar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_schar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4334 [INFO] [stdout] | [INFO] [stdout] 3 | ...ate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __ui... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_char ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_short` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4382 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = cra... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_short; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_short`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ushort` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4431 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate ... [INFO] [stdout] | ^^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ushort; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ushort`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4480 [INFO] [stdout] | [INFO] [stdout] 3 | ...ate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_uint ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4574 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: c_ulong ; pub type __int_least8_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4622 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __uint64_t = crate :: libc :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4985 [INFO] [stdout] | [INFO] [stdout] 3 | ...__uint64_t ; pub type __quad_t = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crat... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5033 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = cra... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5082 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5131 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5177 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: l... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5313 [INFO] [stdout] | [INFO] [stdout] 3 | ...c :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4098 [INFO] [stdout] | [INFO] [stdout] 3 | ..._MAX : u32 = 4294967295 ; pub type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_char ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5361 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5455 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate ::... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ushort` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4146 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: ... [INFO] [stdout] | ^^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ushort; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ushort`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5501 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5548 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug ,... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4239 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5593 [INFO] [stdout] | [INFO] [stdout] 3 | ...= crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fs... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_schar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4286 [INFO] [stdout] | [INFO] [stdout] 3 | ...rate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __in... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_char ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_schar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_schar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5700 [INFO] [stdout] | [INFO] [stdout] 3 | ...y , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { asse... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: c_uint ; 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6254 [INFO] [stdout] | [INFO] [stdout] 3 | ..._val))) ; } pub type __clock_t = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6300 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4334 [INFO] [stdout] | [INFO] [stdout] 3 | ...ate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __ui... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_char ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6349 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: l... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6440 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6541 [INFO] [stdout] | [INFO] [stdout] 3 | ..._uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_short` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4382 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = cra... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_short; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_short`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ushort` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4431 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate ... [INFO] [stdout] | ^^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ushort; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ushort`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6594 [INFO] [stdout] | [INFO] [stdout] 3 | ...ong ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: l... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6641 [INFO] [stdout] | [INFO] [stdout] 3 | ...crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_uint ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4480 [INFO] [stdout] | [INFO] [stdout] 3 | ...ate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_uint ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6685 [INFO] [stdout] | [INFO] [stdout] 3 | ... = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __tim... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_uint ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6733 [INFO] [stdout] | [INFO] [stdout] 3 | ...rate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type ... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_uint ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4574 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: c_ulong ; pub type __int_least8_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6834 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = cra... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4622 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __uint64_t = crate :: libc :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6882 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6932 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:4985 [INFO] [stdout] | [INFO] [stdout] 3 | ...__uint64_t ; pub type __quad_t = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crat... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6982 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7035 [INFO] [stdout] | [INFO] [stdout] 3 | ...long ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5033 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = cra... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7086 [INFO] [stdout] | [INFO] [stdout] 3 | ..._ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t =... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7139 [INFO] [stdout] | [INFO] [stdout] 3 | ...long ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5082 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5131 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7188 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5177 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: l... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7235 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_u... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7290 [INFO] [stdout] | [INFO] [stdout] 3 | ...g ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7345 [INFO] [stdout] | [INFO] [stdout] 3 | ...g ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5313 [INFO] [stdout] | [INFO] [stdout] 3 | ...c :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate ... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7479 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5361 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7580 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: c_uint ; 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5455 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate ::... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_schar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7976 [INFO] [stdout] | [INFO] [stdout] 3 | ...t = __uint_least64_t ; pub type int_fast8_t = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type in... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_char ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_schar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_schar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5501 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8027 [INFO] [stdout] | [INFO] [stdout] 3 | ..._schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8077 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8127 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5548 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug ,... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8177 [INFO] [stdout] | [INFO] [stdout] 3 | ...e :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_char ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8229 [INFO] [stdout] | [INFO] [stdout] 3 | ...uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5593 [INFO] [stdout] | [INFO] [stdout] 3 | ...= crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fs... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:5700 [INFO] [stdout] | [INFO] [stdout] 3 | ...y , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { asse... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: c_uint ; 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8281 [INFO] [stdout] | [INFO] [stdout] 3 | ...ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8333 [INFO] [stdout] | [INFO] [stdout] 3 | ...ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub co... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6254 [INFO] [stdout] | [INFO] [stdout] 3 | ..._val))) ; } pub type __clock_t = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6300 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6349 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: l... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6440 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6541 [INFO] [stdout] | [INFO] [stdout] 3 | ..._uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6594 [INFO] [stdout] | [INFO] [stdout] 3 | ...ong ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: l... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6641 [INFO] [stdout] | [INFO] [stdout] 3 | ...crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_uint ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:10840 [INFO] [stdout] | [INFO] [stdout] 3 | ...y ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:13134 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6685 [INFO] [stdout] | [INFO] [stdout] 3 | ... = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __tim... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_uint ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:14604 [INFO] [stdout] | [INFO] [stdout] 3 | ...(mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6733 [INFO] [stdout] | [INFO] [stdout] 3 | ...rate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type ... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_uint ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 55 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0793. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6834 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = cra... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6882 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6932 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `simavr-section-sys` (lib test) due to 56 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:6982 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7035 [INFO] [stdout] | [INFO] [stdout] 3 | ...long ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7086 [INFO] [stdout] | [INFO] [stdout] 3 | ..._ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t =... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7139 [INFO] [stdout] | [INFO] [stdout] 3 | ...long ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7188 [INFO] [stdout] | [INFO] [stdout] 3 | ... c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7235 [INFO] [stdout] | [INFO] [stdout] 3 | ...:: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_u... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7290 [INFO] [stdout] | [INFO] [stdout] 3 | ...g ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7345 [INFO] [stdout] | [INFO] [stdout] 3 | ...g ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7479 [INFO] [stdout] | [INFO] [stdout] 3 | ...: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = ... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7580 [INFO] [stdout] | [INFO] [stdout] 3 | ... :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_... [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub type c_uint = u16; [INFO] [stdout] | ---------------------- similarly named type alias `c_uint` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: c_uint ; 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_int`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_schar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:7976 [INFO] [stdout] | [INFO] [stdout] 3 | ...t = __uint_least64_t ; pub type int_fast8_t = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type in... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_char ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_schar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_schar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8027 [INFO] [stdout] | [INFO] [stdout] 3 | ..._schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8077 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = c... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_long` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8127 [INFO] [stdout] | [INFO] [stdout] 3 | ...c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t =... [INFO] [stdout] | ^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_long; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_long`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uchar` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8177 [INFO] [stdout] | [INFO] [stdout] 3 | ...e :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub type c_char = u8; [INFO] [stdout] | --------------------- similarly named type alias `c_char` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_char ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + use core::ffi::c_uchar; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_uchar`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8229 [INFO] [stdout] | [INFO] [stdout] 3 | ...uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8281 [INFO] [stdout] | [INFO] [stdout] 3 | ...ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in module `crate::libc` [INFO] [stdout] --> /opt/rustwide/target/debug/build/simavr-section-sys-be3b8bc2b9c4044a/out/bindings.rs:3:8333 [INFO] [stdout] | [INFO] [stdout] 3 | ...ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub co... [INFO] [stdout] | ^^^^^^^ not found in `crate::libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22+ use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_ulong`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = crate :: libc :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] 3 + 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 type __u_char = crate :: libc :: c_uchar ; pub type __u_short = crate :: libc :: c_ushort ; pub type __u_int = crate :: libc :: c_uint ; pub type __u_long = crate :: libc :: c_ulong ; pub type __int8_t = crate :: libc :: c_schar ; pub type __uint8_t = crate :: libc :: c_uchar ; pub type __int16_t = crate :: libc :: c_short ; pub type __uint16_t = crate :: libc :: c_ushort ; pub type __int32_t = crate :: libc :: c_int ; pub type __uint32_t = crate :: libc :: c_uint ; pub type __int64_t = crate :: libc :: c_long ; pub type __uint64_t = crate :: libc :: 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 = crate :: libc :: c_long ; pub type __u_quad_t = crate :: libc :: c_ulong ; pub type __intmax_t = crate :: libc :: c_long ; pub type __uintmax_t = crate :: libc :: c_ulong ; pub type __dev_t = crate :: libc :: c_ulong ; pub type __uid_t = crate :: libc :: c_uint ; pub type __gid_t = crate :: libc :: c_uint ; pub type __ino_t = crate :: libc :: c_ulong ; pub type __ino64_t = crate :: libc :: c_ulong ; pub type __mode_t = crate :: libc :: c_uint ; pub type __nlink_t = crate :: libc :: c_ulong ; pub type __off_t = crate :: libc :: c_long ; pub type __off64_t = crate :: libc :: c_long ; pub type __pid_t = crate :: libc :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [crate :: libc :: 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 = crate :: libc :: c_long ; pub type __rlim_t = crate :: libc :: c_ulong ; pub type __rlim64_t = crate :: libc :: c_ulong ; pub type __id_t = crate :: libc :: c_uint ; pub type __time_t = crate :: libc :: c_long ; pub type __useconds_t = crate :: libc :: c_uint ; pub type __suseconds_t = crate :: libc :: c_long ; pub type __suseconds64_t = crate :: libc :: c_long ; pub type __daddr_t = crate :: libc :: c_int ; pub type __key_t = crate :: libc :: c_int ; pub type __clockid_t = crate :: libc :: c_int ; pub type __timer_t = * mut crate :: libc :: c_void ; pub type __blksize_t = crate :: libc :: c_long ; pub type __blkcnt_t = crate :: libc :: c_long ; pub type __blkcnt64_t = crate :: libc :: c_long ; pub type __fsblkcnt_t = crate :: libc :: c_ulong ; pub type __fsblkcnt64_t = crate :: libc :: c_ulong ; pub type __fsfilcnt_t = crate :: libc :: c_ulong ; pub type __fsfilcnt64_t = crate :: libc :: c_ulong ; pub type __fsword_t = crate :: libc :: c_long ; pub type __ssize_t = crate :: libc :: c_long ; pub type __syscall_slong_t = crate :: libc :: c_long ; pub type __syscall_ulong_t = crate :: libc :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut crate :: libc :: c_char ; pub type __intptr_t = crate :: libc :: c_long ; pub type __socklen_t = crate :: libc :: c_uint ; pub type __sig_atomic_t = crate :: libc :: 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 = crate :: libc :: c_schar ; pub type int_fast16_t = crate :: libc :: c_long ; pub type int_fast32_t = crate :: libc :: c_long ; pub type int_fast64_t = crate :: libc :: c_long ; pub type uint_fast8_t = crate :: libc :: c_uchar ; pub type uint_fast16_t = crate :: libc :: c_ulong ; pub type uint_fast32_t = crate :: libc :: c_ulong ; pub type uint_fast64_t = c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub const AVR_MMCU_TAG : crate :: libc :: c_uint = 0 ; pub const AVR_MMCU_TAG_NAME : crate :: libc :: c_uint = 1 ; pub const AVR_MMCU_TAG_FREQUENCY : crate :: libc :: c_uint = 2 ; pub const AVR_MMCU_TAG_VCC : crate :: libc :: c_uint = 3 ; pub const AVR_MMCU_TAG_AVCC : crate :: libc :: c_uint = 4 ; pub const AVR_MMCU_TAG_AREF : crate :: libc :: c_uint = 5 ; pub const AVR_MMCU_TAG_LFUSE : crate :: libc :: c_uint = 6 ; pub const AVR_MMCU_TAG_HFUSE : crate :: libc :: c_uint = 7 ; pub const AVR_MMCU_TAG_EFUSE : crate :: libc :: c_uint = 8 ; pub const AVR_MMCU_TAG_SIGNATURE : crate :: libc :: c_uint = 9 ; pub const AVR_MMCU_TAG_SIMAVR_COMMAND : crate :: libc :: c_uint = 10 ; pub const AVR_MMCU_TAG_SIMAVR_CONSOLE : crate :: libc :: c_uint = 11 ; pub const AVR_MMCU_TAG_VCD_FILENAME : crate :: libc :: c_uint = 12 ; pub const AVR_MMCU_TAG_VCD_PERIOD : crate :: libc :: c_uint = 13 ; pub const AVR_MMCU_TAG_VCD_TRACE : crate :: libc :: c_uint = 14 ; pub const AVR_MMCU_TAG_VCD_PORTPIN : crate :: libc :: c_uint = 15 ; pub const AVR_MMCU_TAG_VCD_IRQ : crate :: libc :: c_uint = 16 ; pub const AVR_MMCU_TAG_PORT_EXTERNAL_PULL : crate :: libc :: c_uint = 17 ; pub type _bindgen_ty_1 = crate :: libc :: c_uint ; pub const SIMAVR_CMD_NONE : crate :: libc :: c_uint = 0 ; pub const SIMAVR_CMD_VCD_START_TRACE : crate :: libc :: c_uint = 1 ; pub const SIMAVR_CMD_VCD_STOP_TRACE : crate :: libc :: c_uint = 2 ; pub const SIMAVR_CMD_UART_LOOPBACK : crate :: libc :: c_uint = 3 ; pub type _bindgen_ty_2 = crate :: libc :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_long_t { pub tag : u8 , pub len : u8 , pub val : u32 , } # [test] fn bindgen_test_layout_avr_mmcu_long_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_long_t > () , 6usize , concat ! ("Size of: " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_long_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_long_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_long_t > ())) . val as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_long_t) , "::" , stringify ! (val))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_string_t { pub tag : u8 , pub len : u8 , pub string : [crate :: libc :: c_char ; 64usize] , } # [test] fn bindgen_test_layout_avr_mmcu_string_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_string_t > () , 66usize , concat ! ("Size of: " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_string_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_string_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_string_t > ())) . string as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_string_t) , "::" , stringify ! (string))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_addr_t { pub tag : u8 , pub len : u8 , pub what : * mut crate :: libc :: c_void , } # [test] fn bindgen_test_layout_avr_mmcu_addr_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_addr_t > () , 10usize , concat ! ("Size of: " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_addr_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_addr_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_addr_t > ())) . what as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_addr_t) , "::" , stringify ! (what))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct avr_mmcu_vcd_trace_t { pub tag : u8 , pub len : u8 , pub mask : u8 , pub what : * mut crate :: libc :: c_void , pub name : [crate :: libc :: c_char ; 32usize] , } # [test] fn bindgen_test_layout_avr_mmcu_vcd_trace_t () { assert_eq ! (:: core :: mem :: size_of :: < avr_mmcu_vcd_trace_t > () , 43usize , concat ! ("Size of: " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (:: core :: mem :: align_of :: < avr_mmcu_vcd_trace_t > () , 1usize , concat ! ("Alignment of " , stringify ! (avr_mmcu_vcd_trace_t))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . tag as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . len as * const _ as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (len))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . mask as * const _ as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (mask))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . what as * const _ as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (what))) ; assert_eq ! (unsafe { & (* (:: core :: ptr :: null :: < avr_mmcu_vcd_trace_t > ())) . name as * const _ as usize } , 11usize , concat ! ("Offset of field: " , stringify ! (avr_mmcu_vcd_trace_t) , "::" , stringify ! (name))) ; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 52 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simavr-section-sys` (lib) due to 53 previous errors [INFO] running `Command { std: "docker" "inspect" "f4ef21cc2eee9859ef61d3d851d820232666f9d4750d28c254972611b2f7a928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4ef21cc2eee9859ef61d3d851d820232666f9d4750d28c254972611b2f7a928", kill_on_drop: false }` [INFO] [stdout] f4ef21cc2eee9859ef61d3d851d820232666f9d4750d28c254972611b2f7a928