52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) Fenda Technologies Co., Ltd. 2022. All rights reserved.
|
|
*
|
|
* Description: 汇顶APP服务
|
|
*
|
|
* Author: george
|
|
*
|
|
* Create: 2022-11-10
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef SVC_GDCS_H
|
|
#define SVC_GDCS_H
|
|
|
|
#include "att_api.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/******************************************************************************/
|
|
/* Type definitions */
|
|
/******************************************************************************/
|
|
/* GDCS传感器的数据交互服务的句柄范围. */
|
|
#define GDCS_START_HDL 0x300
|
|
#define GDCS_END_HDL (GDCS_MAX_HDL - 1)
|
|
|
|
/* GDCS传感器的数据交互服务的句柄枚举. */
|
|
enum {
|
|
GDCS_SVC_HDL = GDCS_START_HDL, /* 服务声明句柄. */
|
|
GDCS_RX_CH_HDL, /* GDCS write command characteristic */
|
|
GDCS_RX_HDL, /* GDCS write command data */
|
|
GDCS_TX_CH_HDL, /* GDCS notify characteristic */
|
|
GDCS_TX_HDL, /* GDCS notify data */
|
|
GDCS_TX_CH_CCC_HDL, /* GDCS notify client characteristic configuration */
|
|
GDCS_MAX_HDL
|
|
};
|
|
|
|
/******************************************************************************/
|
|
/* Function definitions */
|
|
/******************************************************************************/
|
|
void svc_gdcs_add_group(void);
|
|
void svc_gdcs_remove_group(void);
|
|
void svc_gdcs_cback_register(attsReadCback_t readCback, attsWriteCback_t writeCback);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //SVC_GDCS_H
|