pub type protocomm_ble_config_t = protocomm_ble_config;
Expand description
@brief Config parameters for protocomm BLE service
Aliased Type§
struct protocomm_ble_config_t {
pub device_name: [i8; 30],
pub service_uuid: [u8; 16],
pub manufacturer_data: *mut u8,
pub manufacturer_data_len: isize,
pub nu_lookup_count: isize,
pub nu_lookup: *mut name_uuid,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub ble_addr: *mut u8,
pub _bitfield_align_2: [u8; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}
Fields§
§device_name: [i8; 30]
BLE device name being broadcast at the time of provisioning
service_uuid: [u8; 16]
128 bit UUID of the provisioning service
manufacturer_data: *mut u8
BLE device manufacturer data pointer in advertisement
manufacturer_data_len: isize
BLE device manufacturer data length in advertisement
nu_lookup_count: isize
Number of entries in the Name-UUID lookup table
nu_lookup: *mut name_uuid
Pointer to the Name-UUID lookup table
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§ble_addr: *mut u8
BLE address
_bitfield_align_2: [u8; 0]
§_bitfield_2: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: [u8; 3]
Implementations
Source§impl protocomm_ble_config
impl protocomm_ble_config
pub fn ble_bonding(&self) -> c_uint
pub fn set_ble_bonding(&mut self, val: c_uint)
pub unsafe fn ble_bonding_raw(this: *const Self) -> c_uint
pub unsafe fn set_ble_bonding_raw(this: *mut Self, val: c_uint)
pub fn ble_sm_sc(&self) -> c_uint
pub fn set_ble_sm_sc(&mut self, val: c_uint)
pub unsafe fn ble_sm_sc_raw(this: *const Self) -> c_uint
pub unsafe fn set_ble_sm_sc_raw(this: *mut Self, val: c_uint)
pub fn ble_link_encryption(&self) -> c_uint
pub fn set_ble_link_encryption(&mut self, val: c_uint)
pub unsafe fn ble_link_encryption_raw(this: *const Self) -> c_uint
pub unsafe fn set_ble_link_encryption_raw(this: *mut Self, val: c_uint)
pub fn new_bitfield_1( ble_bonding: c_uint, ble_sm_sc: c_uint, ble_link_encryption: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
pub fn ble_notify(&self) -> c_uint
pub fn set_ble_notify(&mut self, val: c_uint)
pub unsafe fn ble_notify_raw(this: *const Self) -> c_uint
pub unsafe fn set_ble_notify_raw(this: *mut Self, val: c_uint)
pub fn new_bitfield_2(ble_notify: c_uint) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations
Source§impl Clone for protocomm_ble_config
impl Clone for protocomm_ble_config
Source§fn clone(&self) -> protocomm_ble_config
fn clone(&self) -> protocomm_ble_config
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more