From 98a31ce672c3113a2c238dc4e2ae9d632e59713a Mon Sep 17 00:00:00 2001 From: alexmoon Date: Thu, 14 Jul 2022 15:45:28 -0400 Subject: Add rustfmt.toml to match embassy formatting --- nrf-softdevice-s112/src/bindings.rs | 1559 ++++++++--------------------------- 1 file changed, 358 insertions(+), 1201 deletions(-) (limited to 'nrf-softdevice-s112/src/bindings.rs') diff --git a/nrf-softdevice-s112/src/bindings.rs b/nrf-softdevice-s112/src/bindings.rs index 7d1ad13..9988bd5 100644 --- a/nrf-softdevice-s112/src/bindings.rs +++ b/nrf-softdevice-s112/src/bindings.rs @@ -918,73 +918,57 @@ pub const NRF_POWER_DCDC_MODES_NRF_POWER_DCDC_ENABLE: NRF_POWER_DCDC_MODES = 1; #[doc = "@brief DC/DC converter modes."] pub type NRF_POWER_DCDC_MODES = self::c_uint; #[doc = "< The event does not have a notification."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_NONE: - NRF_RADIO_NOTIFICATION_DISTANCES = 0; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_NONE: NRF_RADIO_NOTIFICATION_DISTANCES = 0; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_800US: - NRF_RADIO_NOTIFICATION_DISTANCES = 1; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_800US: NRF_RADIO_NOTIFICATION_DISTANCES = 1; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_1740US: - NRF_RADIO_NOTIFICATION_DISTANCES = 2; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_1740US: NRF_RADIO_NOTIFICATION_DISTANCES = 2; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_2680US: - NRF_RADIO_NOTIFICATION_DISTANCES = 3; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_2680US: NRF_RADIO_NOTIFICATION_DISTANCES = 3; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_3620US: - NRF_RADIO_NOTIFICATION_DISTANCES = 4; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_3620US: NRF_RADIO_NOTIFICATION_DISTANCES = 4; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_4560US: - NRF_RADIO_NOTIFICATION_DISTANCES = 5; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_4560US: NRF_RADIO_NOTIFICATION_DISTANCES = 5; #[doc = "< The distance from the active notification to start of radio activity."] -pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_5500US: - NRF_RADIO_NOTIFICATION_DISTANCES = 6; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_5500US: NRF_RADIO_NOTIFICATION_DISTANCES = 6; #[doc = "@brief Radio notification distances."] pub type NRF_RADIO_NOTIFICATION_DISTANCES = self::c_uint; #[doc = "< The event does not have a radio notification signal."] -pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_NONE: - NRF_RADIO_NOTIFICATION_TYPES = 0; +pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_NONE: NRF_RADIO_NOTIFICATION_TYPES = 0; #[doc = "< Using interrupt for notification when the radio will be enabled."] -pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE: - NRF_RADIO_NOTIFICATION_TYPES = 1; +pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE: NRF_RADIO_NOTIFICATION_TYPES = 1; #[doc = "< Using interrupt for notification when the radio has been disabled."] -pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE: - NRF_RADIO_NOTIFICATION_TYPES = 2; +pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE: NRF_RADIO_NOTIFICATION_TYPES = 2; #[doc = "< Using interrupt for notification both when the radio will be enabled and disabled."] -pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_BOTH: - NRF_RADIO_NOTIFICATION_TYPES = 3; +pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_BOTH: NRF_RADIO_NOTIFICATION_TYPES = 3; #[doc = "@brief Radio notification types."] pub type NRF_RADIO_NOTIFICATION_TYPES = self::c_uint; #[doc = "< This signal indicates the start of the radio timeslot."] -pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_START: - NRF_RADIO_CALLBACK_SIGNAL_TYPE = 0; +pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_START: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 0; #[doc = "< This signal indicates the NRF_TIMER0 interrupt."] -pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0: - NRF_RADIO_CALLBACK_SIGNAL_TYPE = 1; +pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 1; #[doc = "< This signal indicates the NRF_RADIO interrupt."] -pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO: - NRF_RADIO_CALLBACK_SIGNAL_TYPE = 2; +pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 2; #[doc = "< This signal indicates extend action failed."] -pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED: - NRF_RADIO_CALLBACK_SIGNAL_TYPE = 3; +pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED: NRF_RADIO_CALLBACK_SIGNAL_TYPE = + 3; #[doc = "< This signal indicates extend action succeeded."] pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_SUCCEEDED: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 4; #[doc = "@brief The Radio signal callback types."] pub type NRF_RADIO_CALLBACK_SIGNAL_TYPE = self::c_uint; #[doc = "< Return without action."] -pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_NONE: - NRF_RADIO_SIGNAL_CALLBACK_ACTION = 0; +pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_NONE: NRF_RADIO_SIGNAL_CALLBACK_ACTION = 0; #[doc = "< Request an extension of the current"] #[doc = "timeslot. Maximum execution time for this action:"] #[doc = "@ref NRF_RADIO_MAX_EXTENSION_PROCESSING_TIME_US."] #[doc = "This action must be started at least"] #[doc = "@ref NRF_RADIO_MIN_EXTENSION_MARGIN_US before"] #[doc = "the end of the timeslot."] -pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_EXTEND: - NRF_RADIO_SIGNAL_CALLBACK_ACTION = 1; +pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_EXTEND: NRF_RADIO_SIGNAL_CALLBACK_ACTION = + 1; #[doc = "< End the current radio timeslot."] -pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_END: - NRF_RADIO_SIGNAL_CALLBACK_ACTION = 2; +pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_END: NRF_RADIO_SIGNAL_CALLBACK_ACTION = 2; #[doc = "< Request a new radio timeslot and end the current timeslot."] pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_REQUEST_AND_END: NRF_RADIO_SIGNAL_CALLBACK_ACTION = 3; @@ -1071,9 +1055,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() { concat!("Alignment of ", stringify!(nrf_radio_request_earliest_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hfclk as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hfclk as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -1083,9 +1065,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).priority as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).priority as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -1095,9 +1075,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).length_us as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).length_us as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -1107,10 +1085,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).timeout_us as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).timeout_us as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -1146,9 +1121,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() { concat!("Alignment of ", stringify!(nrf_radio_request_normal_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hfclk as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hfclk as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -1158,9 +1131,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).priority as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).priority as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -1170,9 +1141,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).distance_us as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).distance_us as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -1182,9 +1151,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).length_us as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).length_us as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -1222,16 +1189,10 @@ fn bindgen_test_layout_nrf_radio_request_t__bindgen_ty_1() { assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(nrf_radio_request_t__bindgen_ty_1) - ) + concat!("Alignment of ", stringify!(nrf_radio_request_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).earliest as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).earliest as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -1241,10 +1202,7 @@ fn bindgen_test_layout_nrf_radio_request_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).normal as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).normal as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -1267,9 +1225,7 @@ fn bindgen_test_layout_nrf_radio_request_t() { concat!("Alignment of ", stringify!(nrf_radio_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).request_type as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).request_type as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -1316,8 +1272,7 @@ pub struct nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1 #[test] fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1() { assert_eq!( - ::core::mem::size_of::( - ), + ::core::mem::size_of::(), 4usize, concat!( "Size of: ", @@ -1325,8 +1280,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b ) ); assert_eq!( - ::core::mem::align_of::( - ), + ::core::mem::align_of::(), 4usize, concat!( "Alignment of ", @@ -1335,10 +1289,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b ); assert_eq!( unsafe { - &(*(::core::ptr::null::< - nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1, - >())) - .p_next as *const _ as usize + &(*(::core::ptr::null::())).p_next + as *const _ as usize }, 0usize, concat!( @@ -1358,8 +1310,7 @@ pub struct nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2 #[test] fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2() { assert_eq!( - ::core::mem::size_of::( - ), + ::core::mem::size_of::(), 4usize, concat!( "Size of: ", @@ -1367,8 +1318,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b ) ); assert_eq!( - ::core::mem::align_of::( - ), + ::core::mem::align_of::(), 4usize, concat!( "Alignment of ", @@ -1377,10 +1327,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b ); assert_eq!( unsafe { - &(*(::core::ptr::null::< - nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2, - >())) - .length_us as *const _ as usize + &(*(::core::ptr::null::())).length_us + as *const _ as usize }, 0usize, concat!( @@ -1411,8 +1359,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1() ); assert_eq!( unsafe { - &(*(::core::ptr::null::())) - .request as *const _ as usize + &(*(::core::ptr::null::())).request as *const _ + as usize }, 0usize, concat!( @@ -1424,8 +1372,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1() ); assert_eq!( unsafe { - &(*(::core::ptr::null::())) - .extend as *const _ as usize + &(*(::core::ptr::null::())).extend as *const _ + as usize }, 0usize, concat!( @@ -1441,23 +1389,16 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t() { assert_eq!( ::core::mem::size_of::(), 8usize, - concat!( - "Size of: ", - stringify!(nrf_radio_signal_callback_return_param_t) - ) + concat!("Size of: ", stringify!(nrf_radio_signal_callback_return_param_t)) ); assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(nrf_radio_signal_callback_return_param_t) - ) + concat!("Alignment of ", stringify!(nrf_radio_signal_callback_return_param_t)) ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).callback_action - as *const _ as usize + &(*(::core::ptr::null::())).callback_action as *const _ as usize }, 0usize, concat!( @@ -1468,10 +1409,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).params as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).params as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -1492,9 +1430,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t() { #[doc = " @param[in] signal_type Type of signal, see @ref NRF_RADIO_CALLBACK_SIGNAL_TYPE."] #[doc = ""] #[doc = " @return Pointer to structure containing action requested by the application."] -pub type nrf_radio_signal_callback_t = ::core::option::Option< - unsafe extern "C" fn(signal_type: u8) -> *mut nrf_radio_signal_callback_return_param_t, ->; +pub type nrf_radio_signal_callback_t = + ::core::option::Option *mut nrf_radio_signal_callback_return_param_t>; #[doc = "@brief AES ECB parameter typedefs"] pub type soc_ecb_key_t = [u8; 16usize]; pub type soc_ecb_cleartext_t = [u8; 16usize]; @@ -1588,9 +1525,7 @@ fn bindgen_test_layout_nrf_ecb_hal_data_block_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_cleartext as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_cleartext as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -1600,9 +1535,7 @@ fn bindgen_test_layout_nrf_ecb_hal_data_block_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_ciphertext as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_ciphertext as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -2310,10 +2243,7 @@ pub unsafe fn sd_ecb_block_encrypt(p_ecb_data: *mut nrf_ecb_hal_data_t) -> u32 { #[doc = ""] #[doc = " @retval ::NRF_SUCCESS"] #[inline(always)] -pub unsafe fn sd_ecb_blocks_encrypt( - block_count: u8, - p_data_blocks: *mut nrf_ecb_hal_data_block_t, -) -> u32 { +pub unsafe fn sd_ecb_blocks_encrypt(block_count: u8, p_data_blocks: *mut nrf_ecb_hal_data_block_t) -> u32 { let ret: u32; core::arch::asm!("svc 71", inout("r0") to_asm(block_count) => ret, @@ -2475,12 +2405,7 @@ pub unsafe fn sd_flash_page_erase(page_number: u32) -> u32 { #[doc = " @retval ::NRF_ERROR_NOT_SUPPORTED Non-zero value supplied to one or more of the unsupported parameters."] #[doc = " @retval ::NRF_SUCCESS Values successfully written to configuration registers."] #[inline(always)] -pub unsafe fn sd_flash_protect( - block_cfg0: u32, - block_cfg1: u32, - block_cfg2: u32, - block_cfg3: u32, -) -> u32 { +pub unsafe fn sd_flash_protect(block_cfg0: u32, block_cfg1: u32, block_cfg2: u32, block_cfg3: u32) -> u32 { let ret: u32; core::arch::asm!("svc 42", inout("r0") to_asm(block_cfg0) => ret, @@ -2707,9 +2632,7 @@ fn bindgen_test_layout_nrf_clock_lf_cfg_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rc_temp_ctiv as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).rc_temp_ctiv as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -2748,8 +2671,7 @@ fn bindgen_test_layout_nrf_clock_lf_cfg_t() { #[doc = ""] #[doc = " @note When id is set to @ref NRF_FAULT_ID_APP_MEMACC, pc will contain the address of the instruction being executed at the time when"] #[doc = " the fault is detected by the CPU. The CPU program counter may have advanced up to 2 instructions (no branching) after the one that triggered the fault."] -pub type nrf_fault_handler_t = - ::core::option::Option; +pub type nrf_fault_handler_t = ::core::option::Option; #[doc = "@brief Enables the SoftDevice and by extension the protocol stack."] #[doc = ""] @@ -2912,22 +2834,12 @@ fn bindgen_test_layout_ble_uuid_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).uuid as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_uuid_t), - "::", - stringify!(uuid) - ) + concat!("Offset of field: ", stringify!(ble_uuid_t), "::", stringify!(uuid)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, 2usize, - concat!( - "Offset of field: ", - stringify!(ble_uuid_t), - "::", - stringify!(type_) - ) + concat!("Offset of field: ", stringify!(ble_uuid_t), "::", stringify!(type_)) ); } #[doc = "@brief Data structure."] @@ -2954,22 +2866,12 @@ fn bindgen_test_layout_ble_data_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).p_data as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_data_t), - "::", - stringify!(p_data) - ) + concat!("Offset of field: ", stringify!(ble_data_t), "::", stringify!(p_data)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).len as *const _ as usize }, 4usize, - concat!( - "Offset of field: ", - stringify!(ble_data_t), - "::", - stringify!(len) - ) + concat!("Offset of field: ", stringify!(ble_data_t), "::", stringify!(len)) ); } #[doc = " @brief BLE GATT connection configuration parameters, set with @ref sd_ble_cfg_set."] @@ -3116,8 +3018,7 @@ impl ble_gatt_char_props_t { indicate: u8, auth_signed_wr: u8, ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let broadcast: u8 = unsafe { ::core::mem::transmute(broadcast) }; broadcast as u64 @@ -3193,8 +3094,7 @@ impl ble_gatt_char_ext_props_t { } #[inline] pub fn new_bitfield_1(reliable_wr: u8, wr_aux: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let reliable_wr: u8 = unsafe { ::core::mem::transmute(reliable_wr) }; reliable_wr as u64 @@ -3387,9 +3287,7 @@ fn bindgen_test_layout_sd_mbr_command_copy_bl_t() { concat!("Alignment of ", stringify!(sd_mbr_command_copy_bl_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).bl_src as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).bl_src as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3399,9 +3297,7 @@ fn bindgen_test_layout_sd_mbr_command_copy_bl_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).bl_len as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).bl_len as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -3443,24 +3339,15 @@ fn bindgen_test_layout_sd_mbr_command_vector_table_base_set_t() { assert_eq!( ::core::mem::size_of::(), 4usize, - concat!( - "Size of: ", - stringify!(sd_mbr_command_vector_table_base_set_t) - ) + concat!("Size of: ", stringify!(sd_mbr_command_vector_table_base_set_t)) ); assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(sd_mbr_command_vector_table_base_set_t) - ) + concat!("Alignment of ", stringify!(sd_mbr_command_vector_table_base_set_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).address as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).address as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3487,24 +3374,15 @@ fn bindgen_test_layout_sd_mbr_command_irq_forward_address_set_t() { assert_eq!( ::core::mem::size_of::(), 4usize, - concat!( - "Size of: ", - stringify!(sd_mbr_command_irq_forward_address_set_t) - ) + concat!("Size of: ", stringify!(sd_mbr_command_irq_forward_address_set_t)) ); assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(sd_mbr_command_irq_forward_address_set_t) - ) + concat!("Alignment of ", stringify!(sd_mbr_command_irq_forward_address_set_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).address - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).address as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3555,9 +3433,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(sd_mbr_command_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).copy_sd as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).copy_sd as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3567,9 +3443,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).compare as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).compare as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3579,9 +3453,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).copy_bl as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).copy_bl as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3591,10 +3463,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).base_set as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).base_set as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -3605,8 +3474,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).irq_forward_address_set - as *const _ as usize + &(*(::core::ptr::null::())).irq_forward_address_set as *const _ as usize }, 0usize, concat!( @@ -3881,12 +3749,8 @@ impl ble_gap_adv_properties_t { } } #[inline] - pub fn new_bitfield_1( - anonymous: u8, - include_tx_power: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(anonymous: u8, include_tx_power: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let anonymous: u8 = unsafe { ::core::mem::transmute(anonymous) }; anonymous as u64 @@ -3921,12 +3785,7 @@ fn bindgen_test_layout_ble_gap_addr_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).addr as *const _ as usize }, 1usize, - concat!( - "Offset of field: ", - stringify!(ble_gap_addr_t), - "::", - stringify!(addr) - ) + concat!("Offset of field: ", stringify!(ble_gap_addr_t), "::", stringify!(addr)) ); } impl ble_gap_addr_t { @@ -3953,12 +3812,8 @@ impl ble_gap_addr_t { } } #[inline] - pub fn new_bitfield_1( - addr_id_peer: u8, - addr_type: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(addr_id_peer: u8, addr_type: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let addr_id_peer: u8 = unsafe { ::core::mem::transmute(addr_id_peer) }; addr_id_peer as u64 @@ -4005,10 +3860,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() { concat!("Alignment of ", stringify!(ble_gap_conn_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).min_conn_interval as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).min_conn_interval as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -4018,10 +3870,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).max_conn_interval as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).max_conn_interval as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -4031,9 +3880,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).slave_latency as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).slave_latency as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -4043,9 +3890,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_sup_timeout as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_sup_timeout as *const _ as usize }, 6usize, concat!( "Offset of field: ", @@ -4107,8 +3952,7 @@ impl ble_gap_conn_sec_mode_t { } #[inline] pub fn new_bitfield_1(sm: u8, lv: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 4u8, { let sm: u8 = unsafe { ::core::mem::transmute(sm) }; sm as u64 @@ -4152,9 +3996,7 @@ fn bindgen_test_layout_ble_gap_conn_sec_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).encr_key_size as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).encr_key_size as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -4186,12 +4028,7 @@ fn bindgen_test_layout_ble_gap_irk_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).irk as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_gap_irk_t), - "::", - stringify!(irk) - ) + concat!("Offset of field: ", stringify!(ble_gap_irk_t), "::", stringify!(irk)) ); } #[doc = "@brief Channel mask (40 bits)."] @@ -4265,9 +4102,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { concat!("Alignment of ", stringify!(ble_gap_adv_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).properties as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).properties as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -4277,9 +4112,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_peer_addr as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_peer_addr as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -4309,9 +4142,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).max_adv_evts as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).max_adv_evts as *const _ as usize }, 14usize, concat!( "Offset of field: ", @@ -4321,9 +4152,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).channel_mask as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).channel_mask as *const _ as usize }, 15usize, concat!( "Offset of field: ", @@ -4333,9 +4162,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).filter_policy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).filter_policy as *const _ as usize }, 20usize, concat!( "Offset of field: ", @@ -4345,9 +4172,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).primary_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).primary_phy as *const _ as usize }, 21usize, concat!( "Offset of field: ", @@ -4357,9 +4182,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).secondary_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).secondary_phy as *const _ as usize }, 22usize, concat!( "Offset of field: ", @@ -4393,19 +4216,14 @@ impl ble_gap_adv_params_t { } } #[inline] - pub fn new_bitfield_1( - set_id: u8, - scan_req_notification: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(set_id: u8, scan_req_notification: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 4u8, { let set_id: u8 = unsafe { ::core::mem::transmute(set_id) }; set_id as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { - let scan_req_notification: u8 = - unsafe { ::core::mem::transmute(scan_req_notification) }; + let scan_req_notification: u8 = unsafe { ::core::mem::transmute(scan_req_notification) }; scan_req_notification as u64 }); __bindgen_bitfield_unit @@ -4458,9 +4276,7 @@ fn bindgen_test_layout_ble_gap_adv_data_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).scan_rsp_data as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).scan_rsp_data as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -4513,9 +4329,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() { concat!("Alignment of ", stringify!(ble_gap_privacy_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).privacy_mode as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).privacy_mode as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -4525,10 +4339,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).private_addr_type as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).private_addr_type as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -4538,10 +4349,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).private_addr_cycle_s as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).private_addr_cycle_s as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -4551,9 +4359,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_device_irk as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_device_irk as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -4676,14 +4482,8 @@ impl ble_gap_sec_kdist_t { } } #[inline] - pub fn new_bitfield_1( - enc: u8, - id: u8, - sign: u8, - link: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(enc: u8, id: u8, sign: u8, link: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let enc: u8 = unsafe { ::core::mem::transmute(enc) }; enc as u64 @@ -4730,9 +4530,7 @@ fn bindgen_test_layout_ble_gap_sec_params_t() { concat!("Alignment of ", stringify!(ble_gap_sec_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).min_key_size as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).min_key_size as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -4742,9 +4540,7 @@ fn bindgen_test_layout_ble_gap_sec_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).max_key_size as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).max_key_size as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -4764,9 +4560,7 @@ fn bindgen_test_layout_ble_gap_sec_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).kdist_peer as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).kdist_peer as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -4852,8 +4646,7 @@ impl ble_gap_sec_params_t { io_caps: u8, oob: u8, ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let bond: u8 = unsafe { ::core::mem::transmute(bond) }; bond as u64 @@ -4947,13 +4740,8 @@ impl ble_gap_enc_info_t { } } #[inline] - pub fn new_bitfield_1( - lesc: u8, - auth: u8, - ltk_len: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(lesc: u8, auth: u8, ltk_len: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let lesc: u8 = unsafe { ::core::mem::transmute(lesc) }; lesc as u64 @@ -5188,9 +4976,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() { concat!("Alignment of ", stringify!(ble_gap_evt_connected_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).peer_addr as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).peer_addr as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5210,9 +4996,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_params as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_params as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -5222,9 +5006,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_handle as *const _ as usize }, 16usize, concat!( "Offset of field: ", @@ -5234,9 +5016,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_data as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_data as *const _ as usize }, 20usize, concat!( "Offset of field: ", @@ -5266,9 +5046,7 @@ fn bindgen_test_layout_ble_gap_evt_disconnected_t() { concat!("Alignment of ", stringify!(ble_gap_evt_disconnected_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).reason as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).reason as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5298,10 +5076,7 @@ fn bindgen_test_layout_ble_gap_evt_conn_param_update_t() { concat!("Alignment of ", stringify!(ble_gap_evt_conn_param_update_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_params as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_params as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5328,15 +5103,11 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_request_t() { assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_phy_update_request_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_phy_update_request_t)) ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).peer_preferred_phys - as *const _ as usize + &(*(::core::ptr::null::())).peer_preferred_phys as *const _ as usize }, 0usize, concat!( @@ -5371,9 +5142,7 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_t() { concat!("Alignment of ", stringify!(ble_gap_evt_phy_update_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).status as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).status as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5383,9 +5152,7 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).tx_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).tx_phy as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -5395,9 +5162,7 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rx_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).rx_phy as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -5424,16 +5189,10 @@ fn bindgen_test_layout_ble_gap_evt_sec_params_request_t() { assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_sec_params_request_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_sec_params_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).peer_params as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).peer_params as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5467,10 +5226,7 @@ fn bindgen_test_layout_ble_gap_evt_sec_info_request_t() { concat!("Alignment of ", stringify!(ble_gap_evt_sec_info_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).peer_addr as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).peer_addr as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5480,10 +5236,7 @@ fn bindgen_test_layout_ble_gap_evt_sec_info_request_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).master_id as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).master_id as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -5528,13 +5281,8 @@ impl ble_gap_evt_sec_info_request_t { } } #[inline] - pub fn new_bitfield_1( - enc_info: u8, - id_info: u8, - sign_info: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(enc_info: u8, id_info: u8, sign_info: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let enc_info: u8 = unsafe { ::core::mem::transmute(enc_info) }; enc_info as u64 @@ -5571,9 +5319,7 @@ fn bindgen_test_layout_ble_gap_evt_passkey_display_t() { concat!("Alignment of ", stringify!(ble_gap_evt_passkey_display_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).passkey as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).passkey as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5597,8 +5343,7 @@ impl ble_gap_evt_passkey_display_t { } #[inline] pub fn new_bitfield_1(match_request: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let match_request: u8 = unsafe { ::core::mem::transmute(match_request) }; match_request as u64 @@ -5626,9 +5371,7 @@ fn bindgen_test_layout_ble_gap_evt_key_pressed_t() { concat!("Alignment of ", stringify!(ble_gap_evt_key_pressed_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).kp_not as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).kp_not as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5658,10 +5401,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_key_request_t() { concat!("Alignment of ", stringify!(ble_gap_evt_auth_key_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).key_type as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).key_type as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5691,16 +5431,10 @@ fn bindgen_test_layout_ble_gap_evt_lesc_dhkey_request_t() { assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_lesc_dhkey_request_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_lesc_dhkey_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_pk_peer as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).p_pk_peer as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -5724,8 +5458,7 @@ impl ble_gap_evt_lesc_dhkey_request_t { } #[inline] pub fn new_bitfield_1(oobd_req: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let oobd_req: u8 = unsafe { ::core::mem::transmute(oobd_req) }; oobd_req as u64 @@ -5799,14 +5532,8 @@ impl ble_gap_sec_levels_t { } } #[inline] - pub fn new_bitfield_1( - lv1: u8, - lv2: u8, - lv3: u8, - lv4: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(lv1: u8, lv2: u8, lv3: u8, lv4: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let lv1: u8 = unsafe { ::core::mem::transmute(lv1) }; lv1 as u64 @@ -6048,9 +5775,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() { concat!("Alignment of ", stringify!(ble_gap_evt_auth_status_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).auth_status as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).auth_status as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6060,9 +5785,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sm1_levels as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).sm1_levels as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -6072,9 +5795,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sm2_levels as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).sm2_levels as *const _ as usize }, 3usize, concat!( "Offset of field: ", @@ -6084,9 +5805,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).kdist_own as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).kdist_own as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -6096,9 +5815,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).kdist_peer as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).kdist_peer as *const _ as usize }, 5usize, concat!( "Offset of field: ", @@ -6143,13 +5860,8 @@ impl ble_gap_evt_auth_status_t { } } #[inline] - pub fn new_bitfield_1( - error_src: u8, - bonded: u8, - lesc: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(error_src: u8, bonded: u8, lesc: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 2u8, { let error_src: u8 = unsafe { ::core::mem::transmute(error_src) }; error_src as u64 @@ -6185,9 +5897,7 @@ fn bindgen_test_layout_ble_gap_evt_conn_sec_update_t() { concat!("Alignment of ", stringify!(ble_gap_evt_conn_sec_update_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_sec as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_sec as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6249,9 +5959,7 @@ fn bindgen_test_layout_ble_gap_evt_rssi_changed_t() { concat!("Alignment of ", stringify!(ble_gap_evt_rssi_changed_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rssi as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).rssi as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6261,9 +5969,7 @@ fn bindgen_test_layout_ble_gap_evt_rssi_changed_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ch_index as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).ch_index as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -6300,16 +6006,10 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() { assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_adv_set_terminated_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_adv_set_terminated_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).reason as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).reason as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6319,10 +6019,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_handle as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -6333,8 +6030,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).num_completed_adv_events - as *const _ as usize + &(*(::core::ptr::null::())).num_completed_adv_events as *const _ as usize }, 2usize, concat!( @@ -6345,10 +6041,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_data as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_data as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -6423,14 +6116,8 @@ impl ble_gap_evt_sec_request_t { } } #[inline] - pub fn new_bitfield_1( - bond: u8, - mitm: u8, - lesc: u8, - keypress: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(bond: u8, mitm: u8, lesc: u8, keypress: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let bond: u8 = unsafe { ::core::mem::transmute(bond) }; bond as u64 @@ -6475,10 +6162,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() { concat!("Alignment of ", stringify!(ble_gap_evt_scan_req_report_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6488,9 +6172,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rssi as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).rssi as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -6500,10 +6182,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).peer_addr as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).peer_addr as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -6576,9 +6255,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_gap_evt_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).connected as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).connected as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6588,10 +6265,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).disconnected as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).disconnected as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6601,10 +6275,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_param_update as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_param_update as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6614,10 +6285,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sec_params_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).sec_params_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6627,10 +6295,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sec_info_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).sec_info_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6640,10 +6305,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).passkey_display as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).passkey_display as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6653,10 +6315,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).key_pressed as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).key_pressed as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6666,10 +6325,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).auth_key_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).auth_key_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6679,10 +6335,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).lesc_dhkey_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).lesc_dhkey_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6692,10 +6345,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).auth_status as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).auth_status as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6705,10 +6355,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_sec_update as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_sec_update as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6718,9 +6365,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).timeout as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).timeout as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6730,10 +6375,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rssi_changed as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).rssi_changed as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6743,10 +6385,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_set_terminated as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_set_terminated as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6756,10 +6395,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sec_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).sec_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6769,10 +6405,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).scan_req_report as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).scan_req_report as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6782,10 +6415,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).phy_update_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).phy_update_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6795,9 +6425,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).phy_update as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).phy_update as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6832,12 +6460,7 @@ fn bindgen_test_layout_ble_gap_evt_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).params as *const _ as usize }, 4usize, - concat!( - "Offset of field: ", - stringify!(ble_gap_evt_t), - "::", - stringify!(params) - ) + concat!("Offset of field: ", stringify!(ble_gap_evt_t), "::", stringify!(params)) ); } #[doc = " @brief BLE GAP connection configuration parameters, set with @ref sd_ble_cfg_set."] @@ -6882,9 +6505,7 @@ fn bindgen_test_layout_ble_gap_conn_cfg_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).event_length as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).event_length as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -6924,9 +6545,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() { concat!("Alignment of ", stringify!(ble_gap_cfg_role_count_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_set_count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_set_count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6936,10 +6555,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).periph_role_count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).periph_role_count as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -7001,9 +6617,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() { concat!("Alignment of ", stringify!(ble_gap_cfg_device_name_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write_perm as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).write_perm as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7013,9 +6627,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_value as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_value as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -7025,9 +6637,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).current_len as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).current_len as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -7037,9 +6647,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).max_len as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).max_len as *const _ as usize }, 10usize, concat!( "Offset of field: ", @@ -7063,8 +6671,7 @@ impl ble_gap_cfg_device_name_t { } #[inline] pub fn new_bitfield_1(vloc: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 2u8, { let vloc: u8 = unsafe { ::core::mem::transmute(vloc) }; vloc as u64 @@ -7093,10 +6700,7 @@ fn bindgen_test_layout_ble_gap_cfg_ppcp_incl_cfg_t() { concat!("Alignment of ", stringify!(ble_gap_cfg_ppcp_incl_cfg_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).include_cfg as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).include_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7127,9 +6731,7 @@ fn bindgen_test_layout_ble_gap_cfg_car_incl_cfg_t() { concat!("Alignment of ", stringify!(ble_gap_cfg_car_incl_cfg_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).include_cfg as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).include_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7252,9 +6854,7 @@ fn bindgen_test_layout_ble_gap_opt_ch_map_t() { concat!("Alignment of ", stringify!(ble_gap_opt_ch_map_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7315,16 +6915,10 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() { assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(ble_gap_opt_local_conn_latency_t) - ) + concat!("Alignment of ", stringify!(ble_gap_opt_local_conn_latency_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7334,10 +6928,7 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).requested_latency - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).requested_latency as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -7347,10 +6938,7 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_actual_latency - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_actual_latency as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -7389,16 +6977,10 @@ fn bindgen_test_layout_ble_gap_opt_slave_latency_disable_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gap_opt_slave_latency_disable_t) - ) + concat!("Alignment of ", stringify!(ble_gap_opt_slave_latency_disable_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7422,8 +7004,7 @@ impl ble_gap_opt_slave_latency_disable_t { } #[inline] pub fn new_bitfield_1(disable: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let disable: u8 = unsafe { ::core::mem::transmute(disable) }; disable as u64 @@ -7464,9 +7045,7 @@ fn bindgen_test_layout_ble_gap_opt_passkey_t() { concat!("Alignment of ", stringify!(ble_gap_opt_passkey_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_passkey as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_passkey as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7512,16 +7091,10 @@ fn bindgen_test_layout_ble_gap_opt_auth_payload_timeout_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gap_opt_auth_payload_timeout_t) - ) + concat!("Alignment of ", stringify!(ble_gap_opt_auth_payload_timeout_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7532,8 +7105,7 @@ fn bindgen_test_layout_ble_gap_opt_auth_payload_timeout_t() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).auth_payload_timeout - as *const _ as usize + &(*(::core::ptr::null::())).auth_payload_timeout as *const _ as usize }, 2usize, concat!( @@ -7575,17 +7147,10 @@ fn bindgen_test_layout_ble_gap_opt_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).ch_map as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_gap_opt_t), - "::", - stringify!(ch_map) - ) + concat!("Offset of field: ", stringify!(ble_gap_opt_t), "::", stringify!(ch_map)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).local_conn_latency as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).local_conn_latency as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7605,9 +7170,7 @@ fn bindgen_test_layout_ble_gap_opt_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).auth_payload_timeout as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).auth_payload_timeout as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7617,9 +7180,7 @@ fn bindgen_test_layout_ble_gap_opt_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).slave_latency_disable as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).slave_latency_disable as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -8008,10 +7569,7 @@ pub unsafe fn sd_ble_gap_adv_stop(adv_handle: u8) -> u32 { #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."] #[doc = " @retval ::NRF_ERROR_NO_MEM Not enough memory to complete operation."] #[inline(always)] -pub unsafe fn sd_ble_gap_conn_param_update( - conn_handle: u16, - p_conn_params: *const ble_gap_conn_params_t, -) -> u32 { +pub unsafe fn sd_ble_gap_conn_param_update(conn_handle: u16, p_conn_params: *const ble_gap_conn_params_t) -> u32 { let ret: u32; core::arch::asm!("svc 117", inout("r0") to_asm(conn_handle) => ret, @@ -8262,10 +7820,7 @@ pub unsafe fn sd_ble_gap_device_name_get(p_dev_name: *mut u8, p_len: *mut u16) - #[doc = " @retval ::NRF_ERROR_NO_MEM The maximum number of authentication procedures that can run in parallel for the given role is reached."] #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."] #[inline(always)] -pub unsafe fn sd_ble_gap_authenticate( - conn_handle: u16, - p_sec_params: *const ble_gap_sec_params_t, -) -> u32 { +pub unsafe fn sd_ble_gap_authenticate(conn_handle: u16, p_sec_params: *const ble_gap_sec_params_t) -> u32 { let ret: u32; core::arch::asm!("svc 126", inout("r0") to_asm(conn_handle) => ret, @@ -8408,10 +7963,7 @@ pub unsafe fn sd_ble_gap_auth_key_reply(conn_handle: u16, key_type: u8, p_key: * #[doc = " - The application has not pulled a @ref BLE_GAP_EVT_LESC_DHKEY_REQUEST event."] #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."] #[inline(always)] -pub unsafe fn sd_ble_gap_lesc_dhkey_reply( - conn_handle: u16, - p_dhkey: *const ble_gap_lesc_dhkey_t, -) -> u32 { +pub unsafe fn sd_ble_gap_lesc_dhkey_reply(conn_handle: u16, p_dhkey: *const ble_gap_lesc_dhkey_t) -> u32 { let ret: u32; core::arch::asm!("svc 129", inout("r0") to_asm(conn_handle) => ret, @@ -8579,10 +8131,7 @@ pub unsafe fn sd_ble_gap_sec_info_reply( #[doc = " @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied."] #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."] #[inline(always)] -pub unsafe fn sd_ble_gap_conn_sec_get( - conn_handle: u16, - p_conn_sec: *mut ble_gap_conn_sec_t, -) -> u32 { +pub unsafe fn sd_ble_gap_conn_sec_get(conn_handle: u16, p_conn_sec: *mut ble_gap_conn_sec_t) -> u32 { let ret: u32; core::arch::asm!("svc 135", inout("r0") to_asm(conn_handle) => ret, @@ -8853,10 +8402,7 @@ fn bindgen_test_layout_ble_gattc_conn_cfg_t() { concat!("Alignment of ", stringify!(ble_gattc_conn_cfg_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write_cmd_tx_queue_size as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).write_cmd_tx_queue_size as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -8888,9 +8434,7 @@ fn bindgen_test_layout_ble_gattc_handle_range_t() { concat!("Alignment of ", stringify!(ble_gattc_handle_range_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).start_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).start_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -8900,9 +8444,7 @@ fn bindgen_test_layout_ble_gattc_handle_range_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).end_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).end_handle as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -8944,9 +8486,7 @@ fn bindgen_test_layout_ble_gattc_service_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle_range as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle_range as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -8988,9 +8528,7 @@ fn bindgen_test_layout_ble_gattc_include_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).included_srvc as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).included_srvc as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9081,8 +8619,7 @@ impl ble_gattc_char_t { } #[inline] pub fn new_bitfield_1(char_ext_props: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let char_ext_props: u8 = unsafe { ::core::mem::transmute(char_ext_props) }; char_ext_props as u64 @@ -9162,9 +8699,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() { concat!("Alignment of ", stringify!(ble_gattc_write_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write_op as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).write_op as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9184,9 +8719,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9196,9 +8729,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).offset as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).offset as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -9218,9 +8749,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_value as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_value as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -9294,9 +8823,7 @@ fn bindgen_test_layout_ble_gattc_attr_info128_t() { concat!("Alignment of ", stringify!(ble_gattc_attr_info128_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9336,16 +8863,10 @@ fn bindgen_test_layout_ble_gattc_evt_prim_srvc_disc_rsp_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_prim_srvc_disc_rsp_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_prim_srvc_disc_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9355,10 +8876,7 @@ fn bindgen_test_layout_ble_gattc_evt_prim_srvc_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).services as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).services as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9391,9 +8909,7 @@ fn bindgen_test_layout_ble_gattc_evt_rel_disc_rsp_t() { concat!("Alignment of ", stringify!(ble_gattc_evt_rel_disc_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9403,9 +8919,7 @@ fn bindgen_test_layout_ble_gattc_evt_rel_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).includes as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).includes as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9438,9 +8952,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_disc_rsp_t() { concat!("Alignment of ", stringify!(ble_gattc_evt_char_disc_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9450,9 +8962,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).chars as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).chars as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9485,9 +8995,7 @@ fn bindgen_test_layout_ble_gattc_evt_desc_disc_rsp_t() { concat!("Alignment of ", stringify!(ble_gattc_evt_desc_disc_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9497,9 +9005,7 @@ fn bindgen_test_layout_ble_gattc_evt_desc_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).descs as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).descs as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9551,8 +9057,8 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())) - .attr_info16 as *const _ as usize + &(*(::core::ptr::null::())).attr_info16 as *const _ + as usize }, 0usize, concat!( @@ -9564,8 +9070,8 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())) - .attr_info128 as *const _ as usize + &(*(::core::ptr::null::())).attr_info128 as *const _ + as usize }, 0usize, concat!( @@ -9586,16 +9092,10 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_attr_info_disc_rsp_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_attr_info_disc_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9605,10 +9105,7 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).format as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).format as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9618,10 +9115,7 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).info as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).info as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -9653,9 +9147,7 @@ fn bindgen_test_layout_ble_gattc_handle_value_t() { concat!("Alignment of ", stringify!(ble_gattc_handle_value_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9665,9 +9157,7 @@ fn bindgen_test_layout_ble_gattc_handle_value_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_value as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_value as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -9695,24 +9185,15 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() { assert_eq!( ::core::mem::size_of::(), 4usize, - concat!( - "Size of: ", - stringify!(ble_gattc_evt_char_val_by_uuid_read_rsp_t) - ) + concat!("Size of: ", stringify!(ble_gattc_evt_char_val_by_uuid_read_rsp_t)) ); assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_char_val_by_uuid_read_rsp_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_char_val_by_uuid_read_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9723,8 +9204,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).value_len - as *const _ as usize + &(*(::core::ptr::null::())).value_len as *const _ as usize }, 2usize, concat!( @@ -9736,8 +9216,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).handle_value - as *const _ as usize + &(*(::core::ptr::null::())).handle_value as *const _ as usize }, 4usize, concat!( @@ -9775,9 +9254,7 @@ fn bindgen_test_layout_ble_gattc_evt_read_rsp_t() { concat!("Alignment of ", stringify!(ble_gattc_evt_read_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9787,9 +9264,7 @@ fn bindgen_test_layout_ble_gattc_evt_read_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).offset as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).offset as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9839,15 +9314,10 @@ fn bindgen_test_layout_ble_gattc_evt_char_vals_read_rsp_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_char_vals_read_rsp_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_char_vals_read_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).len as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).len as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9857,10 +9327,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_vals_read_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).values as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).values as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9899,9 +9366,7 @@ fn bindgen_test_layout_ble_gattc_evt_write_rsp_t() { concat!("Alignment of ", stringify!(ble_gattc_evt_write_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -9911,9 +9376,7 @@ fn bindgen_test_layout_ble_gattc_evt_write_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write_op as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).write_op as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -9923,9 +9386,7 @@ fn bindgen_test_layout_ble_gattc_evt_write_rsp_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).offset as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).offset as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -10039,16 +9500,10 @@ fn bindgen_test_layout_ble_gattc_evt_exchange_mtu_rsp_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_exchange_mtu_rsp_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_exchange_mtu_rsp_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).server_rx_mtu as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).server_rx_mtu as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10100,24 +9555,15 @@ fn bindgen_test_layout_ble_gattc_evt_write_cmd_tx_complete_t() { assert_eq!( ::core::mem::size_of::(), 1usize, - concat!( - "Size of: ", - stringify!(ble_gattc_evt_write_cmd_tx_complete_t) - ) + concat!("Size of: ", stringify!(ble_gattc_evt_write_cmd_tx_complete_t)) ); assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gattc_evt_write_cmd_tx_complete_t) - ) + concat!("Alignment of ", stringify!(ble_gattc_evt_write_cmd_tx_complete_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10182,10 +9628,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_gattc_evt_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).prim_srvc_disc_rsp - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).prim_srvc_disc_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10195,10 +9638,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rel_disc_rsp as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).rel_disc_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10208,10 +9648,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).char_disc_rsp as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).char_disc_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10221,10 +9658,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).desc_disc_rsp as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).desc_disc_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10235,8 +9669,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).char_val_by_uuid_read_rsp - as *const _ as usize + &(*(::core::ptr::null::())).char_val_by_uuid_read_rsp as *const _ as usize }, 0usize, concat!( @@ -10247,9 +9680,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).read_rsp as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).read_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10259,10 +9690,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).char_vals_read_rsp - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).char_vals_read_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10272,10 +9700,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write_rsp as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).write_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10285,9 +9710,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hvx as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hvx as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10297,10 +9720,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).exchange_mtu_rsp as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).exchange_mtu_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10310,9 +9730,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).timeout as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).timeout as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10322,10 +9740,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).attr_info_disc_rsp - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).attr_info_disc_rsp as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -10336,8 +9751,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).write_cmd_tx_complete - as *const _ as usize + &(*(::core::ptr::null::())).write_cmd_tx_complete as *const _ as usize }, 0usize, concat!( @@ -10662,11 +10076,7 @@ pub unsafe fn sd_ble_gattc_read(conn_handle: u16, handle: u16, offset: u16) -> u #[doc = " @retval ::NRF_ERROR_BUSY Client procedure already in progress."] #[doc = " @retval ::NRF_ERROR_TIMEOUT There has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection."] #[inline(always)] -pub unsafe fn sd_ble_gattc_char_values_read( - conn_handle: u16, - p_handles: *const u16, - handle_count: u16, -) -> u32 { +pub unsafe fn sd_ble_gattc_char_values_read(conn_handle: u16, p_handles: *const u16, handle_count: u16) -> u32 { let ret: u32; core::arch::asm!("svc 162", inout("r0") to_asm(conn_handle) => ret, @@ -10722,10 +10132,7 @@ pub unsafe fn sd_ble_gattc_char_values_read( #[doc = " Wait for a @ref BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE event and retry."] #[doc = " @retval ::NRF_ERROR_TIMEOUT There has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection."] #[inline(always)] -pub unsafe fn sd_ble_gattc_write( - conn_handle: u16, - p_write_params: *const ble_gattc_write_params_t, -) -> u32 { +pub unsafe fn sd_ble_gattc_write(conn_handle: u16, p_write_params: *const ble_gattc_write_params_t) -> u32 { let ret: u32; core::arch::asm!("svc 163", inout("r0") to_asm(conn_handle) => ret, @@ -10915,9 +10322,7 @@ fn bindgen_test_layout_ble_gatts_conn_cfg_t() { concat!("Alignment of ", stringify!(ble_gatts_conn_cfg_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hvn_tx_queue_size as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hvn_tx_queue_size as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11016,14 +10421,8 @@ impl ble_gatts_attr_md_t { } } #[inline] - pub fn new_bitfield_1( - vlen: u8, - vloc: u8, - rd_auth: u8, - wr_auth: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(vlen: u8, vloc: u8, rd_auth: u8, wr_auth: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let vlen: u8 = unsafe { ::core::mem::transmute(vlen) }; vlen as u64 @@ -11315,9 +10714,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).char_ext_props as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).char_ext_props as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -11327,9 +10724,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_char_user_desc as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_char_user_desc as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -11339,10 +10734,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).char_user_desc_max_size as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).char_user_desc_max_size as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -11352,10 +10744,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).char_user_desc_size as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).char_user_desc_size as *const _ as usize }, 10usize, concat!( "Offset of field: ", @@ -11375,9 +10764,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_user_desc_md as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_user_desc_md as *const _ as usize }, 16usize, concat!( "Offset of field: ", @@ -11433,9 +10820,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() { concat!("Alignment of ", stringify!(ble_gatts_char_handles_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).value_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).value_handle as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11445,10 +10830,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).user_desc_handle as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).user_desc_handle as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -11458,9 +10840,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).cccd_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).cccd_handle as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -11470,9 +10850,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sccd_handle as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).sccd_handle as *const _ as usize }, 6usize, concat!( "Offset of field: ", @@ -11587,10 +10965,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() { concat!("Alignment of ", stringify!(ble_gatts_authorize_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gatt_status as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).gatt_status as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11600,9 +10975,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).offset as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).offset as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -11612,9 +10985,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).len as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).len as *const _ as usize }, 6usize, concat!( "Offset of field: ", @@ -11624,9 +10995,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).p_data as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).p_data as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -11650,8 +11019,7 @@ impl ble_gatts_authorize_params_t { } #[inline] pub fn new_bitfield_1(update: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let update: u8 = unsafe { ::core::mem::transmute(update) }; update as u64 @@ -11697,8 +11065,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).read - as *const _ as usize + &(*(::core::ptr::null::())).read as *const _ as usize }, 0usize, concat!( @@ -11710,8 +11077,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).write - as *const _ as usize + &(*(::core::ptr::null::())).write as *const _ as usize }, 0usize, concat!( @@ -11727,24 +11093,15 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t() { assert_eq!( ::core::mem::size_of::(), 16usize, - concat!( - "Size of: ", - stringify!(ble_gatts_rw_authorize_reply_params_t) - ) + concat!("Size of: ", stringify!(ble_gatts_rw_authorize_reply_params_t)) ); assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(ble_gatts_rw_authorize_reply_params_t) - ) + concat!("Alignment of ", stringify!(ble_gatts_rw_authorize_reply_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).type_ as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11754,10 +11111,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).params as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).params as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -11800,8 +11154,7 @@ impl ble_gatts_cfg_service_changed_t { } #[inline] pub fn new_bitfield_1(service_changed: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let service_changed: u8 = unsafe { ::core::mem::transmute(service_changed) }; service_changed as u64 @@ -11834,10 +11187,7 @@ fn bindgen_test_layout_ble_gatts_cfg_attr_tab_size_t() { concat!("Alignment of ", stringify!(ble_gatts_cfg_attr_tab_size_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).attr_tab_size as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).attr_tab_size as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11870,9 +11220,7 @@ fn bindgen_test_layout_ble_gatts_cfg_t() { concat!("Alignment of ", stringify!(ble_gatts_cfg_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).service_changed as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).service_changed as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -11955,9 +11303,7 @@ fn bindgen_test_layout_ble_gatts_evt_write_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).auth_required as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).auth_required as *const _ as usize }, 7usize, concat!( "Offset of field: ", @@ -12087,8 +11433,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).read - as *const _ as usize + &(*(::core::ptr::null::())).read as *const _ as usize }, 0usize, concat!( @@ -12100,8 +11445,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).write - as *const _ as usize + &(*(::core::ptr::null::())).write as *const _ as usize }, 0usize, concat!( @@ -12117,24 +11461,15 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t() { assert_eq!( ::core::mem::size_of::(), 14usize, - concat!( - "Size of: ", - stringify!(ble_gatts_evt_rw_authorize_request_t) - ) + concat!("Size of: ", stringify!(ble_gatts_evt_rw_authorize_request_t)) ); assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gatts_evt_rw_authorize_request_t) - ) + concat!("Alignment of ", stringify!(ble_gatts_evt_rw_authorize_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).type_ as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12144,10 +11479,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).request as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -12174,15 +11506,10 @@ fn bindgen_test_layout_ble_gatts_evt_sys_attr_missing_t() { assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gatts_evt_sys_attr_missing_t) - ) + concat!("Alignment of ", stringify!(ble_gatts_evt_sys_attr_missing_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hint as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hint as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12234,24 +11561,15 @@ fn bindgen_test_layout_ble_gatts_evt_exchange_mtu_request_t() { assert_eq!( ::core::mem::size_of::(), 2usize, - concat!( - "Size of: ", - stringify!(ble_gatts_evt_exchange_mtu_request_t) - ) + concat!("Size of: ", stringify!(ble_gatts_evt_exchange_mtu_request_t)) ); assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gatts_evt_exchange_mtu_request_t) - ) + concat!("Alignment of ", stringify!(ble_gatts_evt_exchange_mtu_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).client_rx_mtu - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).client_rx_mtu as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12311,9 +11629,7 @@ fn bindgen_test_layout_ble_gatts_evt_hvn_tx_complete_t() { concat!("Alignment of ", stringify!(ble_gatts_evt_hvn_tx_complete_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12362,9 +11678,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_gatts_evt_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).write as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).write as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12374,10 +11688,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).authorize_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).authorize_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12387,10 +11698,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).sys_attr_missing as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).sys_attr_missing as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12400,9 +11708,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hvc as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).hvc as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12412,10 +11718,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).exchange_mtu_request - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).exchange_mtu_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12425,9 +11728,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).timeout as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).timeout as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12437,10 +11738,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hvn_tx_complete as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).hvn_tx_complete as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -12503,11 +11801,7 @@ fn bindgen_test_layout_ble_gatts_evt_t() { #[doc = " @retval ::NRF_ERROR_FORBIDDEN Forbidden value supplied, certain UUIDs are reserved for the stack."] #[doc = " @retval ::NRF_ERROR_NO_MEM Not enough memory to complete operation."] #[inline(always)] -pub unsafe fn sd_ble_gatts_service_add( - type_: u8, - p_uuid: *const ble_uuid_t, - p_handle: *mut u16, -) -> u32 { +pub unsafe fn sd_ble_gatts_service_add(type_: u8, p_uuid: *const ble_uuid_t, p_handle: *mut u16) -> u32 { let ret: u32; core::arch::asm!("svc 168", inout("r0") to_asm(type_) => ret, @@ -12542,11 +11836,7 @@ pub unsafe fn sd_ble_gatts_service_add( #[doc = " @retval ::NRF_ERROR_NO_MEM Not enough memory to complete operation."] #[doc = " @retval ::NRF_ERROR_NOT_FOUND Attribute not found."] #[inline(always)] -pub unsafe fn sd_ble_gatts_include_add( - service_handle: u16, - inc_srvc_handle: u16, - p_include_handle: *mut u16, -) -> u32 { +pub unsafe fn sd_ble_gatts_include_add(service_handle: u16, inc_srvc_handle: u16, p_include_handle: *mut u16) -> u32 { let ret: u32; core::arch::asm!("svc 169", inout("r0") to_asm(service_handle) => ret, @@ -12658,11 +11948,7 @@ pub unsafe fn sd_ble_gatts_descriptor_add( #[doc = " @retval ::NRF_ERROR_DATA_SIZE Invalid data size(s) supplied, attribute lengths are restricted by @ref BLE_GATTS_ATTR_LENS_MAX."] #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied on a system attribute."] #[inline(always)] -pub unsafe fn sd_ble_gatts_value_set( - conn_handle: u16, - handle: u16, - p_value: *mut ble_gatts_value_t, -) -> u32 { +pub unsafe fn sd_ble_gatts_value_set(conn_handle: u16, handle: u16, p_value: *mut ble_gatts_value_t) -> u32 { let ret: u32; core::arch::asm!("svc 172", inout("r0") to_asm(conn_handle) => ret, @@ -12696,11 +11982,7 @@ pub unsafe fn sd_ble_gatts_value_set( #[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied on a system attribute."] #[doc = " @retval ::BLE_ERROR_GATTS_SYS_ATTR_MISSING System attributes missing, use @ref sd_ble_gatts_sys_attr_set to set them to a known value."] #[inline(always)] -pub unsafe fn sd_ble_gatts_value_get( - conn_handle: u16, - handle: u16, - p_value: *mut ble_gatts_value_t, -) -> u32 { +pub unsafe fn sd_ble_gatts_value_get(conn_handle: u16, handle: u16, p_value: *mut ble_gatts_value_t) -> u32 { let ret: u32; core::arch::asm!("svc 173", inout("r0") to_asm(conn_handle) => ret, @@ -12775,10 +12057,7 @@ pub unsafe fn sd_ble_gatts_value_get( #[doc = " Wait for a @ref BLE_GATTS_EVT_HVN_TX_COMPLETE event and retry."] #[doc = " @retval ::NRF_ERROR_TIMEOUT There has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection."] #[inline(always)] -pub unsafe fn sd_ble_gatts_hvx( - conn_handle: u16, - p_hvx_params: *const ble_gatts_hvx_params_t, -) -> u32 { +pub unsafe fn sd_ble_gatts_hvx(conn_handle: u16, p_hvx_params: *const ble_gatts_hvx_params_t) -> u32 { let ret: u32; core::arch::asm!("svc 174", inout("r0") to_asm(conn_handle) => ret, @@ -12824,11 +12103,7 @@ pub unsafe fn sd_ble_gatts_hvx( #[doc = " @retval ::BLE_ERROR_GATTS_SYS_ATTR_MISSING System attributes missing, use @ref sd_ble_gatts_sys_attr_set to set them to a known value."] #[doc = " @retval ::NRF_ERROR_TIMEOUT There has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection."] #[inline(always)] -pub unsafe fn sd_ble_gatts_service_changed( - conn_handle: u16, - start_handle: u16, - end_handle: u16, -) -> u32 { +pub unsafe fn sd_ble_gatts_service_changed(conn_handle: u16, start_handle: u16, end_handle: u16) -> u32 { let ret: u32; core::arch::asm!("svc 175", inout("r0") to_asm(conn_handle) => ret, @@ -12927,12 +12202,7 @@ pub unsafe fn sd_ble_gatts_rw_authorize_reply( #[doc = " @retval ::NRF_ERROR_INVALID_DATA Invalid data supplied, the data should be exactly the same as retrieved with @ref sd_ble_gatts_sys_attr_get."] #[doc = " @retval ::NRF_ERROR_NO_MEM Not enough memory to complete operation."] #[inline(always)] -pub unsafe fn sd_ble_gatts_sys_attr_set( - conn_handle: u16, - p_sys_attr_data: *const u8, - len: u16, - flags: u32, -) -> u32 { +pub unsafe fn sd_ble_gatts_sys_attr_set(conn_handle: u16, p_sys_attr_data: *const u8, len: u16, flags: u32) -> u32 { let ret: u32; core::arch::asm!("svc 177", inout("r0") to_asm(conn_handle) => ret, @@ -13021,11 +12291,7 @@ pub unsafe fn sd_ble_gatts_initial_user_handle_get(p_handle: *mut u16) -> u32 { #[doc = " @retval ::NRF_ERROR_INVALID_PARAM Invalid parameters supplied. Returned when both @c p_uuid and @c p_md are NULL."] #[doc = " @retval ::NRF_ERROR_NOT_FOUND Attribute was not found."] #[inline(always)] -pub unsafe fn sd_ble_gatts_attr_get( - handle: u16, - p_uuid: *mut ble_uuid_t, - p_md: *mut ble_gatts_attr_md_t, -) -> u32 { +pub unsafe fn sd_ble_gatts_attr_get(handle: u16, p_uuid: *mut ble_uuid_t, p_md: *mut ble_gatts_attr_md_t) -> u32 { let ret: u32; core::arch::asm!("svc 180", inout("r0") to_asm(handle) => ret, @@ -13196,9 +12462,7 @@ fn bindgen_test_layout_ble_evt_user_mem_request_t() { concat!("Alignment of ", stringify!(ble_evt_user_mem_request_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).type_ as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13230,9 +12494,7 @@ fn bindgen_test_layout_ble_evt_user_mem_release_t() { concat!("Alignment of ", stringify!(ble_evt_user_mem_release_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).type_ as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13242,9 +12504,7 @@ fn bindgen_test_layout_ble_evt_user_mem_release_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mem_block as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).mem_block as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -13285,10 +12545,7 @@ fn bindgen_test_layout_ble_common_evt_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_common_evt_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).user_mem_request as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).user_mem_request as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13298,10 +12555,7 @@ fn bindgen_test_layout_ble_common_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).user_mem_release as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).user_mem_release as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13368,12 +12622,7 @@ fn bindgen_test_layout_ble_evt_hdr_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).evt_id as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_evt_hdr_t), - "::", - stringify!(evt_id) - ) + concat!("Offset of field: ", stringify!(ble_evt_hdr_t), "::", stringify!(evt_id)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).evt_len as *const _ as usize }, @@ -13419,9 +12668,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_evt_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).common_evt as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).common_evt as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13431,9 +12678,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gap_evt as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).gap_evt as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13443,9 +12688,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gattc_evt as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).gattc_evt as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13455,9 +12698,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gatts_evt as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).gatts_evt as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13482,22 +12723,12 @@ fn bindgen_test_layout_ble_evt_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).header as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_evt_t), - "::", - stringify!(header) - ) + concat!("Offset of field: ", stringify!(ble_evt_t), "::", stringify!(header)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).evt as *const _ as usize }, 4usize, - concat!( - "Offset of field: ", - stringify!(ble_evt_t), - "::", - stringify!(evt) - ) + concat!("Offset of field: ", stringify!(ble_evt_t), "::", stringify!(evt)) ); } #[doc = " @brief Version Information."] @@ -13544,9 +12775,7 @@ fn bindgen_test_layout_ble_version_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).subversion_number as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).subversion_number as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -13610,13 +12839,8 @@ impl ble_pa_lna_cfg_t { } } #[inline] - pub fn new_bitfield_1( - enable: u8, - active_high: u8, - gpio_pin: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(enable: u8, active_high: u8, gpio_pin: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let enable: u8 = unsafe { ::core::mem::transmute(enable) }; enable as u64 @@ -13680,9 +12904,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).lna_cfg as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).lna_cfg as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -13692,9 +12914,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ppi_ch_id_set as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).ppi_ch_id_set as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -13704,9 +12924,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ppi_ch_id_clr as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).ppi_ch_id_clr as *const _ as usize }, 3usize, concat!( "Offset of field: ", @@ -13716,9 +12934,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gpiote_ch_id as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).gpiote_ch_id as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -13769,8 +12985,7 @@ impl ble_common_opt_conn_evt_ext_t { } #[inline] pub fn new_bitfield_1(enable: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let enable: u8 = unsafe { ::core::mem::transmute(enable) }; enable as u64 @@ -13806,10 +13021,7 @@ fn bindgen_test_layout_ble_common_opt_extended_rc_cal_t() { assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_common_opt_extended_rc_cal_t) - ) + concat!("Alignment of ", stringify!(ble_common_opt_extended_rc_cal_t)) ); } impl ble_common_opt_extended_rc_cal_t { @@ -13826,8 +13038,7 @@ impl ble_common_opt_extended_rc_cal_t { } #[inline] pub fn new_bitfield_1(enable: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let enable: u8 = unsafe { ::core::mem::transmute(enable) }; enable as u64 @@ -13880,9 +13091,7 @@ fn bindgen_test_layout_ble_common_opt_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).extended_rc_cal as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).extended_rc_cal as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -13917,22 +13126,12 @@ fn bindgen_test_layout_ble_opt_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).common_opt as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_opt_t), - "::", - stringify!(common_opt) - ) + concat!("Offset of field: ", stringify!(ble_opt_t), "::", stringify!(common_opt)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).gap_opt as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_opt_t), - "::", - stringify!(gap_opt) - ) + concat!("Offset of field: ", stringify!(ble_opt_t), "::", stringify!(gap_opt)) ); } #[doc = "@brief BLE connection configuration type, wrapping the module specific configurations, set with"] @@ -13987,10 +13186,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() { concat!("Alignment of ", stringify!(ble_conn_cfg_t__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gap_conn_cfg as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).gap_conn_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -14000,10 +13196,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gattc_conn_cfg as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).gattc_conn_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -14013,10 +13206,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gatts_conn_cfg as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).gatts_conn_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -14026,10 +13216,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gatt_conn_cfg as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).gatt_conn_cfg as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -14096,9 +13283,7 @@ fn bindgen_test_layout_ble_common_cfg_vs_uuid_t() { concat!("Alignment of ", stringify!(ble_common_cfg_vs_uuid_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).vs_uuid_count as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).vs_uuid_count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -14168,42 +13353,22 @@ fn bindgen_test_layout_ble_cfg_t() { assert_eq!( unsafe { &(*(::core::ptr::null::())).conn_cfg as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_cfg_t), - "::", - stringify!(conn_cfg) - ) + concat!("Offset of field: ", stringify!(ble_cfg_t), "::", stringify!(conn_cfg)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).common_cfg as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_cfg_t), - "::", - stringify!(common_cfg) - ) + concat!("Offset of field: ", stringify!(ble_cfg_t), "::", stringify!(common_cfg)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).gap_cfg as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_cfg_t), - "::", - stringify!(gap_cfg) - ) + concat!("Offset of field: ", stringify!(ble_cfg_t), "::", stringify!(gap_cfg)) ); assert_eq!( unsafe { &(*(::core::ptr::null::())).gatts_cfg as *const _ as usize }, 0usize, - concat!( - "Offset of field: ", - stringify!(ble_cfg_t), - "::", - stringify!(gatts_cfg) - ) + concat!("Offset of field: ", stringify!(ble_cfg_t), "::", stringify!(gatts_cfg)) ); } @@ -14431,11 +13596,7 @@ pub unsafe fn sd_ble_uuid_vs_remove(p_uuid_type: *mut u8) -> u32 { #[doc = " @retval ::NRF_ERROR_INVALID_LENGTH Invalid UUID length."] #[doc = " @retval ::NRF_ERROR_NOT_FOUND For a 128-bit UUID, no match in the populated table of UUIDs."] #[inline(always)] -pub unsafe fn sd_ble_uuid_decode( - uuid_le_len: u8, - p_uuid_le: *const u8, - p_uuid: *mut ble_uuid_t, -) -> u32 { +pub unsafe fn sd_ble_uuid_decode(uuid_le_len: u8, p_uuid_le: *const u8, p_uuid: *mut ble_uuid_t) -> u32 { let ret: u32; core::arch::asm!("svc 99", inout("r0") to_asm(uuid_le_len) => ret, @@ -14459,11 +13620,7 @@ pub unsafe fn sd_ble_uuid_decode( #[doc = " @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied."] #[doc = " @retval ::NRF_ERROR_INVALID_PARAM Invalid UUID type."] #[inline(always)] -pub unsafe fn sd_ble_uuid_encode( - p_uuid: *const ble_uuid_t, - p_uuid_le_len: *mut u8, - p_uuid_le: *mut u8, -) -> u32 { +pub unsafe fn sd_ble_uuid_encode(p_uuid: *const ble_uuid_t, p_uuid_le_len: *mut u8, p_uuid_le: *mut u8) -> u32 { let ret: u32; core::arch::asm!("svc 100", inout("r0") to_asm(p_uuid) => ret, -- cgit v1.2.3