Struct nrf_softdevice_s132::ble_gap_addr_t
source · #[repr(C)]pub struct ble_gap_addr_t {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub addr: [u8; 6],
}
Expand description
@brief Bluetooth Low Energy address.
Fields§
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
§addr: [u8; 6]
< 48-bit address, LSB format. @ref addr is not used if @ref addr_type is @ref BLE_GAP_ADDR_TYPE_ANONYMOUS.
Implementations§
source§impl ble_gap_addr_t
impl ble_gap_addr_t
pub fn addr_id_peer(&self) -> u8
pub fn set_addr_id_peer(&mut self, val: u8)
pub fn addr_type(&self) -> u8
pub fn set_addr_type(&mut self, val: u8)
pub fn new_bitfield_1(
addr_id_peer: u8,
addr_type: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations§
source§impl Clone for ble_gap_addr_t
impl Clone for ble_gap_addr_t
source§fn clone(&self) -> ble_gap_addr_t
fn clone(&self) -> ble_gap_addr_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more