Function nrf_softdevice_s140::sd_ble_uuid_encode
source · pub unsafe fn sd_ble_uuid_encode(
p_uuid: *const ble_uuid_t,
p_uuid_le_len: *mut u8,
p_uuid_le: *mut u8
) -> u32
Expand description
@brief Encode a @ref 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.
@param[in] p_uuid Pointer to a @ref ble_uuid_t structure that will be encoded into bytes. @param[out] p_uuid_le_len Pointer to a uint8_t that will be filled with the encoded length (2 or 16 bytes). @param[out] p_uuid_le Pointer to a buffer where the little endian raw UUID bytes (2 or 16) will be stored.
@retval ::NRF_SUCCESS Successfully encoded into the buffer. @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied. @retval ::NRF_ERROR_INVALID_PARAM Invalid UUID type.