WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
sle_ssap_client.h 文件参考
#include <stdint.h>
#include <stdbool.h>
#include "errcode.h"
#include "sle_common.h"
#include "sle_ssap_stru.h"
sle_ssap_client.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  ssapc_find_service_result_t
 服务发现结果。 更多...
 
struct  ssapc_find_property_result_t
 属性发现结果。 更多...
 
struct  ssapc_handle_value_t
 SSAP 句柄值。 更多...
 
struct  ssapc_write_result_t
 SSAP 写结果。 更多...
 
struct  ssapc_read_by_uuid_cmp_result_t
 读取by uuid完成。 更多...
 
struct  ssapc_find_structure_param_t
 SSAP 查找参数。 更多...
 
struct  ssapc_find_structure_result_t
 服务发现响应参数 更多...
 
struct  ssapc_read_req_by_uuid_param_t
 向对端发送按照uuid读取请求的参数。 更多...
 
struct  ssapc_callbacks_t
 ssap client回调函数接口定义。 更多...
 

类型定义

typedef struct ssapc_handle_value_t ssapc_write_param_t
 
typedef void(* ssapc_find_structure_callback) (uint8_t client_id, uint16_t conn_id, ssapc_find_service_result_t *service, errcode_t status)
 服务发现的回调函数。
 
typedef void(* ssapc_find_property_callback) (uint8_t client_id, uint16_t conn_id, ssapc_find_property_result_t *property, errcode_t status)
 属性发现的回调函数。
 
typedef void(* ssapc_find_structure_complete_callback) (uint8_t client_id, uint16_t conn_id, ssapc_find_structure_result_t *structure_result, errcode_t status)
 查找完成的回调函数。
 
typedef void(* ssapc_read_cfm_callback) (uint8_t client_id, uint16_t conn_id, ssapc_handle_value_t *read_data, errcode_t status)
 收到读响应的回调函数。
 
typedef void(* ssapc_read_by_uuid_complete_callback) (uint8_t client_id, uint16_t conn_id, ssapc_read_by_uuid_cmp_result_t *cmp_result, errcode_t status)
 读取完成的回调函数。
 
typedef void(* ssapc_write_cfm_callback) (uint8_t client_id, uint16_t conn_id, ssapc_write_result_t *write_result, errcode_t status)
 收到写响应的回调函数。
 
typedef void(* ssapc_exchange_info_callback) (uint8_t client_id, uint16_t conn_id, ssap_exchange_info_t *param, errcode_t status)
 mtu改变的回调函数。
 
typedef void(* ssapc_notification_callback) (uint8_t client_id, uint16_t conn_id, ssapc_handle_value_t *data, errcode_t status)
 收到通知的回调函数。
 
typedef void(* ssapc_indication_callback) (uint8_t client_id, uint16_t conn_id, ssapc_handle_value_t *data, errcode_t status)
 收到指示的回调函数。
 

函数

errcode_t ssapc_register_client (sle_uuid_t *app_uuid, uint8_t *client_id)
 注册ssap客户端。
 
errcode_t ssapc_unregister_client (uint8_t client_id)
 注销ssap客户端。
 
errcode_t ssapc_find_structure (uint8_t client_id, uint16_t conn_id, ssapc_find_structure_param_t *param)
 查找服务、特征、描述符。
 
errcode_t ssapc_read_req_by_uuid (uint8_t client_id, uint16_t conn_id, ssapc_read_req_by_uuid_param_t *param)
 发起按照uuid读取请求。
 
errcode_t ssapc_read_req (uint8_t client_id, uint16_t conn_id, uint16_t handle, uint8_t type)
 发起按照句柄读取请求。
 
errcode_t ssapc_write_req (uint8_t client_id, uint16_t conn_id, ssapc_write_param_t *param)
 发起写请求。
 
errcode_t ssapc_write_cmd (uint8_t client_id, uint16_t conn_id, ssapc_write_param_t *param)
 发起写命令。
 
errcode_t ssapc_exchange_info_req (uint8_t client_id, uint16_t conn_id, ssap_exchange_info_t *param)
 发送交换info请求。
 
errcode_t ssapc_register_callbacks (ssapc_callbacks_t *func)
 注册SSAP客户端回调函数。