dis_c.h File Reference

Device Information Service Client API. More...

#include "gr_includes.h"
#include "ble_prf_types.h"
#include "custom_config.h"
#include <stdint.h>
#include <stdbool.h>
+ Include dependency graph for dis_c.h:

Go to the source code of this file.

Classes

struct  dis_c_handles_t
 Handles on the connected peer device needed to interact with it. More...
 
struct  dis_c_string_t
 Response data for string-based DIS characteristics. More...
 
struct  dis_c_sys_id_t
 Response data for System ID parameters. More...
 
struct  dis_c_reg_cert_data_list_t
 Response data for IEEE 11073-20601 Regulatory Certification Data List Structure. More...
 
struct  dis_c_pnp_id_t
 Response data for PnP ID parameters. More...
 
struct  ble_dis_c_read_rsp_t
 Device Information Service Client Read Response encode structure. More...
 
struct  dis_c_evt_t
 Device Information Service Client event. More...
 

Macros

#define DIS_C_CONNECTION_MAX   10
 Maximum number of DIS Client connections. More...
 
#define DIS_C_STRING_LEN_MAX   128
 Maximal length for Characteristic values - 128 bytes. More...
 
#define DIS_C_11073_BODY_EMPTY   0
 Empty body type. More...
 
#define DIS_C_11073_BODY_IEEE   1
 IEEE body type. More...
 
#define DIS_C_11073_BODY_CONTINUA   2
 Continua body type. More...
 
#define DIS_C_11073_BODY_EXP   254
 Exp body type. More...
 

Typedefs

typedef void(* dis_c_evt_handler_t) (dis_c_evt_t *p_evt)
 Device Information Service Client event handler type. More...
 

Enumerations

enum  dis_c_evt_type_t { DIS_C_EVT_INVALID, DIS_C_EVT_DISCOVERY_COMPLETE, DIS_C_EVT_DISCOVERY_FAIL, DIS_C_EVT_DEV_INFORMATION_READ_RSP }
 Device Information Service Client event type. More...
 
enum  dis_c_char_type_t {
  DIS_C_SYS_ID, DIS_C_MODEL_NUM, DIS_C_SERIAL_NUM, DIS_C_HW_REV,
  DIS_C_FW_REV, DIS_C_SW_REV, DIS_C_MANUF_NAME, DIS_C_CERT_LIST,
  DIS_C_PNP_ID, DIS_C_CHARACTER_NB
}
 Device Information Service Client characteristic type. More...
 

Functions

sdk_err_t dis_client_init (dis_c_evt_handler_t evt_handler)
 Register DIS Client event handler. More...
 
sdk_err_t dis_c_disc_srvc_start (uint8_t conn_idx)
 Discovery Device Information Service on peer. More...
 
sdk_err_t dis_c_char_value_read (uint8_t conn_idx, dis_c_char_type_t char_read_type)
 Read Device Information Service characteristic value. More...
 

Detailed Description

Device Information Service Client API.

Definition in file dis_c.h.