Go to the documentation of this file.
66 #include "custom_config.h"
73 #define DIS_CONNECTION_MAX 10
74 #define DIS_SYS_ID_LEN 8
75 #define DIS_PNP_ID_LEN 7
76 #define DIS_VAL_MAX_LEN 128
77 #define DIS_IEEE_CERTIF_MIN_LEN 6
84 #define DIS_CHAR_SYSTEM_ID_SUP 0x00000006
85 #define DIS_CHAR_MODEL_NUMBER_SUP 0x00000018
86 #define DIS_CHAR_SERIAL_NUMBER_SUP 0x00000060
87 #define DIS_CHAR_FIRMWARE_REV_SUP 0x00000180
88 #define DIS_CHAR_HARDWARE_REV_SUP 0x00000600
89 #define DIS_CHAR_SOFTWARE_REV_SUP 0x00001800
90 #define DIS_CHAR_MANUFACTURER_NAME_SUP 0x00006000
91 #define DIS_CHAR_11073_CERT_DATA_SUP 0x00018000
92 #define DIS_CHAR_PNP_ID_SUP 0x00060000
93 #define DIS_CHAR_FULL 0x0007ffff
100 #define DIS_11073_BODY_EMPTY 0
101 #define DIS_11073_BODY_IEEE 1
102 #define DIS_11073_BODY_CONTINUA 2
103 #define DIS_11073_BODY_EXP 254
122 uint8_t manufacturer_id[5];
123 uint8_t org_unique_id[3];
dis_reg_cert_data_list_t reg_cert_data_list
Initial IEEE 11073-20601 Regulatory Certification Data List.
dis_string_t model_num_str
Initial model Number String.
dis_string_t manufact_name_str
Initial manufacturer Name String.
uint16_t vendor_id
Vendor ID.
uint32_t char_mask
Initial mask of Supported characteristics, and configured with Characteristics Mask.
uint16_t product_version
Product Version.
dis_string_t sw_rev_str
Initial software Revision String.
uint8_t list_len
Length of the list.
uint8_t vendor_id_source
Vendor ID Source.
uint16_t product_id
Product ID.
uint16_t sdk_err_t
SDK API result type.
dis_string_t serial_num_str
Initial serial Number String.
char * p_list
Pointer to the list which contains the encoded opaque structure based on IEEE 11073-20601 specificati...
uint16_t dis_service_start_handle_get(void)
Provide the interface for other modules to obtain the dis service start handle .
Device Information Service init structure.
dis_pnp_id_t * p_pnp_id
Initial PnP ID.
IEEE 11073-20601 Regulatory Certification Data List Structure.
uint8_t length
String length.
sdk_err_t dis_service_init(dis_init_t *p_dis_init)
Initialize a Device Information Service instance and add in the database.
dis_sys_id_t * p_sys_id
Initial system ID.
dis_string_t hw_rev_str
Initial hardware Revision String.
dis_string_t fw_rev_str
Initial firmware Revision String.