Lines Matching refs:chrc
1396 struct bt_gatt_chrc *chrc; in discover_otc_char_func() local
1410 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_otc_char_func()
1411 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_FEATURE)) { in discover_otc_char_func()
1413 mcs_inst->otc.feature_handle = chrc->value_handle; in discover_otc_char_func()
1414 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_NAME)) { in discover_otc_char_func()
1416 mcs_inst->otc.obj_name_handle = chrc->value_handle; in discover_otc_char_func()
1417 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_TYPE)) { in discover_otc_char_func()
1419 mcs_inst->otc.obj_type_handle = chrc->value_handle; in discover_otc_char_func()
1420 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_SIZE)) { in discover_otc_char_func()
1422 mcs_inst->otc.obj_size_handle = chrc->value_handle; in discover_otc_char_func()
1423 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_ID)) { in discover_otc_char_func()
1425 mcs_inst->otc.obj_id_handle = chrc->value_handle; in discover_otc_char_func()
1426 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_PROPERTIES)) { in discover_otc_char_func()
1427 LOG_DBG("Object properties %d", chrc->value_handle); in discover_otc_char_func()
1428 mcs_inst->otc.obj_properties_handle = chrc->value_handle; in discover_otc_char_func()
1429 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_ACTION_CP)) { in discover_otc_char_func()
1431 mcs_inst->otc.oacp_handle = chrc->value_handle; in discover_otc_char_func()
1434 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_LIST_CP)) { in discover_otc_char_func()
1436 mcs_inst->otc.olcp_handle = chrc->value_handle; in discover_otc_char_func()
1445 sub_params->value_handle = chrc->value_handle; in discover_otc_char_func()
1773 struct bt_gatt_chrc *chrc; in discover_mcs_char_func() local
1787 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_mcs_char_func()
1789 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PLAYER_NAME)) { in discover_mcs_char_func()
1790 LOG_DBG("Player name, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1791 mcs_inst->player_name_handle = chrc->value_handle; in discover_mcs_char_func()
1794 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1798 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_ICON_OBJ_ID)) { in discover_mcs_char_func()
1799 LOG_DBG("Icon Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1800 mcs_inst->icon_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1803 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_ICON_URL)) { in discover_mcs_char_func()
1804 LOG_DBG("Icon URL, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1805 mcs_inst->icon_url_handle = chrc->value_handle; in discover_mcs_char_func()
1807 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_TRACK_CHANGED)) { in discover_mcs_char_func()
1808 LOG_DBG("Track Changed, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1809 mcs_inst->track_changed_handle = chrc->value_handle; in discover_mcs_char_func()
1811 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1815 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_TRACK_TITLE)) { in discover_mcs_char_func()
1816 LOG_DBG("Track Title, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1817 mcs_inst->track_title_handle = chrc->value_handle; in discover_mcs_char_func()
1820 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1826 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_TRACK_DURATION)) { in discover_mcs_char_func()
1827 LOG_DBG("Track Duration, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1828 mcs_inst->track_duration_handle = chrc->value_handle; in discover_mcs_char_func()
1830 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1835 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_TRACK_POSITION)) { in discover_mcs_char_func()
1836 LOG_DBG("Track Position, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1837 mcs_inst->track_position_handle = chrc->value_handle; in discover_mcs_char_func()
1840 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1846 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PLAYBACK_SPEED)) { in discover_mcs_char_func()
1847 LOG_DBG("Playback Speed, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1848 mcs_inst->playback_speed_handle = chrc->value_handle; in discover_mcs_char_func()
1851 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1859 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_SEEKING_SPEED)) { in discover_mcs_char_func()
1860 LOG_DBG("Seeking Speed, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1861 mcs_inst->seeking_speed_handle = chrc->value_handle; in discover_mcs_char_func()
1863 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1868 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_TRACK_SEGMENTS_OBJ_ID)) { in discover_mcs_char_func()
1869 LOG_DBG("Track Segments Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1870 mcs_inst->segments_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1871 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_CURRENT_TRACK_OBJ_ID)) { in discover_mcs_char_func()
1872 LOG_DBG("Current Track Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1873 mcs_inst->current_track_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1875 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1879 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_NEXT_TRACK_OBJ_ID)) { in discover_mcs_char_func()
1880 LOG_DBG("Next Track Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1881 mcs_inst->next_track_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1883 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1886 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PARENT_GROUP_OBJ_ID)) { in discover_mcs_char_func()
1887 LOG_DBG("Parent Group Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1888 mcs_inst->parent_group_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1890 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1894 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_CURRENT_GROUP_OBJ_ID)) { in discover_mcs_char_func()
1895 LOG_DBG("Group Object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1896 mcs_inst->current_group_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1898 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1904 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PLAYING_ORDER)) { in discover_mcs_char_func()
1905 LOG_DBG("Playing Order, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1906 mcs_inst->playing_order_handle = chrc->value_handle; in discover_mcs_char_func()
1909 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1915 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_PLAYING_ORDERS)) { in discover_mcs_char_func()
1916 LOG_DBG("Playing Orders supported, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1917 mcs_inst->playing_orders_supported_handle = chrc->value_handle; in discover_mcs_char_func()
1920 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_MEDIA_STATE)) { in discover_mcs_char_func()
1921 LOG_DBG("Media State, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1922 mcs_inst->media_state_handle = chrc->value_handle; in discover_mcs_char_func()
1924 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1928 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_MEDIA_CONTROL_POINT)) { in discover_mcs_char_func()
1929 LOG_DBG("Media Control Point, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1930 mcs_inst->cp_handle = chrc->value_handle; in discover_mcs_char_func()
1932 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1936 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_MEDIA_CONTROL_OPCODES)) { in discover_mcs_char_func()
1938 bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1939 mcs_inst->opcodes_supported_handle = chrc->value_handle; in discover_mcs_char_func()
1941 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1947 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_SEARCH_CONTROL_POINT)) { in discover_mcs_char_func()
1948 LOG_DBG("Search control point, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1949 mcs_inst->scp_handle = chrc->value_handle; in discover_mcs_char_func()
1951 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1954 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_MCS_SEARCH_RESULTS_OBJ_ID)) { in discover_mcs_char_func()
1955 LOG_DBG("Search Results object, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1956 mcs_inst->search_results_obj_id_handle = chrc->value_handle; in discover_mcs_char_func()
1958 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in discover_mcs_char_func()
1964 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_CCID)) { in discover_mcs_char_func()
1965 LOG_DBG("Content Control ID, UUID: %s", bt_uuid_str(chrc->uuid)); in discover_mcs_char_func()
1966 mcs_inst->content_control_id_handle = chrc->value_handle; in discover_mcs_char_func()