BLE_GAP_ReadChannelMap

C

uint16_t BLE_GAP_ReadChannelMap(uint16_t connHandle, uint8_t *p_map);

Description

Retrieves the channel map for the specific connection.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[out] p_map5-byte channel map array with 37 1-bit fields corresponding to the 37 data channels. A '0' indicates a bad channel, and a '1' indicates an unknown channel status. The most significant bits are reserved and must be set to 0.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully retrieves the channel map.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_UNKNOWN_CONN_IDUnknown connection identifier.