Location:
btdevice.h
Link against: btdevice.lib
class TBTAFHHostChannelClassification : public TBuf8< KHCIAFHHostChannelClassificationSize >;
Descriptor class that should be used to help set up an AFH host channel classification for the controller.
The bits in each byte of this descriptor are used to tell the controller which channels the host anticipates will become busy and so advisable for Bluetooth to avoid. Such channels are referred to as 'bad', and are represented by bits set to 0. Channels that are not 'bad' are referred to as 'unknown' implying simply that the host has no knowledge that they are, or are about to become 'bad'. These are represented by bits set to 1. Note: The Bluetooth specification demands that at least 20 channels must be set to 'unknown'. Any attempt by the user of this class to set too many 'bad' channels will result in the return of a KErrNotSupported error, and the attempt having no effect.
TBuf8< KHCIAFHHostChannelClassificationSize >
- No description.
TBTAFHHostChannelClassification
- Descriptor class that should be used to help set up an AFH host channel classification for the controller
Defined in TBTAFHHostChannelClassification
:
Reset()
, SetChannelBad()
, SetChannelRangeBad()
, TBTAFHHostChannelClassification()
, Validate()
IMPORT_C void Reset();
Resets descriptor to default value
The default value is that in which there are no bad channels in 79 channel set. Note: most significant bit is reserved and set to zero.
IMPORT_C TInt Validate() const;
Check that this AFH host channel classification conforms to the spec.
Checks that at least 20 channels are NOT set to bad, as required in Bluetooth specification. Also checks length is ten bytes.
|
IMPORT_C TInt SetChannelBad(const TUint8 aChannel);
Set a channel in this TBTAFHHostChannelClassification as 'bad' or busy.
Channels are represented by the bits in the TBTAFHHostChannelClassification descriptor. The most significant leftmost bit is always set to 0. The next most significant bit represents channel 78 The least significant rightmost bit represents channel 0 SetChannelBad unsets (i.e. sets to 0) the bit specified by the parameter 'aChannel'.
|
|
IMPORT_C TInt SetChannelRangeBad(const TUint8 aChannelRangeLowest, const TUint8 aChannelRangeHighest);
Set a range of channels in this TBTAFHHostChannelClassification as 'bad' or busy.
Channels are represented by the bits in the TBTAFHHostChannelClassification descriptor. The most significant leftmost bit is always set to 0. The next most significant bit represents channel 78 The least significant rightmost bit represents channel 0 SetChannelRangeBad unsets (i.e. sets to 0) all bits in the range ['aChannelRangeLowest','aChannelRangeHighest'], that is all bits between and including the bit repesenting 'aChannelRangeLowest' and the bit representing 'aChannelRangeHighest'.
|
|