Location:
bttypes.h
Link against: bluetooth.lib
TBTDevAddr
Supported from 6.1
A 48-bit Bluetooth device address.
This class represents the unique address that each Bluetooth device has built into its hardware. It is used for handling addresses of remote devices.
The classes handles addresses as big-endian: i.e. the first byte of the address is the most significant.
Defined in TBTDevAddr
:
Des()
, Reset()
, TBTDevAddr()
, operator!=()
, operator==()
, operator[]()
TBTDevAddr(const TInt64 &aInt);
Constructs a device address from a TInt64
.
The function panics if the most significant 16 bits of aInt
are non-zero, as device addresses are
48 bits in size.
|
TBTDevAddr(const TDesC8 &aDes);
Constructs a device address from a data buffer.
The buffer is copied directly into the object. The function panics if aDes
does not have a length of 6 bytes (48 bits).
|
TBool operator==(const TBTDevAddr& aAddr) const;
Overloaded equality operator.
|
|
TBool operator!=(const TBTDevAddr& aAddr) const;
Overloaded inequality operator.
|
|
const TUint8& operator[](TInt aIndex) const;
Overloaded array element operator, const
version.
This function handles the address as a 6-byte array of TUint
values.
|
|
TUint8& operator[](TInt aIndex);
Overloaded array element operator, non-const
version.
This function handles the address as a 6-byte array of TUint
values.
|
|
const TPtrC8 Des() const;
Gets the address as a descriptor, const
version.
|
TPtr8 Des();
Gets the address as a descriptor, non-const
version.
|
void Reset();
Sets the address to zero.