思澈科技软件开发工具包  2.20

Data Structures

struct  attm_desc
 Internal 16bits UUID service description. More...
 
struct  attm_desc_128
 Internal 128bits UUID service description. More...
 
struct  sibles_write_value_rsp_t
 .The structure of SIBLES_WRITE_VALUE_RSP. More...
 
struct  sibles_write_remote_value_rsp_t
 
struct  sibles_register_svc_t
 .Register GATT service parameter with 16 bit uuid. More...
 
struct  sibles_register_svc_128_t
 .Register GATT service parameter with 128 bit uuid. More...
 
struct  sibles_value_t
 The structure of Sibles GATT value . More...
 
struct  sibles_svc_remote_svc_t
 The structure of GATT service of peer device. More...
 
struct  sibles_svc_search_rsp_t
 The strcture of SIBLES_SEARCH_SVC_RSP. More...
 
struct  sibles_remote_connected_ind_t
 The strcture of event SIBLES_REMOTE_CONNECTED_IND. More...
 
struct  sibles_remote_svc_change_ind_t
 
struct  sibles_disc_char_desc_ind
 Discovery Characteristic Descriptor indication Structure. More...
 
struct  sibles_svc_search_char_t
 The strcture of SIBLES_SEARCH_SVC_RSP. More...
 
struct  sibles_register_remote_svc_rsp_t
 The strcture of SIBLES_REGISTER_REMOTE_SVC_RSP. More...
 
struct  sibles_write_remote_value_t
 The data strcture of Sibles GATT write. More...
 
struct  sibles_remote_event_ind_t
 The strcture of SIBLES_REMOTE_EVENT_IND. More...
 
struct  sibles_read_remote_value_req_t
 The data strcture of Sibles GATT read. More...
 
struct  sibles_read_remote_value_rsp_t
 The strcture of SIBLES_READ_REMOTE_VALUE_RSP. More...
 
struct  sibles_mtu_exchange_ind_t
 The strcture of SIBLES_MTU_EXCHANGE_IND. More...
 
struct  sibles_event_ind_t
 
struct  sibles_set_cbk_t
 The strcture of set cbk parameter. More...
 
struct  sibles_svc_changed_cfg_t
 
struct  sibles_change_bd_addr_rsp_t
 

Typedefs

typedef void * sibles_hdl
 .Service handle. More...
 
typedef uint8_t *(* sibles_get_cbk) (uint8_t, uint8_t, uint16_t *)
 SIBLES attribte get callback. (uint8_t conn_idx, uint8_t idx, uint16_t *len) More...
 
typedef uint8_t(* sibles_set_cbk) (uint8_t, sibles_set_cbk_t *)
 SIBLES attribte set callback. (uint8_t conn_idx, sibles_set_cbk_t *para) More...
 
typedef int(* sibles_remote_svc_cbk) (uint16_t event_id, uint8_t *data, uint16_t len)
 SIBLES remote service callback. (uint8_t idx, uint16_t len, uint8_t * value) More...
 

Enumerations

enum  bf0_sifli_event_t {
  SIBLES_WRITE_VALUE_RSP = BLE_SIBLE_TYPE,
  SIBLES_SEARCH_SVC_RSP,
  SIBLES_REGISTER_REMOTE_SVC_RSP,
  SIBLES_REMOTE_EVENT_IND,
  SIBLES_REMOTE_CONNECTED_IND,
  SIBLES_REMOTE_DISCONNECTED_IND,
  SIBLES_READ_REMOTE_VALUE_RSP,
  SIBLES_MTU_EXCHANGE_IND,
  SIBLES_EVENT_REQ_IND,
  SIBLES_SVC_CHANGED_CFG,
  SIBLES_WRITE_REMOTE_VALUE_RSP,
  SIBLES_CHANGE_BD_ADDR_RSP,
  SIBLES_REMOTE_SVC_CHANGE_IND
}
 Sibles GATT events that notify user. More...
 
enum  sibles_write_type_t {
  SIBLES_WRITE,
  SIBLES_WRITE_WITHOUT_RSP
}
 Sibles GATT write type. More...
 
enum  sibles_read_type_t { SIBLES_READ }
 Sibles GATT read type.
 
enum  sibles_trc_cfg_t {
  SIBLES_TRC_NONE,
  SIBLES_TRC_HCI_ON,
  SIBLES_TRC_ALL_ON,
  SIBLES_TRC_CUSTOMIZE,
  SIBLES_TRC_LAST
}
 
enum  sibles_change_bd_addr_type_t {
  SIBLES_CH_BD_TYPE_BT,
  SIBLES_CH_BD_TYPE_BLE,
  SIBLES_CH_BD_TYPE_TOTAL
}
 
enum  sibles_change_bd_addr_method_t {
  SIBLES_CH_BD_METHOD_ORIGIN,
  SIBLES_CH_BD_METHOD_PRESERVE,
  SIBLES_CH_BD_METHOD_CUSTOMIZE,
  SIBLES_CH_BD_METHOD_TOTAL
}
 
enum  sibles_write_err_t {
  SIBLES_WRITE_NO_ERR,
  SIBLES_WRITE_HANDLE_ERR,
  SIBLES_WIRTE_TX_FLOWCTRL_ERR,
  OTHER_ERR
}
 

Detailed Description

Typedef Documentation

◆ sibles_get_cbk

typedef uint8_t*(* sibles_get_cbk) (uint8_t, uint8_t, uint16_t *)

SIBLES attribte get callback. (uint8_t conn_idx, uint8_t idx, uint16_t *len)

Parameters
[in]conn_idxto associated BLE link.
[in]idxIndex to service.
[in,out]lenLength of attribute.
Return values
uint16_t*Pointer to attribute.

◆ sibles_hdl

typedef void* sibles_hdl

.Service handle.

SIBLES service handle type

◆ sibles_remote_svc_cbk

typedef int(* sibles_remote_svc_cbk) (uint16_t event_id, uint8_t *data, uint16_t len)

SIBLES remote service callback. (uint8_t idx, uint16_t len, uint8_t * value)

Parameters
[in]event_idEvent ID.
[in]dataPointer to data parameter.
[in]lenLength of data.
Return values
uint8_t0: Success, otherwise, failed.

◆ sibles_set_cbk

typedef uint8_t(* sibles_set_cbk) (uint8_t, sibles_set_cbk_t *)

SIBLES attribte set callback. (uint8_t conn_idx, sibles_set_cbk_t *para)

Parameters
[in]conn_idxto associated BLE link.
[in]paraof set callback parameters.
Return values
uint8_t0: Success, otherwise, failed.

Enumeration Type Documentation

◆ bf0_sifli_event_t

Sibles GATT events that notify user.

Enumerator
SIBLES_WRITE_VALUE_RSP 

Write value response.

SIBLES_SEARCH_SVC_RSP 

Service search response.

SIBLES_REGISTER_REMOTE_SVC_RSP 

Service register response.

SIBLES_REMOTE_EVENT_IND 

Remote event Indication.

SIBLES_REMOTE_CONNECTED_IND 

Remote connected Indication.

SIBLES_REMOTE_DISCONNECTED_IND 

Remote disconnected Indication.

SIBLES_READ_REMOTE_VALUE_RSP 

Remote value request response.

SIBLES_MTU_EXCHANGE_IND 

MTU negotiation indication.

◆ sibles_write_type_t

Sibles GATT write type.

Enumerator
SIBLES_WRITE 

BLE write

SIBLES_WRITE_WITHOUT_RSP 

BLE write without response