Skip to content

Update bindgen #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/src/bin/ble_advertise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_bas_central.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_bas_peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_bas_peripheral_notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ async fn main(spawner: Spawner) {
central_role_count: 0,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_bond_central.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 1,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_bond_peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ async fn main(spawner: Spawner) -> ! {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_dis_bas_peripheral_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_keyboard_peripheral_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_keyboard_peripheral_builder_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_l2cap_central.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ async fn main(spawner: Spawner) {
central_role_count: 15,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
conn_l2cap: Some(raw::ble_l2cap_conn_cfg_t {
ch_count: 1,
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_l2cap_peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ async fn main(spawner: Spawner) {
central_role_count: 15,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
conn_l2cap: Some(raw::ble_l2cap_conn_cfg_t {
ch_count: 1,
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_peripheral_onoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/ble_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ async fn main(spawner: Spawner) {
central_role_count: 3,
central_sec_count: 0,
_bitfield_1: raw::ble_gap_cfg_role_count_t::new_bitfield_1(0),
_bitfield_align_1: [],
}),
gap_device_name: Some(raw::ble_gap_cfg_device_name_t {
p_value: b"HelloRust" as *const u8 as _,
current_len: 9,
max_len: 9,
write_perm: unsafe { mem::zeroed() },
_bitfield_1: raw::ble_gap_cfg_device_name_t::new_bitfield_1(raw::BLE_GATTS_VLOC_STACK as u8),
_bitfield_align_1: [],
}),
..Default::default()
};
Expand Down
2 changes: 1 addition & 1 deletion nrf-softdevice-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
bindgen = "0.55.1"
bindgen = "0.70.0"
walkdir = "2.3.1"
regex = "1.3.9"
Loading
Loading