91 UUID(
const char* fullUuid);
93 UUID(
const UUID& baseUuid, uint16_t shortUuid);
98 ble_uuid_t
_uuid = {.uuid = 0, .type = BLE_UUID_TYPE_UNKNOWN};
Class that enables the use of 128 bit service UUIDs.
Definition: cs_UUID.h:35
ble_uuid_t getUuid() const
Get the UUID that can be used for soft device operations.
UUID(const UUID &baseUuid, uint16_t shortUuid)
cs_ret_code_t fromFullUuid(const char *fullUuid)
Set UUID from a 128b UUID string.
ble_uuid_t _uuid
Definition: cs_UUID.h:98
ret_code_t fromShortUuidInternal(uint16_t shortUuid)
ret_code_t add(const ble_uuid128_t &fullUuid)
Registers the 128b UUID, without checking if already registered.
ret_code_t fromBaseUuidInternal(const UUID &baseUuid, uint16_t shortUuid)
ret_code_t fromFullUuidInternal(const ble_uuid128_t &fullUuid)
static ret_code_t rem(const ble_uuid_t &uuid)
Removes a 128b UUID from the soft device.
static cs_ret_code_t fromNrfCode(ret_code_t nrfCode)
Get the CS return code from an nrf return code.
cs_ret_code_t fromBaseUuid(const UUID &baseUuid, uint16_t shortUuid)
Set UUID derived from an existing 128b base UUID.
cs_ret_code_t fromShortUuid(uint16_t shortUuid)
Set UUID from a 16b UUID.
cs_ret_code_t fromFullUuid(const ble_uuid128_t &fullUuid)
Set UUID from a 128b UUID.
UUID(const char *fullUuid)
Convenience constructors, will crash the firmware instead of returning an error code.
bool operator==(const UUID &other)
ret_code_t getFromCache(const ble_uuid128_t &fullUuid)
Checks if the 128b UUID has been registered, and sets _uuid if so.
uint32_t ret_code_t
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Apr.
Definition: cs_Nordic.h:14
uint16_t cs_ret_code_t
Definition: cs_Typedefs.h:21