summaryrefslogtreecommitdiff
path: root/nrf-softdevice-s140/src
diff options
context:
space:
mode:
authoralexmoon <alex.r.moon@gmail.com>2022-07-14 15:45:28 -0400
committeralexmoon <alex.r.moon@gmail.com>2022-07-14 15:45:28 -0400
commit98a31ce672c3113a2c238dc4e2ae9d632e59713a (patch)
tree36af82b9b26b04e2a7738515d50fc6b189d540b0 /nrf-softdevice-s140/src
parent84006cd336adf2642cb5716433abb5540c4fb8b9 (diff)
downloadnrf-softdevice-98a31ce672c3113a2c238dc4e2ae9d632e59713a.zip
Add rustfmt.toml to match embassy formatting
Diffstat (limited to 'nrf-softdevice-s140/src')
-rw-r--r--nrf-softdevice-s140/src/bindings.rs1909
1 files changed, 441 insertions, 1468 deletions
diff --git a/nrf-softdevice-s140/src/bindings.rs b/nrf-softdevice-s140/src/bindings.rs
index 7159ba9..de1eaa9 100644
--- a/nrf-softdevice-s140/src/bindings.rs
+++ b/nrf-softdevice-s140/src/bindings.rs
@@ -1022,73 +1022,57 @@ pub const NRF_POWER_DCDC_MODES_NRF_POWER_DCDC_ENABLE: NRF_POWER_DCDC_MODES = 1;
#[doc = "@brief DC/DC converter modes."]
pub type NRF_POWER_DCDC_MODES = self::c_uint;
#[doc = "< The event does not have a notification."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_NONE:
- NRF_RADIO_NOTIFICATION_DISTANCES = 0;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_NONE: NRF_RADIO_NOTIFICATION_DISTANCES = 0;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_800US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 1;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_800US: NRF_RADIO_NOTIFICATION_DISTANCES = 1;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_1740US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 2;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_1740US: NRF_RADIO_NOTIFICATION_DISTANCES = 2;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_2680US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 3;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_2680US: NRF_RADIO_NOTIFICATION_DISTANCES = 3;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_3620US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 4;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_3620US: NRF_RADIO_NOTIFICATION_DISTANCES = 4;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_4560US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 5;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_4560US: NRF_RADIO_NOTIFICATION_DISTANCES = 5;
#[doc = "< The distance from the active notification to start of radio activity."]
-pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_5500US:
- NRF_RADIO_NOTIFICATION_DISTANCES = 6;
+pub const NRF_RADIO_NOTIFICATION_DISTANCES_NRF_RADIO_NOTIFICATION_DISTANCE_5500US: NRF_RADIO_NOTIFICATION_DISTANCES = 6;
#[doc = "@brief Radio notification distances."]
pub type NRF_RADIO_NOTIFICATION_DISTANCES = self::c_uint;
#[doc = "< The event does not have a radio notification signal."]
-pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_NONE:
- NRF_RADIO_NOTIFICATION_TYPES = 0;
+pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_NONE: NRF_RADIO_NOTIFICATION_TYPES = 0;
#[doc = "< Using interrupt for notification when the radio will be enabled."]
-pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE:
- NRF_RADIO_NOTIFICATION_TYPES = 1;
+pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE: NRF_RADIO_NOTIFICATION_TYPES = 1;
#[doc = "< Using interrupt for notification when the radio has been disabled."]
-pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE:
- NRF_RADIO_NOTIFICATION_TYPES = 2;
+pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE: NRF_RADIO_NOTIFICATION_TYPES = 2;
#[doc = "< Using interrupt for notification both when the radio will be enabled and disabled."]
-pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_BOTH:
- NRF_RADIO_NOTIFICATION_TYPES = 3;
+pub const NRF_RADIO_NOTIFICATION_TYPES_NRF_RADIO_NOTIFICATION_TYPE_INT_ON_BOTH: NRF_RADIO_NOTIFICATION_TYPES = 3;
#[doc = "@brief Radio notification types."]
pub type NRF_RADIO_NOTIFICATION_TYPES = self::c_uint;
#[doc = "< This signal indicates the start of the radio timeslot."]
-pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_START:
- NRF_RADIO_CALLBACK_SIGNAL_TYPE = 0;
+pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_START: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 0;
#[doc = "< This signal indicates the NRF_TIMER0 interrupt."]
-pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0:
- NRF_RADIO_CALLBACK_SIGNAL_TYPE = 1;
+pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 1;
#[doc = "< This signal indicates the NRF_RADIO interrupt."]
-pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO:
- NRF_RADIO_CALLBACK_SIGNAL_TYPE = 2;
+pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO: NRF_RADIO_CALLBACK_SIGNAL_TYPE = 2;
#[doc = "< This signal indicates extend action failed."]
-pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED:
- NRF_RADIO_CALLBACK_SIGNAL_TYPE = 3;
+pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_FAILED: NRF_RADIO_CALLBACK_SIGNAL_TYPE =
+ 3;
#[doc = "< This signal indicates extend action succeeded."]
pub const NRF_RADIO_CALLBACK_SIGNAL_TYPE_NRF_RADIO_CALLBACK_SIGNAL_TYPE_EXTEND_SUCCEEDED:
NRF_RADIO_CALLBACK_SIGNAL_TYPE = 4;
#[doc = "@brief The Radio signal callback types."]
pub type NRF_RADIO_CALLBACK_SIGNAL_TYPE = self::c_uint;
#[doc = "< Return without action."]
-pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_NONE:
- NRF_RADIO_SIGNAL_CALLBACK_ACTION = 0;
+pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_NONE: NRF_RADIO_SIGNAL_CALLBACK_ACTION = 0;
#[doc = "< Request an extension of the current"]
#[doc = "timeslot. Maximum execution time for this action:"]
#[doc = "@ref NRF_RADIO_MAX_EXTENSION_PROCESSING_TIME_US."]
#[doc = "This action must be started at least"]
#[doc = "@ref NRF_RADIO_MIN_EXTENSION_MARGIN_US before"]
#[doc = "the end of the timeslot."]
-pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_EXTEND:
- NRF_RADIO_SIGNAL_CALLBACK_ACTION = 1;
+pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_EXTEND: NRF_RADIO_SIGNAL_CALLBACK_ACTION =
+ 1;
#[doc = "< End the current radio timeslot."]
-pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_END:
- NRF_RADIO_SIGNAL_CALLBACK_ACTION = 2;
+pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_END: NRF_RADIO_SIGNAL_CALLBACK_ACTION = 2;
#[doc = "< Request a new radio timeslot and end the current timeslot."]
pub const NRF_RADIO_SIGNAL_CALLBACK_ACTION_NRF_RADIO_SIGNAL_CALLBACK_ACTION_REQUEST_AND_END:
NRF_RADIO_SIGNAL_CALLBACK_ACTION = 3;
@@ -1181,9 +1165,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::<nrf_radio_request_earliest_t>())).hfclk as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).hfclk as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -1193,9 +1175,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).priority as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).priority as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -1205,9 +1185,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).length_us as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).length_us as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -1217,10 +1195,7 @@ fn bindgen_test_layout_nrf_radio_request_earliest_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).timeout_us as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_earliest_t>())).timeout_us as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -1256,9 +1231,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::<nrf_radio_request_normal_t>())).hfclk as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).hfclk as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -1268,9 +1241,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).priority as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).priority as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -1280,9 +1251,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).distance_us as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).distance_us as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -1292,9 +1261,7 @@ fn bindgen_test_layout_nrf_radio_request_normal_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).length_us as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_normal_t>())).length_us as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -1332,16 +1299,10 @@ fn bindgen_test_layout_nrf_radio_request_t__bindgen_ty_1() {
assert_eq!(
::core::mem::align_of::<nrf_radio_request_t__bindgen_ty_1>(),
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::<nrf_radio_request_t__bindgen_ty_1>())).earliest as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_t__bindgen_ty_1>())).earliest as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -1351,10 +1312,7 @@ fn bindgen_test_layout_nrf_radio_request_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_t__bindgen_ty_1>())).normal as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_t__bindgen_ty_1>())).normal as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -1377,9 +1335,7 @@ fn bindgen_test_layout_nrf_radio_request_t() {
concat!("Alignment of ", stringify!(nrf_radio_request_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_request_t>())).request_type as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_request_t>())).request_type as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -1426,8 +1382,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::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1>(
- ),
+ ::core::mem::size_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1>(),
4usize,
concat!(
"Size of: ",
@@ -1435,8 +1390,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b
)
);
assert_eq!(
- ::core::mem::align_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1>(
- ),
+ ::core::mem::align_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1>(),
4usize,
concat!(
"Alignment of ",
@@ -1445,10 +1399,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::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_1>())).p_next
+ as *const _ as usize
},
0usize,
concat!(
@@ -1468,8 +1420,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::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2>(
- ),
+ ::core::mem::size_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2>(),
4usize,
concat!(
"Size of: ",
@@ -1477,8 +1428,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b
)
);
assert_eq!(
- ::core::mem::align_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2>(
- ),
+ ::core::mem::align_of::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2>(),
4usize,
concat!(
"Alignment of ",
@@ -1487,10 +1437,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::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_2>())).length_us
+ as *const _ as usize
},
0usize,
concat!(
@@ -1521,8 +1469,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1()
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1>()))
- .request as *const _ as usize
+ &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1>())).request as *const _
+ as usize
},
0usize,
concat!(
@@ -1534,8 +1482,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1()
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1>()))
- .extend as *const _ as usize
+ &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t__bindgen_ty_1>())).extend as *const _
+ as usize
},
0usize,
concat!(
@@ -1551,23 +1499,16 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t() {
assert_eq!(
::core::mem::size_of::<nrf_radio_signal_callback_return_param_t>(),
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::<nrf_radio_signal_callback_return_param_t>(),
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::<nrf_radio_signal_callback_return_param_t>())).callback_action
- as *const _ as usize
+ &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t>())).callback_action as *const _ as usize
},
0usize,
concat!(
@@ -1578,10 +1519,7 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t>())).params as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_radio_signal_callback_return_param_t>())).params as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -1602,9 +1540,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<unsafe extern "C" fn(signal_type: u8) -> *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];
@@ -1698,9 +1635,7 @@ fn bindgen_test_layout_nrf_ecb_hal_data_block_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_ecb_hal_data_block_t>())).p_cleartext as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_ecb_hal_data_block_t>())).p_cleartext as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -1710,9 +1645,7 @@ fn bindgen_test_layout_nrf_ecb_hal_data_block_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_ecb_hal_data_block_t>())).p_ciphertext as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_ecb_hal_data_block_t>())).p_ciphertext as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -2556,10 +2489,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,
@@ -2916,9 +2846,7 @@ fn bindgen_test_layout_nrf_clock_lf_cfg_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<nrf_clock_lf_cfg_t>())).rc_temp_ctiv as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<nrf_clock_lf_cfg_t>())).rc_temp_ctiv as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -2957,8 +2885,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<unsafe extern "C" fn(id: u32, pc: u32, info: u32)>;
+pub type nrf_fault_handler_t = ::core::option::Option<unsafe extern "C" fn(id: u32, pc: u32, info: u32)>;
#[doc = "@brief Enables the SoftDevice and by extension the protocol stack."]
#[doc = ""]
@@ -3121,22 +3048,12 @@ fn bindgen_test_layout_ble_uuid_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_uuid_t>())).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::<ble_uuid_t>())).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."]
@@ -3163,22 +3080,12 @@ fn bindgen_test_layout_ble_data_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_data_t>())).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::<ble_data_t>())).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."]
@@ -3325,8 +3232,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
@@ -3402,8 +3308,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
@@ -3596,9 +3501,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::<sd_mbr_command_copy_bl_t>())).bl_src as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_copy_bl_t>())).bl_src as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3608,9 +3511,7 @@ fn bindgen_test_layout_sd_mbr_command_copy_bl_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<sd_mbr_command_copy_bl_t>())).bl_len as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_copy_bl_t>())).bl_len as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -3652,24 +3553,15 @@ fn bindgen_test_layout_sd_mbr_command_vector_table_base_set_t() {
assert_eq!(
::core::mem::size_of::<sd_mbr_command_vector_table_base_set_t>(),
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::<sd_mbr_command_vector_table_base_set_t>(),
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::<sd_mbr_command_vector_table_base_set_t>())).address as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_vector_table_base_set_t>())).address as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3696,24 +3588,15 @@ fn bindgen_test_layout_sd_mbr_command_irq_forward_address_set_t() {
assert_eq!(
::core::mem::size_of::<sd_mbr_command_irq_forward_address_set_t>(),
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::<sd_mbr_command_irq_forward_address_set_t>(),
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::<sd_mbr_command_irq_forward_address_set_t>())).address
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_irq_forward_address_set_t>())).address as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3764,9 +3647,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::<sd_mbr_command_t__bindgen_ty_1>())).copy_sd as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).copy_sd as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3776,9 +3657,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).compare as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).compare as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3788,9 +3667,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).copy_bl as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).copy_bl as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3800,10 +3677,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).base_set as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).base_set as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -3814,8 +3688,7 @@ fn bindgen_test_layout_sd_mbr_command_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).irq_forward_address_set
- as *const _ as usize
+ &(*(::core::ptr::null::<sd_mbr_command_t__bindgen_ty_1>())).irq_forward_address_set as *const _ as usize
},
0usize,
concat!(
@@ -4123,12 +3996,8 @@ impl ble_gap_adv_properties_t {
}
}
#[inline]
- pub fn new_bitfield_1(
- anonymous: u8,
- include_tx_power: u8,
- ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
- Default::default();
+ pub fn new_bitfield_1(anonymous: u8, include_tx_power: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let anonymous: u8 = unsafe { ::core::mem::transmute(anonymous) };
anonymous as u64
@@ -4248,8 +4117,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
@@ -4303,9 +4171,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::<ble_gap_aux_pointer_t>())).aux_offset as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_aux_pointer_t>())).aux_offset as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -4349,12 +4215,7 @@ fn bindgen_test_layout_ble_gap_addr_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_gap_addr_t>())).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 {
@@ -4381,12 +4242,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
@@ -4433,10 +4290,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::<ble_gap_conn_params_t>())).min_conn_interval as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_params_t>())).min_conn_interval as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -4446,10 +4300,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_params_t>())).max_conn_interval as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_params_t>())).max_conn_interval as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -4459,9 +4310,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_params_t>())).slave_latency as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_params_t>())).slave_latency as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -4471,9 +4320,7 @@ fn bindgen_test_layout_ble_gap_conn_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_params_t>())).conn_sup_timeout as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_params_t>())).conn_sup_timeout as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
@@ -4535,8 +4382,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
@@ -4580,9 +4426,7 @@ fn bindgen_test_layout_ble_gap_conn_sec_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_sec_t>())).encr_key_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_sec_t>())).encr_key_size as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -4614,12 +4458,7 @@ fn bindgen_test_layout_ble_gap_irk_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_gap_irk_t>())).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)."]
@@ -4707,9 +4546,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
concat!("Alignment of ", stringify!(ble_gap_adv_params_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).properties as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).properties as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -4719,9 +4556,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).p_peer_addr as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).p_peer_addr as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -4751,9 +4586,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).max_adv_evts as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).max_adv_evts as *const _ as usize },
14usize,
concat!(
"Offset of field: ",
@@ -4763,9 +4596,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).channel_mask as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).channel_mask as *const _ as usize },
15usize,
concat!(
"Offset of field: ",
@@ -4775,9 +4606,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).filter_policy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).filter_policy as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
@@ -4787,9 +4616,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).primary_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).primary_phy as *const _ as usize },
21usize,
concat!(
"Offset of field: ",
@@ -4799,9 +4626,7 @@ fn bindgen_test_layout_ble_gap_adv_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_params_t>())).secondary_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_params_t>())).secondary_phy as *const _ as usize },
22usize,
concat!(
"Offset of field: ",
@@ -4835,19 +4660,14 @@ impl ble_gap_adv_params_t {
}
}
#[inline]
- pub fn new_bitfield_1(
- set_id: u8,
- scan_req_notification: u8,
- ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
- Default::default();
+ pub fn new_bitfield_1(set_id: u8, scan_req_notification: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default();
__bindgen_bitfield_unit.set(0usize, 4u8, {
let set_id: u8 = unsafe { ::core::mem::transmute(set_id) };
set_id as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
- let scan_req_notification: u8 =
- unsafe { ::core::mem::transmute(scan_req_notification) };
+ let scan_req_notification: u8 = unsafe { ::core::mem::transmute(scan_req_notification) };
scan_req_notification as u64
});
__bindgen_bitfield_unit
@@ -4900,9 +4720,7 @@ fn bindgen_test_layout_ble_gap_adv_data_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_adv_data_t>())).scan_rsp_data as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_adv_data_t>())).scan_rsp_data as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -4964,9 +4782,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::<ble_gap_scan_params_t>())).scan_phys as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_scan_params_t>())).scan_phys as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -5006,9 +4822,7 @@ fn bindgen_test_layout_ble_gap_scan_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_scan_params_t>())).channel_mask as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_scan_params_t>())).channel_mask as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -5070,15 +4884,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, {
@@ -5135,9 +4947,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::<ble_gap_privacy_params_t>())).privacy_mode as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).privacy_mode as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -5147,10 +4957,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).private_addr_type as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).private_addr_type as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -5160,10 +4967,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).private_addr_cycle_s as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).private_addr_cycle_s as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -5173,9 +4977,7 @@ fn bindgen_test_layout_ble_gap_privacy_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).p_device_irk as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_privacy_params_t>())).p_device_irk as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -5298,14 +5100,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
@@ -5352,9 +5148,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::<ble_gap_sec_params_t>())).min_key_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_sec_params_t>())).min_key_size as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -5364,9 +5158,7 @@ fn bindgen_test_layout_ble_gap_sec_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_sec_params_t>())).max_key_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_sec_params_t>())).max_key_size as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -5386,9 +5178,7 @@ fn bindgen_test_layout_ble_gap_sec_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_sec_params_t>())).kdist_peer as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_sec_params_t>())).kdist_peer as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -5474,8 +5264,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
@@ -5569,13 +5358,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
@@ -5810,9 +5594,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::<ble_gap_evt_connected_t>())).peer_addr as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).peer_addr as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -5832,9 +5614,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).conn_params as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).conn_params as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -5844,9 +5624,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).adv_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).adv_handle as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
@@ -5856,9 +5634,7 @@ fn bindgen_test_layout_ble_gap_evt_connected_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).adv_data as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_connected_t>())).adv_data as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
@@ -5888,9 +5664,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::<ble_gap_evt_disconnected_t>())).reason as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_disconnected_t>())).reason as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -5920,10 +5694,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::<ble_gap_evt_conn_param_update_t>())).conn_params as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_conn_param_update_t>())).conn_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -5950,15 +5721,11 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_request_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_phy_update_request_t>(),
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::<ble_gap_evt_phy_update_request_t>())).peer_preferred_phys
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_phy_update_request_t>())).peer_preferred_phys as *const _ as usize
},
0usize,
concat!(
@@ -5993,9 +5760,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::<ble_gap_evt_phy_update_t>())).status as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_phy_update_t>())).status as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6005,9 +5770,7 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_phy_update_t>())).tx_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_phy_update_t>())).tx_phy as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -6017,9 +5780,7 @@ fn bindgen_test_layout_ble_gap_evt_phy_update_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_phy_update_t>())).rx_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_phy_update_t>())).rx_phy as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -6046,16 +5807,10 @@ fn bindgen_test_layout_ble_gap_evt_sec_params_request_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_sec_params_request_t>(),
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::<ble_gap_evt_sec_params_request_t>())).peer_params as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_sec_params_request_t>())).peer_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6089,10 +5844,7 @@ fn bindgen_test_layout_ble_gap_evt_sec_info_request_t() {
concat!("Alignment of ", stringify!(ble_gap_evt_sec_info_request_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_sec_info_request_t>())).peer_addr as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_sec_info_request_t>())).peer_addr as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6102,10 +5854,7 @@ fn bindgen_test_layout_ble_gap_evt_sec_info_request_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_sec_info_request_t>())).master_id as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_sec_info_request_t>())).master_id as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -6150,13 +5899,8 @@ impl ble_gap_evt_sec_info_request_t {
}
}
#[inline]
- pub fn new_bitfield_1(
- enc_info: u8,
- id_info: u8,
- sign_info: u8,
- ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
- Default::default();
+ pub fn new_bitfield_1(enc_info: u8, id_info: u8, sign_info: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let enc_info: u8 = unsafe { ::core::mem::transmute(enc_info) };
enc_info as u64
@@ -6193,9 +5937,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::<ble_gap_evt_passkey_display_t>())).passkey as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_passkey_display_t>())).passkey as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6219,8 +5961,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
@@ -6248,9 +5989,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::<ble_gap_evt_key_pressed_t>())).kp_not as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_key_pressed_t>())).kp_not as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6280,10 +6019,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::<ble_gap_evt_auth_key_request_t>())).key_type as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_key_request_t>())).key_type as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6313,16 +6049,10 @@ fn bindgen_test_layout_ble_gap_evt_lesc_dhkey_request_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_lesc_dhkey_request_t>(),
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::<ble_gap_evt_lesc_dhkey_request_t>())).p_pk_peer as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_lesc_dhkey_request_t>())).p_pk_peer as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6346,8 +6076,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
@@ -6421,14 +6150,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
@@ -6667,10 +6390,7 @@ fn bindgen_test_layout_ble_gap_data_length_params_t() {
concat!("Alignment of ", stringify!(ble_gap_data_length_params_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_tx_octets as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_tx_octets as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6680,10 +6400,7 @@ fn bindgen_test_layout_ble_gap_data_length_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_rx_octets as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_rx_octets as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -6693,10 +6410,7 @@ fn bindgen_test_layout_ble_gap_data_length_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_tx_time_us as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_tx_time_us as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -6706,10 +6420,7 @@ fn bindgen_test_layout_ble_gap_data_length_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_rx_time_us as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_data_length_params_t>())).max_rx_time_us as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
@@ -6740,15 +6451,11 @@ fn bindgen_test_layout_ble_gap_data_length_limitation_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_data_length_limitation_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_data_length_limitation_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_data_length_limitation_t))
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).tx_payload_limited_octets
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).tx_payload_limited_octets as *const _ as usize
},
0usize,
concat!(
@@ -6760,8 +6467,7 @@ fn bindgen_test_layout_ble_gap_data_length_limitation_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).rx_payload_limited_octets
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).rx_payload_limited_octets as *const _ as usize
},
2usize,
concat!(
@@ -6773,8 +6479,7 @@ fn bindgen_test_layout_ble_gap_data_length_limitation_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).tx_rx_time_limited_us
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_data_length_limitation_t>())).tx_rx_time_limited_us as *const _ as usize
},
4usize,
concat!(
@@ -6814,9 +6519,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::<ble_gap_evt_auth_status_t>())).auth_status as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).auth_status as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6826,9 +6529,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).sm1_levels as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).sm1_levels as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -6838,9 +6539,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).sm2_levels as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).sm2_levels as *const _ as usize },
3usize,
concat!(
"Offset of field: ",
@@ -6850,9 +6549,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).kdist_own as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).kdist_own as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -6862,9 +6559,7 @@ fn bindgen_test_layout_ble_gap_evt_auth_status_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).kdist_peer as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_auth_status_t>())).kdist_peer as *const _ as usize },
5usize,
concat!(
"Offset of field: ",
@@ -6909,13 +6604,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
@@ -6951,9 +6641,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::<ble_gap_evt_conn_sec_update_t>())).conn_sec as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_conn_sec_update_t>())).conn_sec as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -6990,15 +6678,11 @@ fn bindgen_test_layout_ble_gap_evt_timeout_t__bindgen_ty_1() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_timeout_t__bindgen_ty_1>(),
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::<ble_gap_evt_timeout_t__bindgen_ty_1>())).adv_report_buffer
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_timeout_t__bindgen_ty_1>())).adv_report_buffer as *const _ as usize
},
0usize,
concat!(
@@ -7065,9 +6749,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::<ble_gap_evt_rssi_changed_t>())).rssi as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_rssi_changed_t>())).rssi as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7077,9 +6759,7 @@ fn bindgen_test_layout_ble_gap_evt_rssi_changed_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_rssi_changed_t>())).ch_index as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_rssi_changed_t>())).ch_index as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -7116,16 +6796,10 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_adv_set_terminated_t>(),
4usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_evt_adv_set_terminated_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_evt_adv_set_terminated_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).reason as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).reason as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7135,10 +6809,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).adv_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).adv_handle as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -7149,8 +6820,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).num_completed_adv_events
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).num_completed_adv_events as *const _ as usize
},
2usize,
concat!(
@@ -7161,10 +6831,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_set_terminated_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).adv_data as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_set_terminated_t>())).adv_data as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -7254,9 +6921,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).peer_addr as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).peer_addr as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -7266,9 +6931,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).direct_addr as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).direct_addr as *const _ as usize },
9usize,
concat!(
"Offset of field: ",
@@ -7278,9 +6941,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).primary_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).primary_phy as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
@@ -7290,9 +6951,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).secondary_phy as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).secondary_phy as *const _ as usize },
17usize,
concat!(
"Offset of field: ",
@@ -7302,9 +6961,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).tx_power as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).tx_power as *const _ as usize },
18usize,
concat!(
"Offset of field: ",
@@ -7324,9 +6981,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).ch_index as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).ch_index as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
@@ -7336,9 +6991,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).set_id as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).set_id as *const _ as usize },
21usize,
concat!(
"Offset of field: ",
@@ -7358,9 +7011,7 @@ fn bindgen_test_layout_ble_gap_evt_adv_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).aux_pointer as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_adv_report_t>())).aux_pointer as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
@@ -7384,8 +7035,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
@@ -7458,14 +7108,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
@@ -7497,23 +7141,16 @@ fn bindgen_test_layout_ble_gap_evt_conn_param_update_request_t() {
assert_eq!(
::core::mem::size_of::<ble_gap_evt_conn_param_update_request_t>(),
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::<ble_gap_evt_conn_param_update_request_t>(),
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::<ble_gap_evt_conn_param_update_request_t>())).conn_params
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_conn_param_update_request_t>())).conn_params as *const _ as usize
},
0usize,
concat!(
@@ -7550,10 +7187,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() {
concat!("Alignment of ", stringify!(ble_gap_evt_scan_req_report_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).adv_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).adv_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7563,9 +7197,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).rssi as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).rssi as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -7575,10 +7207,7 @@ fn bindgen_test_layout_ble_gap_evt_scan_req_report_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).peer_addr as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_scan_req_report_t>())).peer_addr as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -7600,23 +7229,16 @@ fn bindgen_test_layout_ble_gap_evt_data_length_update_request_t() {
assert_eq!(
::core::mem::size_of::<ble_gap_evt_data_length_update_request_t>(),
8usize,
- concat!(
- "Size of: ",
- stringify!(ble_gap_evt_data_length_update_request_t)
- )
+ concat!("Size of: ", stringify!(ble_gap_evt_data_length_update_request_t))
);
assert_eq!(
::core::mem::align_of::<ble_gap_evt_data_length_update_request_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_evt_data_length_update_request_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_evt_data_length_update_request_t))
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_data_length_update_request_t>())).peer_params
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_data_length_update_request_t>())).peer_params as *const _ as usize
},
0usize,
concat!(
@@ -7646,16 +7268,10 @@ fn bindgen_test_layout_ble_gap_evt_data_length_update_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_evt_data_length_update_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_evt_data_length_update_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_evt_data_length_update_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_data_length_update_t>())).effective_params
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_data_length_update_t>())).effective_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7680,23 +7296,16 @@ fn bindgen_test_layout_ble_gap_evt_qos_channel_survey_report_t() {
assert_eq!(
::core::mem::size_of::<ble_gap_evt_qos_channel_survey_report_t>(),
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::<ble_gap_evt_qos_channel_survey_report_t>(),
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::<ble_gap_evt_qos_channel_survey_report_t>())).channel_energy
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_qos_channel_survey_report_t>())).channel_energy as *const _ as usize
},
0usize,
concat!(
@@ -7780,9 +7389,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::<ble_gap_evt_t__bindgen_ty_1>())).connected as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).connected as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7792,10 +7399,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).disconnected as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).disconnected as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7805,10 +7409,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_param_update as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_param_update as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7818,10 +7419,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_params_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_params_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7831,10 +7429,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_info_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_info_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7844,10 +7439,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).passkey_display as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).passkey_display as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7857,10 +7449,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).key_pressed as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).key_pressed as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7870,10 +7459,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).auth_key_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).auth_key_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7883,10 +7469,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).lesc_dhkey_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).lesc_dhkey_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7896,10 +7479,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).auth_status as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).auth_status as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7909,10 +7489,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_sec_update as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_sec_update as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7922,9 +7499,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).timeout as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).timeout as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7934,10 +7509,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).rssi_changed as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).rssi_changed as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7947,9 +7519,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).adv_report as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).adv_report as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7959,10 +7529,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).adv_set_terminated as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).adv_set_terminated as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7972,10 +7539,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).sec_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -7986,8 +7550,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_param_update_request
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).conn_param_update_request as *const _ as usize
},
0usize,
concat!(
@@ -7998,10 +7561,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).scan_req_report as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).scan_req_report as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8011,10 +7571,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).phy_update_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).phy_update_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8024,9 +7581,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).phy_update as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).phy_update as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8037,8 +7592,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).data_length_update_request
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).data_length_update_request as *const _ as usize
},
0usize,
concat!(
@@ -8049,10 +7603,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).data_length_update as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).data_length_update as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8063,8 +7614,7 @@ fn bindgen_test_layout_ble_gap_evt_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).qos_channel_survey_report
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_evt_t__bindgen_ty_1>())).qos_channel_survey_report as *const _ as usize
},
0usize,
concat!(
@@ -8100,12 +7650,7 @@ fn bindgen_test_layout_ble_gap_evt_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_gap_evt_t>())).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."]
@@ -8150,9 +7695,7 @@ fn bindgen_test_layout_ble_gap_conn_cfg_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_cfg_t>())).event_length as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_cfg_t>())).event_length as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -8198,9 +7741,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::<ble_gap_cfg_role_count_t>())).adv_set_count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).adv_set_count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8210,10 +7751,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).periph_role_count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).periph_role_count as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -8223,10 +7761,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).central_role_count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).central_role_count as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -8236,10 +7771,7 @@ fn bindgen_test_layout_ble_gap_cfg_role_count_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).central_sec_count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_role_count_t>())).central_sec_count as *const _ as usize },
3usize,
concat!(
"Offset of field: ",
@@ -8262,11 +7794,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) };
@@ -8327,9 +7856,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::<ble_gap_cfg_device_name_t>())).write_perm as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).write_perm as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8339,9 +7866,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).p_value as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).p_value as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -8351,9 +7876,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).current_len as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).current_len as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -8363,9 +7886,7 @@ fn bindgen_test_layout_ble_gap_cfg_device_name_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).max_len as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_device_name_t>())).max_len as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
@@ -8389,8 +7910,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
@@ -8419,10 +7939,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::<ble_gap_cfg_ppcp_incl_cfg_t>())).include_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_ppcp_incl_cfg_t>())).include_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8453,9 +7970,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::<ble_gap_cfg_car_incl_cfg_t>())).include_cfg as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_cfg_car_incl_cfg_t>())).include_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8577,9 +8092,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::<ble_gap_opt_ch_map_t>())).conn_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_ch_map_t>())).conn_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8640,16 +8153,10 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_opt_local_conn_latency_t>(),
4usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_opt_local_conn_latency_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_opt_local_conn_latency_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).conn_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).conn_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8659,10 +8166,7 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).requested_latency
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).requested_latency as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -8672,10 +8176,7 @@ fn bindgen_test_layout_ble_gap_opt_local_conn_latency_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).p_actual_latency
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_local_conn_latency_t>())).p_actual_latency as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -8714,16 +8215,10 @@ fn bindgen_test_layout_ble_gap_opt_slave_latency_disable_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_opt_slave_latency_disable_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_gap_opt_slave_latency_disable_t)
- )
+ concat!("Alignment of ", stringify!(ble_gap_opt_slave_latency_disable_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_slave_latency_disable_t>())).conn_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_slave_latency_disable_t>())).conn_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8747,8 +8242,7 @@ impl ble_gap_opt_slave_latency_disable_t {
}
#[inline]
pub fn new_bitfield_1(disable: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
- Default::default();
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let disable: u8 = unsafe { ::core::mem::transmute(disable) };
disable as u64
@@ -8789,9 +8283,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::<ble_gap_opt_passkey_t>())).p_passkey as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_passkey_t>())).p_passkey as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8847,8 +8339,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
@@ -8892,16 +8383,10 @@ fn bindgen_test_layout_ble_gap_opt_auth_payload_timeout_t() {
assert_eq!(
::core::mem::align_of::<ble_gap_opt_auth_payload_timeout_t>(),
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::<ble_gap_opt_auth_payload_timeout_t>())).conn_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_auth_payload_timeout_t>())).conn_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8912,8 +8397,7 @@ fn bindgen_test_layout_ble_gap_opt_auth_payload_timeout_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_auth_payload_timeout_t>())).auth_payload_timeout
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_opt_auth_payload_timeout_t>())).auth_payload_timeout as *const _ as usize
},
2usize,
concat!(
@@ -8957,17 +8441,10 @@ fn bindgen_test_layout_ble_gap_opt_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_gap_opt_t>())).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::<ble_gap_opt_t>())).local_conn_latency as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_t>())).local_conn_latency as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -8997,9 +8474,7 @@ fn bindgen_test_layout_ble_gap_opt_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_t>())).auth_payload_timeout as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_t>())).auth_payload_timeout as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -9009,9 +8484,7 @@ fn bindgen_test_layout_ble_gap_opt_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_opt_t>())).slave_latency_disable as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_opt_t>())).slave_latency_disable as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -9053,9 +8526,7 @@ fn bindgen_test_layout_ble_gap_conn_event_trigger_t() {
concat!("Alignment of ", stringify!(ble_gap_conn_event_trigger_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).ppi_ch_id as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).ppi_ch_id as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -9065,10 +8536,7 @@ fn bindgen_test_layout_ble_gap_conn_event_trigger_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).task_endpoint as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).task_endpoint as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -9079,8 +8547,7 @@ fn bindgen_test_layout_ble_gap_conn_event_trigger_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).conn_evt_counter_start
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).conn_evt_counter_start as *const _ as usize
},
8usize,
concat!(
@@ -9091,10 +8558,7 @@ fn bindgen_test_layout_ble_gap_conn_event_trigger_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).period_in_events as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gap_conn_event_trigger_t>())).period_in_events as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
@@ -9508,10 +8972,7 @@ pub unsafe fn sd_ble_gap_adv_stop(adv_handle: u8) -> u32 {
#[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."]
#[doc = " @retval ::NRF_ERROR_NO_MEM Not enough memory to complete operation."]
#[inline(always)]
-pub unsafe fn sd_ble_gap_conn_param_update(
- conn_handle: u16,
- p_conn_params: *const ble_gap_conn_params_t,
-) -> u32 {
+pub unsafe fn sd_ble_gap_conn_param_update(conn_handle: u16, p_conn_params: *const ble_gap_conn_params_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 117",
inout("r0") to_asm(conn_handle) => ret,
@@ -9781,10 +9242,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 126",
inout("r0") to_asm(conn_handle) => ret,
@@ -9949,10 +9407,7 @@ pub unsafe fn sd_ble_gap_auth_key_reply(conn_handle: u16, key_type: u8, p_key: *
#[doc = " - The application has not pulled a @ref BLE_GAP_EVT_LESC_DHKEY_REQUEST event."]
#[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."]
#[inline(always)]
-pub unsafe fn sd_ble_gap_lesc_dhkey_reply(
- conn_handle: u16,
- p_dhkey: *const ble_gap_lesc_dhkey_t,
-) -> u32 {
+pub unsafe fn sd_ble_gap_lesc_dhkey_reply(conn_handle: u16, p_dhkey: *const ble_gap_lesc_dhkey_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 129",
inout("r0") to_asm(conn_handle) => ret,
@@ -10166,10 +9621,7 @@ pub unsafe fn sd_ble_gap_sec_info_reply(
#[doc = " @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied."]
#[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."]
#[inline(always)]
-pub unsafe fn sd_ble_gap_conn_sec_get(
- conn_handle: u16,
- p_conn_sec: *mut ble_gap_conn_sec_t,
-) -> u32 {
+pub unsafe fn sd_ble_gap_conn_sec_get(conn_handle: u16, p_conn_sec: *mut ble_gap_conn_sec_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 135",
inout("r0") to_asm(conn_handle) => ret,
@@ -10816,9 +10268,7 @@ fn bindgen_test_layout_ble_l2cap_conn_cfg_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_conn_cfg_t>())).rx_queue_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_conn_cfg_t>())).rx_queue_size as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -10828,9 +10278,7 @@ fn bindgen_test_layout_ble_l2cap_conn_cfg_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_conn_cfg_t>())).tx_queue_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_conn_cfg_t>())).tx_queue_size as *const _ as usize },
5usize,
concat!(
"Offset of field: ",
@@ -10883,9 +10331,7 @@ fn bindgen_test_layout_ble_l2cap_ch_rx_params_t() {
concat!("Alignment of ", stringify!(ble_l2cap_ch_rx_params_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).rx_mtu as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).rx_mtu as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -10895,9 +10341,7 @@ fn bindgen_test_layout_ble_l2cap_ch_rx_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).rx_mps as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).rx_mps as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -10907,9 +10351,7 @@ fn bindgen_test_layout_ble_l2cap_ch_rx_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).sdu_buf as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_rx_params_t>())).sdu_buf as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -10946,9 +10388,7 @@ fn bindgen_test_layout_ble_l2cap_ch_setup_params_t() {
concat!("Alignment of ", stringify!(ble_l2cap_ch_setup_params_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).rx_params as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).rx_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -10958,9 +10398,7 @@ fn bindgen_test_layout_ble_l2cap_ch_setup_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).le_psm as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).le_psm as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
@@ -10970,9 +10408,7 @@ fn bindgen_test_layout_ble_l2cap_ch_setup_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).status as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_setup_params_t>())).status as *const _ as usize },
14usize,
concat!(
"Offset of field: ",
@@ -11013,9 +10449,7 @@ fn bindgen_test_layout_ble_l2cap_ch_tx_params_t() {
concat!("Alignment of ", stringify!(ble_l2cap_ch_tx_params_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).tx_mtu as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).tx_mtu as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11025,9 +10459,7 @@ fn bindgen_test_layout_ble_l2cap_ch_tx_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).peer_mps as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).peer_mps as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -11037,9 +10469,7 @@ fn bindgen_test_layout_ble_l2cap_ch_tx_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).tx_mps as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).tx_mps as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -11049,9 +10479,7 @@ fn bindgen_test_layout_ble_l2cap_ch_tx_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).credits as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_ch_tx_params_t>())).credits as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
@@ -11080,16 +10508,10 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_setup_request_t() {
assert_eq!(
::core::mem::align_of::<ble_l2cap_evt_ch_setup_request_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_l2cap_evt_ch_setup_request_t)
- )
+ concat!("Alignment of ", stringify!(ble_l2cap_evt_ch_setup_request_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_request_t>())).tx_params as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_request_t>())).tx_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11099,10 +10521,7 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_setup_request_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_request_t>())).le_psm as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_request_t>())).le_psm as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -11131,16 +10550,10 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_setup_refused_t() {
assert_eq!(
::core::mem::align_of::<ble_l2cap_evt_ch_setup_refused_t>(),
2usize,
- concat!(
- "Alignment of ",
- stringify!(ble_l2cap_evt_ch_setup_refused_t)
- )
+ concat!("Alignment of ", stringify!(ble_l2cap_evt_ch_setup_refused_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_refused_t>())).source as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_refused_t>())).source as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11150,10 +10563,7 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_setup_refused_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_refused_t>())).status as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_refused_t>())).status as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -11183,9 +10593,7 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_setup_t() {
concat!("Alignment of ", stringify!(ble_l2cap_evt_ch_setup_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_t>())).tx_params as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_setup_t>())).tx_params as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11215,16 +10623,10 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_sdu_buf_released_t() {
assert_eq!(
::core::mem::align_of::<ble_l2cap_evt_ch_sdu_buf_released_t>(),
4usize,
- concat!(
- "Alignment of ",
- stringify!(ble_l2cap_evt_ch_sdu_buf_released_t)
- )
+ concat!("Alignment of ", stringify!(ble_l2cap_evt_ch_sdu_buf_released_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_sdu_buf_released_t>())).sdu_buf as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_sdu_buf_released_t>())).sdu_buf as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11254,9 +10656,7 @@ fn bindgen_test_layout_ble_l2cap_evt_ch_credit_t() {
concat!("Alignment of ", stringify!(ble_l2cap_evt_ch_credit_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_ch_credit_t>())).credits as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_ch_credit_t>())).credits as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11385,10 +10785,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
concat!("Alignment of ", stringify!(ble_l2cap_evt_t__bindgen_ty_1))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11398,10 +10795,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup_refused as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup_refused as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11411,9 +10805,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_setup as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11423,10 +10815,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_sdu_buf_released
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).ch_sdu_buf_released as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11436,9 +10825,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).credit as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).credit as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11448,9 +10835,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).rx as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).rx as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11460,9 +10845,7 @@ fn bindgen_test_layout_ble_l2cap_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).tx as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_l2cap_evt_t__bindgen_ty_1>())).tx as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11637,11 +11020,7 @@ pub unsafe fn sd_ble_l2cap_ch_release(conn_handle: u16, local_cid: u16) -> u32 {
#[doc = " @retval ::NRF_ERROR_RESOURCES Too many SDU data buffers supplied. Wait for a"]
#[doc = " @ref BLE_L2CAP_EVT_CH_RX event and retry."]
#[inline(always)]
-pub unsafe fn sd_ble_l2cap_ch_rx(
- conn_handle: u16,
- local_cid: u16,
- p_sdu_buf: *const ble_data_t,
-) -> u32 {
+pub unsafe fn sd_ble_l2cap_ch_rx(conn_handle: u16, local_cid: u16, p_sdu_buf: *const ble_data_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 186",
inout("r0") to_asm(conn_handle) => ret,
@@ -11696,11 +11075,7 @@ pub unsafe fn sd_ble_l2cap_ch_rx(
#[doc = " @retval ::NRF_ERROR_RESOURCES Too many SDUs queued for transmission. Wait for a"]
#[doc = " @ref BLE_L2CAP_EVT_CH_TX event and retry."]
#[inline(always)]
-pub unsafe fn sd_ble_l2cap_ch_tx(
- conn_handle: u16,
- local_cid: u16,
- p_sdu_buf: *const ble_data_t,
-) -> u32 {
+pub unsafe fn sd_ble_l2cap_ch_tx(conn_handle: u16, local_cid: u16, p_sdu_buf: *const ble_data_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 187",
inout("r0") to_asm(conn_handle) => ret,
@@ -11754,12 +11129,7 @@ pub unsafe fn sd_ble_l2cap_ch_tx(
#[doc = " in progress for an L2CAP channel)."]
#[doc = " @retval ::NRF_ERROR_NOT_FOUND CID not found."]
#[inline(always)]
-pub unsafe fn sd_ble_l2cap_ch_flow_control(
- conn_handle: u16,
- local_cid: u16,
- credits: u16,
- p_credits: *mut u16,
-) -> u32 {
+pub unsafe fn sd_ble_l2cap_ch_flow_control(conn_handle: u16, local_cid: u16, credits: u16, p_credits: *mut u16) -> u32 {
let ret: u32;
core::arch::asm!("svc 188",
inout("r0") to_asm(conn_handle) => ret,
@@ -11844,10 +11214,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::<ble_gattc_conn_cfg_t>())).write_cmd_tx_queue_size as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_conn_cfg_t>())).write_cmd_tx_queue_size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11879,9 +11246,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::<ble_gattc_handle_range_t>())).start_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_handle_range_t>())).start_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -11891,9 +11256,7 @@ fn bindgen_test_layout_ble_gattc_handle_range_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_handle_range_t>())).end_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_handle_range_t>())).end_handle as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -11935,9 +11298,7 @@ fn bindgen_test_layout_ble_gattc_service_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_service_t>())).handle_range as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_service_t>())).handle_range as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -11979,9 +11340,7 @@ fn bindgen_test_layout_ble_gattc_include_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_include_t>())).included_srvc as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_include_t>())).included_srvc as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12072,8 +11431,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
@@ -12153,9 +11511,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::<ble_gattc_write_params_t>())).write_op as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_write_params_t>())).write_op as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12175,9 +11531,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_write_params_t>())).handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_write_params_t>())).handle as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12187,9 +11541,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_write_params_t>())).offset as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_write_params_t>())).offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -12209,9 +11561,7 @@ fn bindgen_test_layout_ble_gattc_write_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_write_params_t>())).p_value as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_write_params_t>())).p_value as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -12285,9 +11635,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::<ble_gattc_attr_info128_t>())).handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_attr_info128_t>())).handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12327,16 +11675,10 @@ fn bindgen_test_layout_ble_gattc_evt_prim_srvc_disc_rsp_t() {
assert_eq!(
::core::mem::align_of::<ble_gattc_evt_prim_srvc_disc_rsp_t>(),
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::<ble_gattc_evt_prim_srvc_disc_rsp_t>())).count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_prim_srvc_disc_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12346,10 +11688,7 @@ fn bindgen_test_layout_ble_gattc_evt_prim_srvc_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_prim_srvc_disc_rsp_t>())).services as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_prim_srvc_disc_rsp_t>())).services as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12382,9 +11721,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::<ble_gattc_evt_rel_disc_rsp_t>())).count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_rel_disc_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12394,9 +11731,7 @@ fn bindgen_test_layout_ble_gattc_evt_rel_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_rel_disc_rsp_t>())).includes as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_rel_disc_rsp_t>())).includes as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12429,9 +11764,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::<ble_gattc_evt_char_disc_rsp_t>())).count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_char_disc_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12441,9 +11774,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_char_disc_rsp_t>())).chars as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_char_disc_rsp_t>())).chars as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12476,9 +11807,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::<ble_gattc_evt_desc_disc_rsp_t>())).count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_desc_disc_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12488,9 +11817,7 @@ fn bindgen_test_layout_ble_gattc_evt_desc_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_desc_disc_rsp_t>())).descs as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_desc_disc_rsp_t>())).descs as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12542,8 +11869,8 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1>()))
- .attr_info16 as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1>())).attr_info16 as *const _
+ as usize
},
0usize,
concat!(
@@ -12555,8 +11882,8 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1>()))
- .attr_info128 as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t__bindgen_ty_1>())).attr_info128 as *const _
+ as usize
},
0usize,
concat!(
@@ -12577,16 +11904,10 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() {
assert_eq!(
::core::mem::align_of::<ble_gattc_evt_attr_info_disc_rsp_t>(),
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::<ble_gattc_evt_attr_info_disc_rsp_t>())).count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12596,10 +11917,7 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t>())).format as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t>())).format as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12609,10 +11927,7 @@ fn bindgen_test_layout_ble_gattc_evt_attr_info_disc_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t>())).info as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_attr_info_disc_rsp_t>())).info as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -12644,9 +11959,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::<ble_gattc_handle_value_t>())).handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_handle_value_t>())).handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12656,9 +11969,7 @@ fn bindgen_test_layout_ble_gattc_handle_value_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_handle_value_t>())).p_value as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_handle_value_t>())).p_value as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -12686,24 +11997,15 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() {
assert_eq!(
::core::mem::size_of::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>(),
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::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>(),
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::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12714,8 +12016,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).value_len
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).value_len as *const _ as usize
},
2usize,
concat!(
@@ -12727,8 +12028,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_val_by_uuid_read_rsp_t() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).handle_value
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_char_val_by_uuid_read_rsp_t>())).handle_value as *const _ as usize
},
4usize,
concat!(
@@ -12766,9 +12066,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::<ble_gattc_evt_read_rsp_t>())).handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_read_rsp_t>())).handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12778,9 +12076,7 @@ fn bindgen_test_layout_ble_gattc_evt_read_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_read_rsp_t>())).offset as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_read_rsp_t>())).offset as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12830,15 +12126,10 @@ fn bindgen_test_layout_ble_gattc_evt_char_vals_read_rsp_t() {
assert_eq!(
::core::mem::align_of::<ble_gattc_evt_char_vals_read_rsp_t>(),
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::<ble_gattc_evt_char_vals_read_rsp_t>())).len as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_char_vals_read_rsp_t>())).len as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12848,10 +12139,7 @@ fn bindgen_test_layout_ble_gattc_evt_char_vals_read_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_char_vals_read_rsp_t>())).values as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_char_vals_read_rsp_t>())).values as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12890,9 +12178,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::<ble_gattc_evt_write_rsp_t>())).handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_write_rsp_t>())).handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -12902,9 +12188,7 @@ fn bindgen_test_layout_ble_gattc_evt_write_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_write_rsp_t>())).write_op as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_write_rsp_t>())).write_op as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -12914,9 +12198,7 @@ fn bindgen_test_layout_ble_gattc_evt_write_rsp_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_write_rsp_t>())).offset as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_write_rsp_t>())).offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -13030,16 +12312,10 @@ fn bindgen_test_layout_ble_gattc_evt_exchange_mtu_rsp_t() {
assert_eq!(
::core::mem::align_of::<ble_gattc_evt_exchange_mtu_rsp_t>(),
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::<ble_gattc_evt_exchange_mtu_rsp_t>())).server_rx_mtu as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_exchange_mtu_rsp_t>())).server_rx_mtu as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13091,24 +12367,15 @@ fn bindgen_test_layout_ble_gattc_evt_write_cmd_tx_complete_t() {
assert_eq!(
::core::mem::size_of::<ble_gattc_evt_write_cmd_tx_complete_t>(),
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::<ble_gattc_evt_write_cmd_tx_complete_t>(),
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::<ble_gattc_evt_write_cmd_tx_complete_t>())).count as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_write_cmd_tx_complete_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13173,10 +12440,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::<ble_gattc_evt_t__bindgen_ty_1>())).prim_srvc_disc_rsp
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).prim_srvc_disc_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13186,10 +12450,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).rel_disc_rsp as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).rel_disc_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13199,10 +12460,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_disc_rsp as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_disc_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13212,10 +12470,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).desc_disc_rsp as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).desc_disc_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13226,8 +12481,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_val_by_uuid_read_rsp
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_val_by_uuid_read_rsp as *const _ as usize
},
0usize,
concat!(
@@ -13238,9 +12492,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).read_rsp as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).read_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13250,10 +12502,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_vals_read_rsp
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).char_vals_read_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13263,10 +12512,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).write_rsp as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).write_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13276,9 +12522,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).hvx as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).hvx as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13288,10 +12532,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).exchange_mtu_rsp as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).exchange_mtu_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13301,9 +12542,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).timeout as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).timeout as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13313,10 +12552,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).attr_info_disc_rsp
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).attr_info_disc_rsp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -13327,8 +12563,7 @@ fn bindgen_test_layout_ble_gattc_evt_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).write_cmd_tx_complete
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gattc_evt_t__bindgen_ty_1>())).write_cmd_tx_complete as *const _ as usize
},
0usize,
concat!(
@@ -13653,11 +12888,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,
@@ -13713,10 +12944,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,
@@ -13906,9 +13134,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::<ble_gatts_conn_cfg_t>())).hvn_tx_queue_size as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_conn_cfg_t>())).hvn_tx_queue_size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14007,14 +13233,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
@@ -14306,9 +13526,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_ext_props as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_ext_props as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -14318,9 +13536,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_md_t>())).p_char_user_desc as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_md_t>())).p_char_user_desc as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -14330,10 +13546,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_user_desc_max_size as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_user_desc_max_size as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -14343,10 +13556,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_user_desc_size as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_md_t>())).char_user_desc_size as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
@@ -14366,9 +13576,7 @@ fn bindgen_test_layout_ble_gatts_char_md_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_md_t>())).p_user_desc_md as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_md_t>())).p_user_desc_md as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
@@ -14424,9 +13632,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::<ble_gatts_char_handles_t>())).value_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).value_handle as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14436,10 +13642,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).user_desc_handle as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).user_desc_handle as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -14449,9 +13652,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).cccd_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).cccd_handle as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -14461,9 +13662,7 @@ fn bindgen_test_layout_ble_gatts_char_handles_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).sccd_handle as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_char_handles_t>())).sccd_handle as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
@@ -14578,10 +13777,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::<ble_gatts_authorize_params_t>())).gatt_status as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).gatt_status as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14591,9 +13787,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).offset as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -14603,9 +13797,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).len as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).len as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
@@ -14615,9 +13807,7 @@ fn bindgen_test_layout_ble_gatts_authorize_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).p_data as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_authorize_params_t>())).p_data as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
@@ -14641,8 +13831,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
@@ -14688,8 +13877,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1>())).read
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1>())).read as *const _ as usize
},
0usize,
concat!(
@@ -14701,8 +13889,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1>())).write
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t__bindgen_ty_1>())).write as *const _ as usize
},
0usize,
concat!(
@@ -14718,24 +13905,15 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t() {
assert_eq!(
::core::mem::size_of::<ble_gatts_rw_authorize_reply_params_t>(),
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::<ble_gatts_rw_authorize_reply_params_t>(),
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::<ble_gatts_rw_authorize_reply_params_t>())).type_ as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14745,10 +13923,7 @@ fn bindgen_test_layout_ble_gatts_rw_authorize_reply_params_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t>())).params as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_rw_authorize_reply_params_t>())).params as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -14791,8 +13966,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
@@ -14825,10 +13999,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::<ble_gatts_cfg_attr_tab_size_t>())).attr_tab_size as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_cfg_attr_tab_size_t>())).attr_tab_size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14861,9 +14032,7 @@ fn bindgen_test_layout_ble_gatts_cfg_t() {
concat!("Alignment of ", stringify!(ble_gatts_cfg_t))
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_cfg_t>())).service_changed as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_cfg_t>())).service_changed as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -14946,9 +14115,7 @@ fn bindgen_test_layout_ble_gatts_evt_write_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_write_t>())).auth_required as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_write_t>())).auth_required as *const _ as usize },
7usize,
concat!(
"Offset of field: ",
@@ -15078,8 +14245,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1>())).read
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1>())).read as *const _ as usize
},
0usize,
concat!(
@@ -15091,8 +14257,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1() {
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1>())).write
- as *const _ as usize
+ &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t__bindgen_ty_1>())).write as *const _ as usize
},
0usize,
concat!(
@@ -15108,24 +14273,15 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t() {
assert_eq!(
::core::mem::size_of::<ble_gatts_evt_rw_authorize_request_t>(),
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::<ble_gatts_evt_rw_authorize_request_t>(),
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::<ble_gatts_evt_rw_authorize_request_t>())).type_ as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15135,10 +14291,7 @@ fn bindgen_test_layout_ble_gatts_evt_rw_authorize_request_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t>())).request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_rw_authorize_request_t>())).request as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -15165,15 +14318,10 @@ fn bindgen_test_layout_ble_gatts_evt_sys_attr_missing_t() {
assert_eq!(
::core::mem::align_of::<ble_gatts_evt_sys_attr_missing_t>(),
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::<ble_gatts_evt_sys_attr_missing_t>())).hint as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_sys_attr_missing_t>())).hint as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15225,24 +14373,15 @@ fn bindgen_test_layout_ble_gatts_evt_exchange_mtu_request_t() {
assert_eq!(
::core::mem::size_of::<ble_gatts_evt_exchange_mtu_request_t>(),
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::<ble_gatts_evt_exchange_mtu_request_t>(),
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::<ble_gatts_evt_exchange_mtu_request_t>())).client_rx_mtu
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_exchange_mtu_request_t>())).client_rx_mtu as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15302,9 +14441,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::<ble_gatts_evt_hvn_tx_complete_t>())).count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_hvn_tx_complete_t>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15353,9 +14490,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::<ble_gatts_evt_t__bindgen_ty_1>())).write as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).write as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15365,10 +14500,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).authorize_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).authorize_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15378,10 +14510,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).sys_attr_missing as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).sys_attr_missing as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15391,9 +14520,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).hvc as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).hvc as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15403,10 +14530,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).exchange_mtu_request
- as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).exchange_mtu_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15416,9 +14540,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).timeout as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).timeout as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15428,10 +14550,7 @@ fn bindgen_test_layout_ble_gatts_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).hvn_tx_complete as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_gatts_evt_t__bindgen_ty_1>())).hvn_tx_complete as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -15494,11 +14613,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,
@@ -15533,11 +14648,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,
@@ -15649,11 +14760,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,
@@ -15687,11 +14794,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,
@@ -15766,10 +14869,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,
@@ -15815,11 +14915,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,
@@ -15918,12 +15014,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,
@@ -16012,11 +15103,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,
@@ -16189,9 +15276,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::<ble_evt_user_mem_request_t>())).type_ as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_user_mem_request_t>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16223,9 +15308,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::<ble_evt_user_mem_release_t>())).type_ as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_user_mem_release_t>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16235,9 +15318,7 @@ fn bindgen_test_layout_ble_evt_user_mem_release_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_evt_user_mem_release_t>())).mem_block as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_user_mem_release_t>())).mem_block as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -16278,10 +15359,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::<ble_common_evt_t__bindgen_ty_1>())).user_mem_request as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_evt_t__bindgen_ty_1>())).user_mem_request as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16291,10 +15369,7 @@ fn bindgen_test_layout_ble_common_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_evt_t__bindgen_ty_1>())).user_mem_release as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_evt_t__bindgen_ty_1>())).user_mem_release as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16361,12 +15436,7 @@ fn bindgen_test_layout_ble_evt_hdr_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_evt_hdr_t>())).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::<ble_evt_hdr_t>())).evt_len as *const _ as usize },
@@ -16414,9 +15484,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::<ble_evt_t__bindgen_ty_1>())).common_evt as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).common_evt as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16426,9 +15494,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gap_evt as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gap_evt as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16438,9 +15504,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gattc_evt as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gattc_evt as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16450,9 +15514,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gatts_evt as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).gatts_evt as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16462,9 +15524,7 @@ fn bindgen_test_layout_ble_evt_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).l2cap_evt as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_evt_t__bindgen_ty_1>())).l2cap_evt as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16489,22 +15549,12 @@ fn bindgen_test_layout_ble_evt_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_evt_t>())).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::<ble_evt_t>())).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."]
@@ -16551,9 +15601,7 @@ fn bindgen_test_layout_ble_version_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_version_t>())).subversion_number as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_version_t>())).subversion_number as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -16617,13 +15665,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
@@ -16687,9 +15730,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).lna_cfg as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).lna_cfg as *const _ as usize },
1usize,
concat!(
"Offset of field: ",
@@ -16699,9 +15740,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).ppi_ch_id_set as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).ppi_ch_id_set as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
@@ -16711,9 +15750,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).ppi_ch_id_clr as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).ppi_ch_id_clr as *const _ as usize },
3usize,
concat!(
"Offset of field: ",
@@ -16723,9 +15760,7 @@ fn bindgen_test_layout_ble_common_opt_pa_lna_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).gpiote_ch_id as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_opt_pa_lna_t>())).gpiote_ch_id as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
@@ -16776,8 +15811,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
@@ -16813,10 +15847,7 @@ fn bindgen_test_layout_ble_common_opt_extended_rc_cal_t() {
assert_eq!(
::core::mem::align_of::<ble_common_opt_extended_rc_cal_t>(),
1usize,
- concat!(
- "Alignment of ",
- stringify!(ble_common_opt_extended_rc_cal_t)
- )
+ concat!("Alignment of ", stringify!(ble_common_opt_extended_rc_cal_t))
);
}
impl ble_common_opt_extended_rc_cal_t {
@@ -16833,8 +15864,7 @@ impl ble_common_opt_extended_rc_cal_t {
}
#[inline]
pub fn new_bitfield_1(enable: u8) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
- Default::default();
+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let enable: u8 = unsafe { ::core::mem::transmute(enable) };
enable as u64
@@ -16887,9 +15917,7 @@ fn bindgen_test_layout_ble_common_opt_t() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_common_opt_t>())).extended_rc_cal as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_opt_t>())).extended_rc_cal as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -16924,22 +15952,12 @@ fn bindgen_test_layout_ble_opt_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_opt_t>())).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::<ble_opt_t>())).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"]
@@ -16997,10 +16015,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::<ble_conn_cfg_t__bindgen_ty_1>())).gap_conn_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gap_conn_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17010,10 +16025,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gattc_conn_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gattc_conn_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17023,10 +16035,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gatts_conn_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gatts_conn_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17036,10 +16045,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gatt_conn_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).gatt_conn_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17049,10 +16055,7 @@ fn bindgen_test_layout_ble_conn_cfg_t__bindgen_ty_1() {
)
);
assert_eq!(
- unsafe {
- &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).l2cap_conn_cfg as *const _
- as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_conn_cfg_t__bindgen_ty_1>())).l2cap_conn_cfg as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17119,9 +16122,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::<ble_common_cfg_vs_uuid_t>())).vs_uuid_count as *const _ as usize
- },
+ unsafe { &(*(::core::ptr::null::<ble_common_cfg_vs_uuid_t>())).vs_uuid_count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
@@ -17191,42 +16192,22 @@ fn bindgen_test_layout_ble_cfg_t() {
assert_eq!(
unsafe { &(*(::core::ptr::null::<ble_cfg_t>())).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::<ble_cfg_t>())).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::<ble_cfg_t>())).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::<ble_cfg_t>())).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))
);
}
@@ -17454,11 +16435,7 @@ pub unsafe fn sd_ble_uuid_vs_remove(p_uuid_type: *mut u8) -> u32 {
#[doc = " @retval ::NRF_ERROR_INVALID_LENGTH Invalid UUID length."]
#[doc = " @retval ::NRF_ERROR_NOT_FOUND For a 128-bit UUID, no match in the populated table of UUIDs."]
#[inline(always)]
-pub unsafe fn sd_ble_uuid_decode(
- uuid_le_len: u8,
- p_uuid_le: *const u8,
- p_uuid: *mut ble_uuid_t,
-) -> u32 {
+pub unsafe fn sd_ble_uuid_decode(uuid_le_len: u8, p_uuid_le: *const u8, p_uuid: *mut ble_uuid_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 99",
inout("r0") to_asm(uuid_le_len) => ret,
@@ -17482,11 +16459,7 @@ pub unsafe fn sd_ble_uuid_decode(
#[doc = " @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied."]
#[doc = " @retval ::NRF_ERROR_INVALID_PARAM Invalid UUID type."]
#[inline(always)]
-pub unsafe fn sd_ble_uuid_encode(
- p_uuid: *const ble_uuid_t,
- p_uuid_le_len: *mut u8,
- p_uuid_le: *mut u8,
-) -> u32 {
+pub unsafe fn sd_ble_uuid_encode(p_uuid: *const ble_uuid_t, p_uuid_le_len: *mut u8, p_uuid_le: *mut u8) -> u32 {
let ret: u32;
core::arch::asm!("svc 100",
inout("r0") to_asm(p_uuid) => ret,