S115 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_uuid_encode()

uint32_t sd_ble_uuid_encode ( ble_uuid_t const * p_uuid,
uint8_t * p_uuid_le_len,
uint8_t * p_uuid_le )

#include <ble.h>

Encode a ble_uuid_t structure into little endian raw UUID bytes (16-bit or 128-bit).

Note
The pointer to the destination buffer p_uuid_le may be NULL, in which case only the validity and size of p_uuid is computed.
Parameters
[in]p_uuidPointer to a ble_uuid_t structure that will be encoded into bytes.
[out]p_uuid_le_lenPointer to a uint8_t that will be filled with the encoded length (2 or 16 bytes).
[out]p_uuid_lePointer to a buffer where the little endian raw UUID bytes (2 or 16) will be stored.
Return values
NRF_SUCCESSSuccessfully encoded into the buffer.
NRF_ERROR_INVALID_ADDRInvalid pointer supplied.
NRF_ERROR_INVALID_PARAMInvalid UUID type.