Skip to content

Commit 87bc337

Browse files
committed
uefi-raw: Add UEFI types BLUETOOTH_ADDRESS and BLUETOOTH_LE_ADDRESS
Signed-off-by: Mate Kukri <[email protected]>
1 parent e8f2f02 commit 87bc337

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

uefi-raw/src/lib.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,20 @@ impl Default for IpAddress {
133133
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
134134
#[repr(transparent)]
135135
pub struct MacAddress(pub [u8; 32]);
136+
137+
/// Bluetooth address.
138+
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
139+
#[repr(transparent)]
140+
pub struct BluetoothAddress(pub [u8; 6]);
141+
142+
/// Bluetooth Low Energy address.
143+
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
144+
#[repr(C)]
145+
pub struct BluetoothLeAddress {
146+
/// Device address
147+
pub address: [u8; 6],
148+
149+
/// 0x00 - Public Device Address
150+
/// 0x01 - Random Device Address
151+
pub address_type: u8,
152+
}

0 commit comments

Comments
 (0)