dis.h File Reference

Device Information Service API. More...

#include "gr_includes.h"
#include "custom_config.h"
#include <stdint.h>

Go to the source code of this file.

Classes

struct  dis_string_t
 UTF-8 string data type. More...
 
struct  dis_sys_id_t
 System ID parameters. The first field is the LSOs and the second field contains the MSOs. More...
 
struct  dis_reg_cert_data_list_t
 IEEE 11073-20601 Regulatory Certification Data List Structure. More...
 
struct  dis_pnp_id_t
 PnP ID parameters. More...
 
struct  dis_init_t
 Device Information Service init structure. This contains all options and data needed for initialization of the service. More...
 

Macros

#define DIS_CONNECTION_MAX   10
 
#define DIS_SYS_ID_LEN   8
 
#define DIS_PNP_ID_LEN   7
 
#define DIS_VAL_MAX_LEN   128
 
#define DIS_IEEE_CERTIF_MIN_LEN   6
 
#define DIS_CHAR_SYSTEM_ID_SUP   0x00000006
 
#define DIS_CHAR_MODEL_NUMBER_SUP   0x00000018
 
#define DIS_CHAR_SERIAL_NUMBER_SUP   0x00000060
 
#define DIS_CHAR_FIRMWARE_REV_SUP   0x00000180
 
#define DIS_CHAR_HARDWARE_REV_SUP   0x00000600
 
#define DIS_CHAR_SOFTWARE_REV_SUP   0x00001800
 
#define DIS_CHAR_MANUFACTURER_NAME_SUP   0x00006000
 
#define DIS_CHAR_11073_CERT_DATA_SUP   0x00018000
 
#define DIS_CHAR_PNP_ID_SUP   0x00060000
 
#define DIS_CHAR_FULL   0x0007ffff
 
#define DIS_11073_BODY_EMPTY   0
 
#define DIS_11073_BODY_IEEE   1
 
#define DIS_11073_BODY_CONTINUA   2
 
#define DIS_11073_BODY_EXP   254
 

Functions

sdk_err_t dis_service_init (dis_init_t *p_dis_init)
 Initialize a Device Information Service instance and add in the database. More...
 
uint16_t dis_service_start_handle_get (void)
 Provide the interface for other modules to obtain the dis service start handle . More...
 

Detailed Description

Device Information Service API.

Attention
#####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file dis.h.