49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) Fenda Technologies Co., Ltd. 2022. All rights reserved.
|
|
*
|
|
* Description: 汇顶APP服务
|
|
*
|
|
* Author: george
|
|
*
|
|
* Create: 2022-11-10
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef BLE_GDCS_API_H
|
|
#define BLE_GDCS_API_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "att_api.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/*! Configurable parameters */
|
|
typedef struct {
|
|
uint8_t txCccIdx; /*!< Uart tx CCC index */
|
|
} GdcsCfg_t;
|
|
|
|
void gdcs_init(wsfHandlerId_t handlerId);
|
|
|
|
void gdcs_stop(dmConnId_t connId);
|
|
|
|
void gdcs_start(dmConnId_t connId);
|
|
|
|
bool gdcs_get_notify_status(void);
|
|
|
|
void gdcs_send_data(uint8_t *buf, uint16_t len);
|
|
|
|
uint8_t gdcs_write_cback(dmConnId_t connId, uint16_t handle,
|
|
uint8_t operation, uint16_t offset,
|
|
uint16_t len, uint8_t *pValue, attsAttr_t *pAttr);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|