summaryrefslogtreecommitdiff
path: root/nrf-softdevice-s113
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-s113
parent84006cd336adf2642cb5716433abb5540c4fb8b9 (diff)
downloadnrf-softdevice-98a31ce672c3113a2c238dc4e2ae9d632e59713a.zip
Add rustfmt.toml to match embassy formatting
Diffstat (limited to 'nrf-softdevice-s113')
-rw-r--r--nrf-softdevice-s113/src/bindings.rs1796
1 files changed, 411 insertions, 1385 deletions
diff --git a/nrf-softdevice-s113/src/bindings.rs b/nrf-softdevice-s113/src/bindings.rs
index 8911cca..82fda54 100644
--- a/nrf-softdevice-s113/src/bindings.rs
+++ b/nrf-softdevice-s113/src/bindings.rs
@@ -950,73 +950,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;
@@ -1109,9 +1093,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: ",
@@ -1121,9 +1103,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: ",
@@ -1133,9 +1113,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: ",
@@ -1145,10 +1123,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: ",
@@ -1184,9 +1159,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: ",
@@ -1196,9 +1169,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: ",
@@ -1208,9 +1179,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: ",
@@ -1220,9 +1189,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: ",
@@ -1260,16 +1227,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: ",
@@ -1279,10 +1240,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: ",
@@ -1305,9 +1263,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: ",
@@ -1354,8 +1310,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: ",
@@ -1363,8 +1318,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 ",
@@ -1373,10 +1327,8 @@ fn bindgen_test_layout_nrf_radio_signal_callback_return_param_t__bindgen_ty_1__b
);
assert_eq!(
unsafe {
- &(*(::core::ptr::null::<
- nrf_radio_signal_callback_return_param_t__bindgen_ty_1__bindgen_ty_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!(
@@ -1396,8 +1348,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: ",
@@ -1405,8 +1356,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 ",
@@ -1415,10 +1365,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!(
@@ -1449,8 +1397,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!(
@@ -1462,8 +1410,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!(
@@ -1479,23 +1427,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!(
@@ -1506,10 +1447,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: ",
@@ -1530,9 +1468,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];
@@ -1626,9 +1563,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: ",
@@ -1638,9 +1573,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: ",
@@ -2437,10 +2370,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,
@@ -2602,12 +2532,7 @@ pub unsafe fn sd_flash_page_erase(page_number: u32) -> u32 {
#[doc = " @retval ::NRF_ERROR_NOT_SUPPORTED Non-zero value supplied to one or more of the unsupported parameters."]
#[doc = " @retval ::NRF_SUCCESS Values successfully written to configuration registers."]
#[inline(always)]
-pub unsafe fn sd_flash_protect(
- block_cfg0: u32,
- block_cfg1: u32,
- block_cfg2: u32,
- block_cfg3: u32,
-) -> u32 {
+pub unsafe fn sd_flash_protect(block_cfg0: u32, block_cfg1: u32, block_cfg2: u32, block_cfg3: u32) -> u32 {
let ret: u32;
core::arch::asm!("svc 42",
inout("r0") to_asm(block_cfg0) => ret,
@@ -2834,9 +2759,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: ",
@@ -2875,8 +2798,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 = ""]
@@ -3039,22 +2961,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."]
@@ -3081,22 +2993,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."]
@@ -3243,8 +3145,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
@@ -3320,8 +3221,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
@@ -3514,9 +3414,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: ",
@@ -3526,9 +3424,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: ",
@@ -3570,24 +3466,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: ",
@@ -3614,24 +3501,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: ",
@@ -3682,9 +3560,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: ",
@@ -3694,9 +3570,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: ",
@@ -3706,9 +3580,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: ",
@@ -3718,10 +3590,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: ",
@@ -3732,8 +3601,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!(
@@ -4017,12 +3885,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
@@ -4057,12 +3921,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 {
@@ -4089,12 +3948,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
@@ -4141,10 +3996,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: ",
@@ -4154,10 +4006,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: ",
@@ -4167,9 +4016,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: ",
@@ -4179,9 +4026,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: ",
@@ -4243,8 +4088,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
@@ -4288,9 +4132,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: ",
@@ -4322,12 +4164,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)."]
@@ -4401,9 +4238,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: ",
@@ -4413,9 +4248,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: ",
@@ -4445,9 +4278,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: ",
@@ -4457,9 +4288,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: ",
@@ -4469,9 +4298,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: ",
@@ -4481,9 +4308,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: ",
@@ -4493,9 +4318,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: ",
@@ -4529,19 +4352,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
@@ -4594,9 +4412,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: ",
@@ -4649,9 +4465,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: ",
@@ -4661,10 +4475,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: ",
@@ -4674,10 +4485,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: ",
@@ -4687,9 +4495,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: ",
@@ -4812,14 +4618,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
@@ -4866,9 +4666,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: ",
@@ -4878,9 +4676,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: ",
@@ -4900,9 +4696,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: ",
@@ -4988,8 +4782,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
@@ -5083,13 +4876,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
@@ -5324,9 +5112,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: ",
@@ -5346,9 +5132,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: ",
@@ -5358,9 +5142,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: ",
@@ -5370,9 +5152,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: ",
@@ -5402,9 +5182,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: ",
@@ -5434,10 +5212,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: ",
@@ -5464,15 +5239,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!(
@@ -5507,9 +5278,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: ",
@@ -5519,9 +5288,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: ",
@@ -5531,9 +5298,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: ",
@@ -5560,16 +5325,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: ",
@@ -5603,10 +5362,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: ",
@@ -5616,10 +5372,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: ",
@@ -5664,13 +5417,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
@@ -5707,9 +5455,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: ",
@@ -5733,8 +5479,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
@@ -5762,9 +5507,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: ",
@@ -5794,10 +5537,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: ",
@@ -5827,16 +5567,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: ",
@@ -5860,8 +5594,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
@@ -5935,14 +5668,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
@@ -6181,10 +5908,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: ",
@@ -6194,10 +5918,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: ",
@@ -6207,10 +5928,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: ",
@@ -6220,10 +5938,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: ",
@@ -6254,15 +5969,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!(
@@ -6274,8 +5985,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!(
@@ -6287,8 +5997,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!(
@@ -6328,9 +6037,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: ",
@@ -6340,9 +6047,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: ",
@@ -6352,9 +6057,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: ",
@@ -6364,9 +6067,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: ",
@@ -6376,9 +6077,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: ",
@@ -6423,13 +6122,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
@@ -6465,9 +6159,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: ",
@@ -6529,9 +6221,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: ",
@@ -6541,9 +6231,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: ",
@@ -6580,16 +6268,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: ",
@@ -6599,10 +6281,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: ",
@@ -6613,8 +6292,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!(
@@ -6625,10 +6303,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: ",
@@ -6703,14 +6378,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
@@ -6755,10 +6424,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: ",
@@ -6768,9 +6434,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: ",
@@ -6780,10 +6444,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: ",
@@ -6805,23 +6466,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!(
@@ -6849,16 +6503,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: ",
@@ -6935,9 +6583,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: ",
@@ -6947,10 +6593,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: ",
@@ -6960,10 +6603,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: ",
@@ -6973,10 +6613,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: ",
@@ -6986,10 +6623,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: ",
@@ -6999,10 +6633,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: ",
@@ -7012,10 +6643,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: ",
@@ -7025,10 +6653,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: ",
@@ -7038,10 +6663,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: ",
@@ -7051,10 +6673,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: ",
@@ -7064,10 +6683,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: ",
@@ -7077,9 +6693,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: ",
@@ -7089,10 +6703,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: ",
@@ -7102,10 +6713,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: ",
@@ -7115,10 +6723,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: ",
@@ -7128,10 +6733,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: ",
@@ -7141,10 +6743,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: ",
@@ -7154,9 +6753,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: ",
@@ -7167,8 +6764,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!(
@@ -7179,10 +6775,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: ",
@@ -7217,12 +6810,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."]
@@ -7267,9 +6855,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: ",
@@ -7309,9 +6895,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: ",
@@ -7321,10 +6905,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: ",
@@ -7386,9 +6967,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: ",
@@ -7398,9 +6977,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: ",
@@ -7410,9 +6987,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: ",
@@ -7422,9 +6997,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: ",
@@ -7448,8 +7021,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
@@ -7478,10 +7050,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: ",
@@ -7512,9 +7081,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: ",
@@ -7637,9 +7204,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: ",
@@ -7700,16 +7265,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: ",
@@ -7719,10 +7278,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: ",
@@ -7732,10 +7288,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: ",
@@ -7774,16 +7327,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: ",
@@ -7807,8 +7354,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
@@ -7849,9 +7395,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: ",
@@ -7897,16 +7441,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: ",
@@ -7917,8 +7455,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!(
@@ -7960,17 +7497,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: ",
@@ -7990,9 +7520,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: ",
@@ -8002,9 +7530,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: ",
@@ -8046,9 +7572,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: ",
@@ -8058,10 +7582,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: ",
@@ -8072,8 +7593,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!(
@@ -8084,10 +7604,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: ",
@@ -8476,10 +7993,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,
@@ -8730,10 +8244,7 @@ pub unsafe fn sd_ble_gap_device_name_get(p_dev_name: *mut u8, p_len: *mut u16) -
#[doc = " @retval ::NRF_ERROR_NO_MEM The maximum number of authentication procedures that can run in parallel for the given role is reached."]
#[doc = " @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied."]
#[inline(always)]
-pub unsafe fn sd_ble_gap_authenticate(
- conn_handle: u16,
- p_sec_params: *const ble_gap_sec_params_t,
-) -> u32 {
+pub unsafe fn sd_ble_gap_authenticate(conn_handle: u16, p_sec_params: *const ble_gap_sec_params_t) -> u32 {
let ret: u32;
core::arch::asm!("svc 126",
inout("r0") to_asm(conn_handle) => ret,
@@ -8876,10 +8387,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,
@@ -9047,10 +8555,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,
@@ -9455,9 +8960,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: ",
@@ -9467,9 +8970,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: ",
@@ -9522,9 +9023,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: ",
@@ -9534,9 +9033,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: ",
@@ -9546,9 +9043,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: ",
@@ -9585,9 +9080,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: ",
@@ -9597,9 +9090,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: ",
@@ -9609,9 +9100,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: ",
@@ -9652,9 +9141,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: ",
@@ -9664,9 +9151,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: ",
@@ -9676,9 +9161,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: ",
@@ -9688,9 +9171,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: ",
@@ -9719,16 +9200,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: ",
@@ -9738,10 +9213,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: ",
@@ -9770,16 +9242,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: ",
@@ -9789,10 +9255,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: ",
@@ -9822,9 +9285,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: ",
@@ -9854,16 +9315,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: ",
@@ -9893,9 +9348,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: ",
@@ -10024,10 +9477,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: ",
@@ -10037,10 +9487,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: ",
@@ -10050,9 +9497,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: ",
@@ -10062,10 +9507,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: ",
@@ -10075,9 +9517,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: ",
@@ -10087,9 +9527,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: ",
@@ -10099,9 +9537,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: ",
@@ -10276,11 +9712,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,
@@ -10335,11 +9767,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,
@@ -10393,12 +9821,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,
@@ -10483,10 +9906,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: ",
@@ -10518,9 +9938,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: ",
@@ -10530,9 +9948,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: ",
@@ -10574,9 +9990,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: ",
@@ -10618,9 +10032,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: ",
@@ -10711,8 +10123,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
@@ -10792,9 +10203,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: ",
@@ -10814,9 +10223,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: ",
@@ -10826,9 +10233,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: ",
@@ -10848,9 +10253,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: ",
@@ -10924,9 +10327,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: ",
@@ -10966,16 +10367,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: ",
@@ -10985,10 +10380,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: ",
@@ -11021,9 +10413,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: ",
@@ -11033,9 +10423,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: ",
@@ -11068,9 +10456,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: ",
@@ -11080,9 +10466,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: ",
@@ -11115,9 +10499,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: ",
@@ -11127,9 +10509,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: ",
@@ -11181,8 +10561,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!(
@@ -11194,8 +10574,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!(
@@ -11216,16 +10596,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: ",
@@ -11235,10 +10609,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: ",
@@ -11248,10 +10619,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: ",
@@ -11283,9 +10651,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: ",
@@ -11295,9 +10661,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: ",
@@ -11325,24 +10689,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: ",
@@ -11353,8 +10708,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!(
@@ -11366,8 +10720,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!(
@@ -11405,9 +10758,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: ",
@@ -11417,9 +10768,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: ",
@@ -11469,15 +10818,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: ",
@@ -11487,10 +10831,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: ",
@@ -11529,9 +10870,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: ",
@@ -11541,9 +10880,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: ",
@@ -11553,9 +10890,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: ",
@@ -11669,16 +11004,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: ",
@@ -11730,24 +11059,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: ",
@@ -11812,10 +11132,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: ",
@@ -11825,10 +11142,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: ",
@@ -11838,10 +11152,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: ",
@@ -11851,10 +11162,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: ",
@@ -11865,8 +11173,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!(
@@ -11877,9 +11184,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: ",
@@ -11889,10 +11194,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: ",
@@ -11902,10 +11204,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: ",
@@ -11915,9 +11214,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: ",
@@ -11927,10 +11224,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: ",
@@ -11940,9 +11234,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: ",
@@ -11952,10 +11244,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: ",
@@ -11966,8 +11255,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!(
@@ -12292,11 +11580,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,
@@ -12352,10 +11636,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,
@@ -12545,9 +11826,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: ",
@@ -12646,14 +11925,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
@@ -12945,9 +12218,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: ",
@@ -12957,9 +12228,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: ",
@@ -12969,10 +12238,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: ",
@@ -12982,10 +12248,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: ",
@@ -13005,9 +12268,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: ",
@@ -13063,9 +12324,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: ",
@@ -13075,10 +12334,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: ",
@@ -13088,9 +12344,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: ",
@@ -13100,9 +12354,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: ",
@@ -13217,10 +12469,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: ",
@@ -13230,9 +12479,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: ",
@@ -13242,9 +12489,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: ",
@@ -13254,9 +12499,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: ",
@@ -13280,8 +12523,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
@@ -13327,8 +12569,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!(
@@ -13340,8 +12581,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!(
@@ -13357,24 +12597,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: ",
@@ -13384,10 +12615,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: ",
@@ -13430,8 +12658,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
@@ -13464,10 +12691,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: ",
@@ -13500,9 +12724,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: ",
@@ -13585,9 +12807,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: ",
@@ -13717,8 +12937,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!(
@@ -13730,8 +12949,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!(
@@ -13747,24 +12965,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: ",
@@ -13774,10 +12983,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: ",
@@ -13804,15 +13010,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: ",
@@ -13864,24 +13065,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: ",
@@ -13941,9 +13133,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: ",
@@ -13992,9 +13182,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: ",
@@ -14004,10 +13192,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: ",
@@ -14017,10 +13202,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: ",
@@ -14030,9 +13212,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: ",
@@ -14042,10 +13222,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: ",
@@ -14055,9 +13232,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: ",
@@ -14067,10 +13242,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: ",
@@ -14133,11 +13305,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,
@@ -14172,11 +13340,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,
@@ -14288,11 +13452,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,
@@ -14326,11 +13486,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,
@@ -14405,10 +13561,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,
@@ -14454,11 +13607,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,
@@ -14557,12 +13706,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,
@@ -14651,11 +13795,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,
@@ -14828,9 +13968,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: ",
@@ -14862,9 +14000,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: ",
@@ -14874,9 +14010,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: ",
@@ -14917,10 +14051,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: ",
@@ -14930,10 +14061,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: ",
@@ -15000,12 +14128,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 },
@@ -15053,9 +14176,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: ",
@@ -15065,9 +14186,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: ",
@@ -15077,9 +14196,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: ",
@@ -15089,9 +14206,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: ",
@@ -15101,9 +14216,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: ",
@@ -15128,22 +14241,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."]
@@ -15190,9 +14293,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: ",
@@ -15256,13 +14357,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
@@ -15326,9 +14422,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: ",
@@ -15338,9 +14432,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: ",
@@ -15350,9 +14442,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: ",
@@ -15362,9 +14452,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: ",
@@ -15415,8 +14503,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
@@ -15452,10 +14539,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 {
@@ -15472,8 +14556,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
@@ -15526,9 +14609,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: ",
@@ -15563,22 +14644,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"]
@@ -15635,10 +14706,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: ",
@@ -15648,10 +14716,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: ",
@@ -15661,10 +14726,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: ",
@@ -15674,10 +14736,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: ",
@@ -15687,10 +14746,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: ",
@@ -15757,9 +14813,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: ",
@@ -15829,42 +14883,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))
);
}
@@ -16092,11 +15126,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,
@@ -16120,11 +15150,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,