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-s122/src/bindings.rs | 1574 ++++++++--------------------------- 1 file changed, 366 insertions(+), 1208 deletions(-) (limited to 'nrf-softdevice-s122') diff --git a/nrf-softdevice-s122/src/bindings.rs b/nrf-softdevice-s122/src/bindings.rs index 44aa2cd..8cd4d02 100644 --- a/nrf-softdevice-s122/src/bindings.rs +++ b/nrf-softdevice-s122/src/bindings.rs @@ -922,79 +922,61 @@ 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_200US: - NRF_RADIO_NOTIFICATION_DISTANCES = 1; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_200US: 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_420US: - NRF_RADIO_NOTIFICATION_DISTANCES = 2; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_420US: 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_800US: - NRF_RADIO_NOTIFICATION_DISTANCES = 3; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_800US: 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_1740US: - NRF_RADIO_NOTIFICATION_DISTANCES = 4; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_1740US: 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_2680US: - NRF_RADIO_NOTIFICATION_DISTANCES = 5; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_2680US: 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_3620US: - NRF_RADIO_NOTIFICATION_DISTANCES = 6; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_3620US: NRF_RADIO_NOTIFICATION_DISTANCES = 6; #[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 = 7; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_4560US: NRF_RADIO_NOTIFICATION_DISTANCES = 7; #[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 = 8; +pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_5500US: NRF_RADIO_NOTIFICATION_DISTANCES = 8; #[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; @@ -1087,9 +1069,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: ", @@ -1099,9 +1079,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: ", @@ -1111,9 +1089,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: ", @@ -1123,10 +1099,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: ", @@ -1162,9 +1135,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: ", @@ -1174,9 +1145,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: ", @@ -1186,9 +1155,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: ", @@ -1198,9 +1165,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: ", @@ -1238,16 +1203,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: ", @@ -1257,10 +1216,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: ", @@ -1283,9 +1239,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: ", @@ -1332,8 +1286,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: ", @@ -1341,8 +1294,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 ", @@ -1351,10 +1303,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!( @@ -1374,8 +1324,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: ", @@ -1383,8 +1332,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 ", @@ -1393,10 +1341,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!( @@ -1427,8 +1373,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!( @@ -1440,8 +1386,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!( @@ -1457,23 +1403,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!( @@ -1484,10 +1423,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: ", @@ -1508,9 +1444,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]; @@ -1604,9 +1539,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: ", @@ -1616,9 +1549,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: ", @@ -2415,10 +2346,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, @@ -2775,9 +2703,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: ", @@ -2816,8 +2742,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 = ""] @@ -2980,22 +2905,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."] @@ -3022,22 +2937,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."] @@ -3184,8 +3089,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 @@ -3261,8 +3165,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 @@ -3455,9 +3358,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: ", @@ -3467,9 +3368,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: ", @@ -3511,24 +3410,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: ", @@ -3555,24 +3445,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: ", @@ -3623,9 +3504,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: ", @@ -3635,9 +3514,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: ", @@ -3647,9 +3524,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: ", @@ -3659,10 +3534,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: ", @@ -3673,8 +3545,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!( @@ -4023,8 +3894,7 @@ impl ble_gap_adv_report_type_t { status: u16, reserved: u16, ) -> __BindgenBitfieldUnit<[u8; 2usize], u16> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let connectable: u16 = unsafe { ::core::mem::transmute(connectable) }; connectable as u64 @@ -4078,9 +3948,7 @@ fn bindgen_test_layout_ble_gap_aux_pointer_t() { concat!("Alignment of ", stringify!(ble_gap_aux_pointer_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).aux_offset as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).aux_offset as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -4123,12 +3991,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 { @@ -4155,12 +4018,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 @@ -4207,10 +4066,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: ", @@ -4220,10 +4076,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: ", @@ -4233,9 +4086,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: ", @@ -4245,9 +4096,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: ", @@ -4309,8 +4158,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 @@ -4354,9 +4202,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: ", @@ -4388,12 +4234,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)."] @@ -4440,9 +4281,7 @@ fn bindgen_test_layout_ble_gap_scan_params_t() { concat!("Alignment of ", stringify!(ble_gap_scan_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).scan_phys as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).scan_phys as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -4452,9 +4291,7 @@ fn bindgen_test_layout_ble_gap_scan_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).interval_us as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).interval_us as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -4464,9 +4301,7 @@ fn bindgen_test_layout_ble_gap_scan_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).window_us as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).window_us as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -4486,9 +4321,7 @@ fn bindgen_test_layout_ble_gap_scan_params_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).channel_mask as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).channel_mask as *const _ as usize }, 14usize, concat!( "Offset of field: ", @@ -4550,15 +4383,13 @@ impl ble_gap_scan_params_t { active: u8, filter_policy: 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 extended: u8 = unsafe { ::core::mem::transmute(extended) }; extended as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { - let report_incomplete_evts: u8 = - unsafe { ::core::mem::transmute(report_incomplete_evts) }; + let report_incomplete_evts: u8 = unsafe { ::core::mem::transmute(report_incomplete_evts) }; report_incomplete_evts as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { @@ -4615,9 +4446,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: ", @@ -4627,10 +4456,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: ", @@ -4640,10 +4466,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: ", @@ -4653,9 +4476,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: ", @@ -4778,14 +4599,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 @@ -4832,9 +4647,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: ", @@ -4844,9 +4657,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: ", @@ -4866,9 +4677,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: ", @@ -4954,8 +4763,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 @@ -5049,13 +4857,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 @@ -5282,9 +5085,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: ", @@ -5304,9 +5105,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: ", @@ -5336,9 +5135,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: ", @@ -5368,10 +5165,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: ", @@ -5398,15 +5192,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!( @@ -5441,9 +5231,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: ", @@ -5453,9 +5241,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: ", @@ -5465,9 +5251,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: ", @@ -5494,16 +5278,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: ", @@ -5534,9 +5312,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: ", @@ -5560,8 +5336,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 @@ -5589,9 +5364,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: ", @@ -5621,10 +5394,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: ", @@ -5654,16 +5424,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: ", @@ -5687,8 +5451,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 @@ -5762,14 +5525,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 @@ -6011,9 +5768,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: ", @@ -6023,9 +5778,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: ", @@ -6035,9 +5788,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: ", @@ -6047,9 +5798,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: ", @@ -6059,9 +5808,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: ", @@ -6106,13 +5853,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 @@ -6148,9 +5890,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: ", @@ -6187,15 +5927,11 @@ fn bindgen_test_layout_ble_gap_evt_timeout_t__bindgen_ty_1() { assert_eq!( ::core::mem::align_of::(), 4usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_timeout_t__bindgen_ty_1) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_timeout_t__bindgen_ty_1)) ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).adv_report_buffer - as *const _ as usize + &(*(::core::ptr::null::())).adv_report_buffer as *const _ as usize }, 0usize, concat!( @@ -6262,9 +5998,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: ", @@ -6274,9 +6008,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: ", @@ -6355,9 +6087,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_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: ", @@ -6367,9 +6097,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).direct_addr as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).direct_addr as *const _ as usize }, 9usize, concat!( "Offset of field: ", @@ -6379,9 +6107,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).primary_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).primary_phy as *const _ as usize }, 16usize, concat!( "Offset of field: ", @@ -6391,9 +6117,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).secondary_phy as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).secondary_phy as *const _ as usize }, 17usize, concat!( "Offset of field: ", @@ -6403,9 +6127,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).tx_power as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).tx_power as *const _ as usize }, 18usize, concat!( "Offset of field: ", @@ -6425,9 +6147,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ch_index as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).ch_index as *const _ as usize }, 20usize, concat!( "Offset of field: ", @@ -6437,9 +6157,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).set_id as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).set_id as *const _ as usize }, 21usize, concat!( "Offset of field: ", @@ -6459,9 +6177,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).aux_pointer as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).aux_pointer as *const _ as usize }, 32usize, concat!( "Offset of field: ", @@ -6485,8 +6201,7 @@ impl ble_gap_evt_adv_report_t { } #[inline] pub fn new_bitfield_1(data_id: u16) -> __BindgenBitfieldUnit<[u8; 2usize], u16> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> = - Default::default(); + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { let data_id: u16 = unsafe { ::core::mem::transmute(data_id) }; data_id as u64 @@ -6559,14 +6274,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 @@ -6598,23 +6307,16 @@ fn bindgen_test_layout_ble_gap_evt_conn_param_update_request_t() { assert_eq!( ::core::mem::size_of::(), 8usize, - concat!( - "Size of: ", - stringify!(ble_gap_evt_conn_param_update_request_t) - ) + concat!("Size of: ", stringify!(ble_gap_evt_conn_param_update_request_t)) ); assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_conn_param_update_request_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_conn_param_update_request_t)) ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).conn_params - as *const _ as usize + &(*(::core::ptr::null::())).conn_params as *const _ as usize }, 0usize, concat!( @@ -6640,23 +6342,16 @@ fn bindgen_test_layout_ble_gap_evt_qos_channel_survey_report_t() { assert_eq!( ::core::mem::size_of::(), 40usize, - concat!( - "Size of: ", - stringify!(ble_gap_evt_qos_channel_survey_report_t) - ) + concat!("Size of: ", stringify!(ble_gap_evt_qos_channel_survey_report_t)) ); assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_qos_channel_survey_report_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_qos_channel_survey_report_t)) ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).channel_energy - as *const _ as usize + &(*(::core::ptr::null::())).channel_energy as *const _ as usize }, 0usize, concat!( @@ -6691,16 +6386,10 @@ fn bindgen_test_layout_ble_gap_evt_qos_conn_event_report_t() { assert_eq!( ::core::mem::align_of::(), 2usize, - concat!( - "Alignment of ", - stringify!(ble_gap_evt_qos_conn_event_report_t) - ) + concat!("Alignment of ", stringify!(ble_gap_evt_qos_conn_event_report_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).event_counter - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).event_counter as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -6710,10 +6399,7 @@ fn bindgen_test_layout_ble_gap_evt_qos_conn_event_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ch_index as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).ch_index as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -6723,10 +6409,7 @@ fn bindgen_test_layout_ble_gap_evt_qos_conn_event_report_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).crc_ok_count - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).crc_ok_count as *const _ as usize }, 3usize, concat!( "Offset of field: ", @@ -6737,8 +6420,7 @@ fn bindgen_test_layout_ble_gap_evt_qos_conn_event_report_t() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).crc_error_count - as *const _ as usize + &(*(::core::ptr::null::())).crc_error_count as *const _ as usize }, 4usize, concat!( @@ -6763,8 +6445,7 @@ impl ble_gap_evt_qos_conn_event_report_t { } #[inline] pub fn new_bitfield_1(rx_timeout: 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 rx_timeout: u8 = unsafe { ::core::mem::transmute(rx_timeout) }; rx_timeout as u64 @@ -6837,9 +6518,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: ", @@ -6849,10 +6528,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: ", @@ -6862,10 +6538,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: ", @@ -6875,10 +6548,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: ", @@ -6888,10 +6558,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: ", @@ -6901,10 +6568,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: ", @@ -6914,10 +6578,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: ", @@ -6927,10 +6588,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: ", @@ -6940,10 +6598,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: ", @@ -6953,10 +6608,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: ", @@ -6966,9 +6618,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: ", @@ -6978,10 +6628,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: ", @@ -6991,9 +6638,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).adv_report as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).adv_report as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7003,10 +6648,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: ", @@ -7017,8 +6659,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).conn_param_update_request - as *const _ as usize + &(*(::core::ptr::null::())).conn_param_update_request as *const _ as usize }, 0usize, concat!( @@ -7029,10 +6670,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: ", @@ -7042,9 +6680,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: ", @@ -7055,8 +6691,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::core::ptr::null::())).qos_channel_survey_report - as *const _ as usize + &(*(::core::ptr::null::())).qos_channel_survey_report as *const _ as usize }, 0usize, concat!( @@ -7067,10 +6702,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).qos_conn_event_report - as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).qos_conn_event_report as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7105,12 +6737,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."] @@ -7155,9 +6782,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: ", @@ -7197,10 +6822,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::())).central_role_count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).central_role_count as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7210,10 +6832,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).central_sec_count as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).central_sec_count as *const _ as usize }, 1usize, concat!( "Offset of field: ", @@ -7236,11 +6855,8 @@ impl ble_gap_cfg_role_count_t { } } #[inline] - pub fn new_bitfield_1( - qos_channel_survey_role_available: u8, - ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = - Default::default(); + pub fn new_bitfield_1(qos_channel_survey_role_available: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let qos_channel_survey_role_available: u8 = unsafe { ::core::mem::transmute(qos_channel_survey_role_available) }; @@ -7301,9 +6917,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: ", @@ -7313,9 +6927,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: ", @@ -7325,9 +6937,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: ", @@ -7337,9 +6947,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: ", @@ -7363,8 +6971,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 @@ -7395,10 +7002,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: ", @@ -7429,9 +7033,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: ", @@ -7553,9 +7155,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: ", @@ -7605,9 +7205,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: ", @@ -7663,8 +7261,7 @@ impl ble_gap_opt_compat_mode_1_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 @@ -7708,16 +7305,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: ", @@ -7728,8 +7319,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!( @@ -7774,10 +7364,7 @@ fn bindgen_test_layout_ble_gap_opt_enable_evt_len_check_t() { assert_eq!( ::core::mem::align_of::(), 1usize, - concat!( - "Alignment of ", - stringify!(ble_gap_opt_enable_evt_len_check_t) - ) + concat!("Alignment of ", stringify!(ble_gap_opt_enable_evt_len_check_t)) ); } impl ble_gap_opt_enable_evt_len_check_t { @@ -7794,8 +7381,7 @@ impl ble_gap_opt_enable_evt_len_check_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 @@ -7834,12 +7420,7 @@ 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::())).passkey as *const _ as usize }, @@ -7862,9 +7443,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: ", @@ -7874,9 +7453,7 @@ fn bindgen_test_layout_ble_gap_opt_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).enable_evt_len_check as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).enable_evt_len_check as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7923,9 +7500,7 @@ fn bindgen_test_layout_ble_gap_event_trigger_t() { concat!("Alignment of ", stringify!(ble_gap_event_trigger_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ppi_ch_id as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).ppi_ch_id as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -7935,9 +7510,7 @@ fn bindgen_test_layout_ble_gap_event_trigger_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).task_endpoint as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).task_endpoint as *const _ as usize }, 4usize, concat!( "Offset of field: ", @@ -7947,10 +7520,7 @@ fn bindgen_test_layout_ble_gap_event_trigger_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).conn_evt_counter_start as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).conn_evt_counter_start as *const _ as usize }, 8usize, concat!( "Offset of field: ", @@ -7960,10 +7530,7 @@ fn bindgen_test_layout_ble_gap_event_trigger_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).period_in_events as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).period_in_events as *const _ as usize }, 10usize, concat!( "Offset of field: ", @@ -8023,10 +7590,7 @@ fn bindgen_test_layout_ble_gap_qos_channel_survey_t() { concat!("Alignment of ", stringify!(ble_gap_qos_channel_survey_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).interval_us as *const _ - as usize - }, + unsafe { &(*(::core::ptr::null::())).interval_us as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -8093,9 +7657,7 @@ fn bindgen_test_layout_ble_gap_qos_rssi_t() { ) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).threshold_dbm as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).threshold_dbm as *const _ as usize }, 2usize, concat!( "Offset of field: ", @@ -8138,9 +7700,7 @@ fn bindgen_test_layout_ble_gap_qos_params_t() { concat!("Alignment of ", stringify!(ble_gap_qos_params_t)) ); assert_eq!( - unsafe { - &(*(::core::ptr::null::())).channel_survey as *const _ as usize - }, + unsafe { &(*(::core::ptr::null::())).channel_survey as *const _ as usize }, 0usize, concat!( "Offset of field: ", @@ -8385,10 +7945,7 @@ pub unsafe fn sd_ble_gap_privacy_get(p_privacy_params: *mut ble_gap_privacy_para #[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 118", inout("r0") to_asm(conn_handle) => ret, @@ -8608,10 +8165,7 @@ pub unsafe fn sd_ble_gap_device_name_get(p_dev_name: *mut u8, p_len: *mut u16) - #[doc = " See @ref ble_gap_cfg_car_incl_cfg_t and @ref ble_gap_cfg_role_count_t."] #[doc = " @retval ::NRF_ERROR_TIMEOUT A SMP timeout has occurred, and further SMP operations on this link is prohibited."] #[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 127", inout("r0") to_asm(conn_handle) => ret, @@ -8753,10 +8307,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 130", inout("r0") to_asm(conn_handle) => ret, @@ -8928,10 +8479,7 @@ pub unsafe fn sd_ble_gap_encrypt( #[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 136", inout("r0") to_asm(conn_handle) => ret, @@ -9313,11 +8861,7 @@ pub unsafe fn sd_ble_gap_next_conn_evt_counter_get(conn_handle: u16, p_counter: #[doc = " - Trying to start the event triggering for @ref BLE_GAP_LL_ROLE_SCAN or"] #[doc = " @ref BLE_GAP_LL_ROLE_INIT when the corresponding LL role is not active."] #[inline(always)] -pub unsafe fn sd_ble_gap_evt_trigger_start( - role: u8, - handle: u16, - p_params: *const ble_gap_event_trigger_t, -) -> u32 { +pub unsafe fn sd_ble_gap_evt_trigger_start(role: u8, handle: u16, p_params: *const ble_gap_event_trigger_t) -> u32 { let ret: u32; core::arch::asm!("svc 148", inout("r0") to_asm(role) => ret, @@ -9429,10 +8973,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: ", @@ -9464,9 +9005,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: ", @@ -9476,9 +9015,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: ", @@ -9520,9 +9057,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: ", @@ -9564,9 +9099,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: ", @@ -9657,8 +9190,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 @@ -9738,9 +9270,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: ", @@ -9760,9 +9290,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: ", @@ -9772,9 +9300,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: ", @@ -9794,9 +9320,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: ", @@ -9870,9 +9394,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: ", @@ -9912,16 +9434,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: ", @@ -9931,10 +9447,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: ", @@ -9967,9 +9480,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: ", @@ -9979,9 +9490,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: ", @@ -10014,9 +9523,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: ", @@ -10026,9 +9533,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: ", @@ -10061,9 +9566,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: ", @@ -10073,9 +9576,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: ", @@ -10127,8 +9628,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!( @@ -10140,8 +9641,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!( @@ -10162,16 +9663,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: ", @@ -10181,10 +9676,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: ", @@ -10194,10 +9686,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: ", @@ -10229,9 +9718,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: ", @@ -10241,9 +9728,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: ", @@ -10271,24 +9756,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: ", @@ -10299,8 +9775,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!( @@ -10312,8 +9787,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!( @@ -10351,9 +9825,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: ", @@ -10363,9 +9835,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: ", @@ -10415,15 +9885,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: ", @@ -10433,10 +9898,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: ", @@ -10475,9 +9937,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: ", @@ -10487,9 +9947,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: ", @@ -10499,9 +9957,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: ", @@ -10615,16 +10071,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: ", @@ -10676,24 +10126,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: ", @@ -10758,10 +10199,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: ", @@ -10771,10 +10209,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: ", @@ -10784,10 +10219,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: ", @@ -10797,10 +10229,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: ", @@ -10811,8 +10240,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!( @@ -10823,9 +10251,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: ", @@ -10835,10 +10261,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: ", @@ -10848,10 +10271,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: ", @@ -10861,9 +10281,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: ", @@ -10873,10 +10291,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: ", @@ -10886,9 +10301,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: ", @@ -10898,10 +10311,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: ", @@ -10912,8 +10322,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!( @@ -11238,11 +10647,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, @@ -11298,10 +10703,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, @@ -11491,9 +10893,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: ", @@ -11592,14 +10992,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 @@ -11891,9 +11285,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: ", @@ -11903,9 +11295,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: ", @@ -11915,10 +11305,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: ", @@ -11928,10 +11315,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: ", @@ -11951,9 +11335,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: ", @@ -12009,9 +11391,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: ", @@ -12021,10 +11401,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: ", @@ -12034,9 +11411,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: ", @@ -12046,9 +11421,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: ", @@ -12163,10 +11536,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: ", @@ -12176,9 +11546,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: ", @@ -12188,9 +11556,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: ", @@ -12200,9 +11566,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: ", @@ -12226,8 +11590,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 @@ -12273,8 +11636,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!( @@ -12286,8 +11648,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!( @@ -12303,24 +11664,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: ", @@ -12330,10 +11682,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: ", @@ -12376,8 +11725,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 @@ -12410,10 +11758,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: ", @@ -12446,9 +11791,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: ", @@ -12531,9 +11874,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: ", @@ -12663,8 +12004,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!( @@ -12676,8 +12016,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!( @@ -12693,24 +12032,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: ", @@ -12720,10 +12050,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: ", @@ -12750,15 +12077,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: ", @@ -12810,24 +12132,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: ", @@ -12887,9 +12200,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: ", @@ -12938,9 +12249,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: ", @@ -12950,10 +12259,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: ", @@ -12963,10 +12269,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: ", @@ -12976,9 +12279,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: ", @@ -12988,10 +12289,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: ", @@ -13001,9 +12299,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: ", @@ -13013,10 +12309,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: ", @@ -13079,11 +12372,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, @@ -13118,11 +12407,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, @@ -13234,11 +12519,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, @@ -13272,11 +12553,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, @@ -13351,10 +12628,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, @@ -13400,11 +12674,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, @@ -13503,12 +12773,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, @@ -13597,11 +12862,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, @@ -13773,9 +13034,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: ", @@ -13807,9 +13066,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: ", @@ -13819,9 +13076,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: ", @@ -13862,10 +13117,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: ", @@ -13875,10 +13127,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: ", @@ -13945,12 +13194,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 }, @@ -13996,9 +13240,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: ", @@ -14008,9 +13250,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: ", @@ -14020,9 +13260,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: ", @@ -14032,9 +13270,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: ", @@ -14059,22 +13295,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."] @@ -14121,9 +13347,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: ", @@ -14187,13 +13411,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 @@ -14257,9 +13476,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: ", @@ -14269,9 +13486,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: ", @@ -14281,9 +13496,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: ", @@ -14293,9 +13506,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: ", @@ -14346,8 +13557,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 @@ -14423,22 +13633,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"] @@ -14493,10 +13693,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: ", @@ -14506,10 +13703,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: ", @@ -14519,10 +13713,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: ", @@ -14532,10 +13723,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: ", @@ -14602,9 +13790,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: ", @@ -14674,42 +13860,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)) ); } @@ -14949,11 +14115,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 100", inout("r0") to_asm(uuid_le_len) => ret, @@ -14977,11 +14139,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 101", inout("r0") to_asm(p_uuid) => ret, -- cgit v1.2.3