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.
Public Member Functions | |
---|---|
TBTAFHHostChannelClassification() | |
IMPORT_C void | Reset() |
IMPORT_C TInt | SetChannelBad(const TUint8) |
IMPORT_C TInt | SetChannelRangeBad(const TUint8, const TUint8) |
IMPORT_C TInt | Validate() |
Private Member Functions | |
---|---|
TInt | BitByteIndices(TUint8 &, TUint8 &, const TUint8) |
TInt | DoSetChannelBad(const TUint8) |
TUint8 | NumUnknownsWithinRange(const TUint8, const TUint8) |
Private Attributes | |
---|---|
TUint32 | iPadding1 |
TUint32 | iPadding2 |
Inherited Attributes | |
---|---|
TBuf8< KHCIAFHHostChannelClassificationSize >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
TInt | BitByteIndices | ( | TUint8 & | aByteIndex, |
TUint8 & | aBitIndex, | |||
const TUint8 | aChannel | |||
) | const [private] |
TInt | DoSetChannelBad | ( | const TUint8 | aChannel | ) | [private] |
const TUint8 aChannel |
TUint8 | NumUnknownsWithinRange | ( | const TUint8 | aChannelRangeLowest, |
const TUint8 | aChannelRangeHighest | |||
) | const [private] |
IMPORT_C TInt | SetChannelBad | ( | const TUint8 | aChannel | ) |
const TUint8 aChannel |
IMPORT_C TInt | SetChannelRangeBad | ( | const TUint8 | aChannelRangeLowest, |
const TUint8 | aChannelRangeHighest | |||
) |