riot_sys

Function ble_hs_hci_set_chan_class

Source
pub unsafe extern "C" fn ble_hs_hci_set_chan_class(
    chan_map: *const u8,
) -> c_int
Expand description

Instructs the controller to use the specified channel map. The channel map is represented as an array of five bytes, with each bit corresponding to an individual channel. The array is interpreted as little-endian, such that: map[0] & 0x01 –> Channel 0. map[0] & 0x02 –> Channel 1. … map[1] & 0x01 –> Channel 8.

As there are 37 channels, only the first 37 bits should be written are used.

If a bit is 1, the corresponding channel can be used. Otherwise, the channel should not be used.

@param chan_map The channel map to configure. This buffer should have a size of 5 bytes.

@return 0 on success; A BLE host HCI return code if the controller rejected the request; A BLE host core return code on unexpected error.