Struct nrf_softdevice_s140::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 moresource§impl Debug for ble_gap_addr_t
impl Debug for ble_gap_addr_t
impl Copy for ble_gap_addr_t
Auto Trait Implementations§
impl RefUnwindSafe for ble_gap_addr_t
impl Send for ble_gap_addr_t
impl Sync for ble_gap_addr_t
impl Unpin for ble_gap_addr_t
impl UnwindSafe for ble_gap_addr_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more