Select Bluetooth BR/EDR channel index to hop for next frequency
selects a Bluetooth® basic rate/enhanced data rate (BR/EDR) channel index,
X] = nextHop(
channelIndex to hop for next frequency. This selection is based on
the Bluetooth BR/EDR frequency hopping object,
FH, the clock,
Clock, and the SequenceType property of the cfgFH. The object function
X, which is required for implementing whitening process in
the physical layer (PHY).
Select Bluetooth BR/EDR Channel Index Using Default Values
Create a default Bluetooth BR/EDR channel index object for frequency hopping.
cfgFH = bluetoothFrequencyHop
cfgFH = bluetoothFrequencyHop with properties: DeviceAddress: '9E8B33' SequenceType: 'Inquiry' KNudge: 0 KOffset: 24
Specify a clock value.
inputClock = '12C'; % 28-bit
Select a Bluetooth BR/EDR channel index to hop for the next frequency.
[channelIndex,X] = nextHop(cfgFH,inputClock)
channelIndex = 41
X = 30
cfgFH — Bluetooth BR/EDR channel index for frequency hopping
Bluetooth BR/EDR channel index for frequency hopping, specified as a
Clock — Clock
character vector in hexadecimal format | string scalar in hexadecimal format | numeric scalar in the range [0, 228–1]
Clock, specified as one of these values:
Character vector — This vector represents the
Clockin hexadecimal format
String scalar — This scalar represents the
Clockin hexadecimal format
Numeric scalar — This scalar represent the
Clockin the range [0, 228–1]
This argument is a 28-bit value that computes the inputs to the hop
selection kernel. This table shows the dependency of this argument on the value of the
SequenceType property of the
|Value of |
Indicates native clock of the Central
Indicates native clock of the Peripheral
Indicates the estimated value of the clock for the Peripheral
Indicates the value when the access code of the recipient is detected
Indicates the value that triggered a response from the paged device
From R2022a, this object function uses 'Central' and 'Peripheral' terminologies to represent 'Master' and 'Slave' nodes, respectively.
channelIndex — Channel index
integer in the range [0, 78]
Channel index, returned as an integer in the range [0, 78].
X — Control signal to be used in whitening process
Control signal to be used in whitening process, returned as a nonnegative integer.
 Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2021. https://www.bluetooth.com/.
 Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.3. https://www.bluetooth.com/.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2020b