Microchip® Advanced Software Framework

ancs.h File Reference

ANCS Service Declarations.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  ancs_prf
 

Macros

#define ANCS_SERV_UUID   "\xD0\x00\x2D\x12\x1E\x4B\x0F\xA4\x99\x4E\xCE\xB5\x31\xF4\x05\x79"
 ANCS Service Solicitation Info. More...
 
#define UUID_128BIT_LEN   (16)
 
#define UUID_16BIT_LEN   (2)
 UUID Type & Length. More...
 
#define UUID_32BIT_LEN   (4)
 

Typedefs

typedef struct ancs_prf ancs_prf_t
 

Functions

void ancs_enable (ancs_prf_t *anp_data, at_ble_handle_t handle)
 Enabling ANCS service. More...
 
void ancs_init (ancs_prf_t *ancs_data)
 Initializing Ancs data. More...
 

#define ANCS_SERV_UUID   "\xD0\x00\x2D\x12\x1E\x4B\x0F\xA4\x99\x4E\xCE\xB5\x31\xF4\x05\x79"

ANCS Service Solicitation Info.

Referenced by ancs_enable().

#define UUID_128BIT_LEN   (16)
#define UUID_16BIT_LEN   (2)

UUID Type & Length.

#define UUID_32BIT_LEN   (4)

typedef struct ancs_prf ancs_prf_t

void ancs_enable ( ancs_prf_t anp_data,
at_ble_handle_t  handle 
)

Enabling ANCS service.

Parameters
[in]Instanceof ancs data
Note
Called by the profile

Enabling ANCS service.

Parameters
[in]servicedata [in] servcie handle

References ancs_prf::ancs_serv, ANCS_SERV_UUID, AT_BLE_UUID_128, at_ble_primary_service_found_t::conn_handle, at_ble_primary_service_found_t::service_uuid, at_ble_uuid_t::type, at_ble_uuid_t::uuid, and UUID_128BIT_LEN.

Referenced by anp_client_connected_state_handler().

void ancs_init ( ancs_prf_t ancs_data)

Initializing Ancs data.

Parameters
[in]Instanceof ancs data
Note
Called by the profile
Parameters
[in]Instanceof ancs data

Referenced by anp_client_init().