#include "btstack_config.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ancs_client.h"
#include "ble/att_db.h"
#include "ble/core.h"
#include "ble/gatt_client.h"
#include "ble/sm.h"
#include "btstack_debug.h"
#include "btstack_event.h"
#include "btstack_run_loop.h"
#include "classic/sdp_util.h"
#include "gap.h"
Macros | |
#define | __BTSTACK_FILE__ "ancs_client.c" |
Typedefs | |
typedef enum ancs_chunk_parser_state | ancs_chunk_parser_state_t |
Functions | |
static void | ancs_chunk_parser_handle_byte (uint8_t data) |
static void | ancs_chunk_parser_init (void) |
const char * | ancs_client_attribute_name_for_id (int id) |
void | ancs_client_init (void) |
void | ancs_client_register_callback (btstack_packet_handler_t handler) |
static void | handle_hci_event (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size) |
static void | notify_client_simple (int event_type) |
static void | notify_client_text (int event_type) |
#define __BTSTACK_FILE__ "ancs_client.c" |
typedef enum ancs_chunk_parser_state ancs_chunk_parser_state_t |
enum tc_state_t |
|
static |
References ancs_attribute_len, ancs_bytes_received, ANCS_SUBEVENT_CLIENT_NOTIFICATION, little_endian_read_16(), notify_client_text(), W4_ATTRIBUTE_COMPLETE, W4_ATTRIBUTE_ID, and W4_ATTRIBUTE_LEN.
Referenced by handle_hci_event().
|
static |
References W4_ATTRIBUTE_ID.
Referenced by handle_hci_event().
const char* ancs_client_attribute_name_for_id | ( | int | id | ) |
References ANCS_ATTRBUTE_NAMES_COUNT, and ancs_attribute_names.
void ancs_client_init | ( | void | ) |
void ancs_client_register_callback | ( | btstack_packet_handler_t | handler | ) |
|
static |
References ancs_chunk_parser_handle_byte(), ancs_chunk_parser_init(), ANCS_SUBEVENT_CLIENT_CONNECTED, ANCS_SUBEVENT_CLIENT_DISCONNECTED, GATT_CLIENT_CHARACTERISTICS_CONFIGURATION_NOTIFICATION, gatt_client_discover_characteristics_for_service(), gatt_client_discover_primary_services_by_uuid128(), gatt_client_listen_for_characteristic_value_updates(), gatt_client_write_client_characteristic_configuration(), gatt_client_write_value_of_characteristic(), GATT_EVENT_CHARACTERISTIC_QUERY_RESULT, GATT_EVENT_INDICATION, GATT_EVENT_NOTIFICATION, GATT_EVENT_QUERY_COMPLETE, GATT_EVENT_SERVICE_QUERY_RESULT, HCI_EVENT_DISCONNECTION_COMPLETE, hci_event_disconnection_complete_get_connection_handle(), HCI_EVENT_ENCRYPTION_CHANGE, HCI_EVENT_LE_META, hci_event_packet_get_type(), HCI_SUBEVENT_LE_CONNECTION_COMPLETE, little_endian_read_16(), little_endian_read_32(), little_endian_store_32(), log_info, log_info_hexdump(), notify_client_simple(), sm_send_security_request(), TC_IDLE, TC_SUBSCRIBED, TC_W4_CHARACTERISTIC_RESULT, TC_W4_DATA_SOURCE_SUBSCRIBED, TC_W4_ENCRYPTED_CONNECTION, TC_W4_NOTIFICATION_SOURCE_SUBSCRIBED, TC_W4_SERVICE_RESULT, UNUSED, gatt_client_characteristic_t::uuid128, and gatt_client_characteristic_t::value_handle.
Referenced by ancs_client_init().
|
static |
References HCI_EVENT_ANCS_META, HCI_EVENT_PACKET, and little_endian_store_16().
Referenced by handle_hci_event().
|
static |
References ancs_attribute_len, ancs_notification_buffer, HCI_EVENT_ANCS_META, HCI_EVENT_PACKET, and little_endian_store_16().
Referenced by ancs_chunk_parser_handle_byte().
|
static |
Referenced by ancs_client_attribute_name_for_id().
|
static |
|
static |
Referenced by ancs_chunk_parser_handle_byte(), and notify_client_text().
|
static |
Referenced by ancs_client_attribute_name_for_id().
|
static |
|
static |
Referenced by ancs_chunk_parser_handle_byte().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by notify_client_text().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |