BT Functions

BT A2DP Functions

uint16_t rtk_bt_a2dp_codec_cfg(uint8_t codec_type, void *codec_t, uint32_t length)

Set a2dp codec configuration.

参数:
  • codec_type -- [in] codec index

  • codec_t -- [in] codec struct pointer

  • length -- [in] data length

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_a2dp_connect(uint8_t *bd_addr)

send a2dp connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_a2dp_disconnect(uint8_t *bd_addr)

disconnect a2dp.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_a2dp_start(uint8_t *bd_addr)

start a2dp stream sending.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_a2dp_suspend(uint8_t *bd_addr)

a2dp suspend.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_a2dp_data_send(rtk_bt_a2dp_stream_data_send_t *p_data_send_t)

a2dp data send.

参数:

p_data_send_t -- [in] data send data struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

BT AVRCP Functions

uint16_t rtk_bt_avrcp_connect(uint8_t *bd_addr)

send avrcp connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_disconnect(uint8_t *bd_addr)

send avrcp disconnect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_play_status_change_req(uint8_t *bt_addr, uint8_t play_status)

send avrcp play status change request.

参数:
  • bt_addr -- [in] bt address

  • play_status -- [in] play status. ref rtk_bt_avrcp_play_status_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_play_status_change_reg_rsp(uint8_t *bd_addr, uint8_t play_status)

send avrcp play status change register response.

参数:
  • bd_addr -- [in] bt address

  • play_status -- [in] play status. ref rtk_bt_avrcp_play_status_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_play(uint8_t *bd_addr)

send avrcp play request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_pause(uint8_t *bd_addr)

send avrcp pause request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_stop(uint8_t *bd_addr)

send avrcp stop request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_forward(uint8_t *bd_addr)

send avrcp forward request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_backward(uint8_t *bd_addr)

send avrcp backward request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_rewind_start(uint8_t *bd_addr)

send avrcp rewind start request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_rewind_stop(uint8_t *bd_addr)

send avrcp rewind stop request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_fast_forward_start(uint8_t *bd_addr)

send avrcp fast forward start request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_fast_forward_stop(uint8_t *bd_addr)

send avrcp fast forward stop request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_absolute_volume_set(uint8_t *bd_addr, uint8_t volume)

send avrcp absolute volume set.

参数:
  • bd_addr -- [in] bt address

  • volume -- [in] volume

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_volume_change_req(uint8_t *bd_addr, uint8_t volume)

send avrcp volume change request.

参数:
  • bd_addr -- [in] bt address

  • volume -- [in] volume

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_get_element_attr(uint8_t *bd_addr, uint8_t num, uint8_t *p_attr)

send element attr get request.

参数:
  • bd_addr -- [in] bt address

  • num -- [in] attributes number

  • p_attr -- [in] attr pointer

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_app_setting_attrs_list(uint8_t *bd_addr)

request remote bt device to list app setting attributes.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_app_setting_values_list(uint8_t *bd_addr, uint8_t attr_id)

request remote bt device to list values for attrubute id.

参数:
  • bd_addr -- [in] bt address

  • attr_id -- [in] attribute id

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_app_setting_value_get(uint8_t *bd_addr, uint8_t attr_num, uint8_t *attr_list)

send app setting set req.

参数:
  • bd_addr -- [in] bt address

  • attr_num -- [in] attributes number

  • attr_list -- [in] attributes id list ref rtk_bt_avrcp_player_app_setting_attr_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_app_setting_value_set(uint8_t *bd_addr, uint8_t attr_id, uint8_t setting)

send app setting set req.

参数:
  • bd_addr -- [in] bt address

  • attr_id -- [in] attributes id ref rtk_bt_avrcp_player_app_setting_attr_t

  • setting -- [in] setting value ref rtk_bt_avrcp_player_eq_t / rtk_bt_avrcp_player_repeat_mode_t / rtk_bt_avrcp_player_shuffle_mode_t / rtk_bt_avrcp_player_scan_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_get_play_status_req(uint8_t *bd_addr)

send avrcp get play status req.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_avrcp_cover_art_connect(uint8_t *bd_addr)

send cover art connect.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

BT BR GAP Functions

uint16_t rtk_bt_br_gap_set_default_param(rtk_bt_br_gap_default_param_t *param)

Set BR/EDR default parameter.

参数:

param -- [in] BR/EDR parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_get_bd_addr(rtk_bt_br_bd_addr_t *paddr)

Get local device's address.

参数:

paddr -- [out] Device address under use

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_device_name(const uint8_t *name)

Set bluetooth Device name.

参数:

name -- [in] Device name

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_page_param(rtk_bt_br_page_param_t *page_param)

Set paging parameter(Init page parameters).

参数:

page_param -- [in] page parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_cfg_page_param(uint8_t type, uint16_t interval, uint16_t window)

Config paging parameter(after init).

参数:
  • type -- [in] Page scan type value to set(0 -> STAND, 1 -> INTERLACED)

  • interval -- [in] Page scan interval value to set.

  • window -- [in] Page scan window value to set.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_inquiry_param(rtk_bt_br_inquiry_param_t *inquiry_param)

Set inquiry parameter(Init inquiry parameters)

参数:

inquiry_param -- [in] inquiry parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_cfg_inquiry_param(uint8_t type, uint16_t interval, uint16_t window)

Config inquiry parameter(after init).

参数:
  • type -- [in] Inquiry scan type value to set(0 -> STAND, 1 -> INTERLACED)

  • interval -- [in] Inquiry scan interval value to set.

  • window -- [in] Inquiry scan window value to set.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_sm_set_security_param(rtk_bt_br_security_param_t *p_sec_param)

Set security paramters.

参数:

p_sec_param -- [in] Security paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_disconnect(uint8_t *bd_addr)

Disconnect bt br link.

参数:

bd_addr -- [in] The Bluetooth device address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_start_inquiry(rtk_bt_br_inquiry_start_t *inquiry_start_param)

start inquiry.

参数:

inquiry_start_param -- [in] inquiry start parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_get_remote_name(uint8_t *bd_addr)

get remote device name.(Return to br gap callback)

参数:

bd_addr -- [in] The Bluetooth device address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_max_bond_num_get(uint8_t *pmax_bond_num)

get supported max bond number.

参数:

pmax_bond_num -- [in] max bond number

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_num_get(uint8_t *pbond_num)

get used bond number.

参数:

pbond_num -- [in] bond number

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_addr_get(uint8_t priority, uint8_t *bd_addr)

get bond address ().

备注

Bond priority number starts at 1, rather than 0. Bond priority is descending with the corresponding number increasing.

参数:
  • priority -- [in] The priority of bonded device.

  • bd_addr -- [in] The Bluetooth device address got by priority.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_index_get(uint8_t *pindex, uint8_t *bd_addr)

Get bond index from device address.

参数:
  • pindex -- [in] The bond index.Bond index starts at 0.

  • bd_addr -- [in] The Bluetooth device address got by priority.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_key_get(uint8_t *bd_addr, uint8_t *key_type, uint8_t *bond_key)

Get link key with Bluetooth device address from bond storage.

参数:
  • bd_addr -- [in] The Bluetooth device address got by priority.

  • key_type -- [in] The type of the key.

  • bond_key -- [in] The link key.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_key_set(rtk_bt_br_bond_key_t *pbond_key_t)

Save link key.

备注

bd_addr The Bluetooth device address got by priority. key_type The type of the key. bond_key The link key.

参数:

pbond_key_t -- [in] bond key struct.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_priority_set(uint8_t *bd_addr)

Adjust priority to highest in bond storage.

参数:

bd_addr -- [in] The Bluetooth device address got by priority.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_delete(uint8_t *bd_addr)

Delete bond information in bond storage.

参数:

bd_addr -- [in] The Bluetooth device address got by priority.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_bond_clear(void)

delete bond information in bond storage

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_pincode(uint8_t *pin_code, uint32_t length)

set pincode.

参数:
  • pin_code -- [in] pointer of pin code

  • length -- [in] length

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_radio_mode(uint8_t radio_mode)

set radio mode(rtk_bt_br_gap_radio_mode_t).

参数:

radio_mode -- [in] radio mode

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_sniff_mode(uint8_t enable, uint8_t *bd_addr, uint16_t min_interval, uint16_t max_interval, uint16_t sniff_attempt, uint16_t sniff_timeout)

configure sniff mode.

参数:
  • enable -- [in] 0 for disable, 1 for enable.

  • bd_addr -- [in] The Bluetooth device address

  • min_interval -- [in] (0 for disable)Min sniff interval, only even values between 0x0002 and 0xFFFE are valid.

  • max_interval -- [in] (0 for disable)Max sniff interval, only even values between 0x0002 and 0xFFFE are valid, should be larger than min_interval.

  • sniff_attempt -- [in] (0 for disable)Number of baseband receive slots for sniff attempt.

  • sniff_timeout -- [in] (0 for disable)Number of baseband receive slots for sniff timeout.

返回:

  • 0 : Succeed

  • Others: Error code

Set BT link QoS.

参数:
  • bd_addr -- [in] The Bluetooth device address

  • type -- [in] QoS type defined in ref rtk_bt_br_qos_type_t.

  • tpoll -- [in] interval ranged from 0x06 to 0x1000 in 625us slot unit.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_cod(uint32_t *bt_cod)

set bt code of class(should be invoked before rtk_bt_enable).

参数:

bt_cod -- [in] pointer of cod

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_br_gap_set_supvisiontimeout(uint16_t *supv_timeout)

set supvisiontimeout(should be invoked before rtk_bt_enable).

参数:

supv_timeout -- [in] pointer of supvisiontimeout

返回:

  • 0 : Succeed

  • Others: Error code

BT Common Functions

void rtk_bt_le_addr_to_str(void *paddr, char *str, uint32_t len)

Convert bt address hexnum to normal format string.

参数:
  • paddr -- [in] Device address

  • str -- [out] String buf to get the normal format address

  • len -- [in] Length of string buf

void rtk_bt_addr_val_to_str(uint8_t *paddr, char *str, uint32_t len)

Convert bt address value hexnum to normal format string.

参数:
  • paddr -- [in] Device address

  • str -- [out] String buf to get the normal format address

  • len -- [in] Length of string buf

void rtk_bt_br_addr_to_str(uint8_t *paddr, char *str, uint32_t len)

Convert bt address hexnum to normal format string.

参数:
  • paddr -- [in] Device address

  • str -- [out] String buf to get the normal format address

  • len -- [in] Length of string buf

void rtk_bt_addr_to_str(uint8_t type, uint8_t *paddr, char *str, uint32_t len)

Convert bt address hexnum to normal format string.

参数:
  • type -- [in] Device address type

  • paddr -- [in] Device address

  • str -- [out] String buf to get the normal format address

  • len -- [in] Length of string buf

uint16_t rtk_bt_evt_register_callback(uint8_t group, rtk_bt_evt_cb_t cb)

Register event callback.

备注

User's event callback will be excuted in bt_evt_task rtk_bt_evt_taskentry, if user's callback is complex and consume too much stack size, please enlarge EVENT_TASK_STACK_SIZE

参数:
  • group -- [in] API cmd/evt group

  • cb -- [in] Callback to be registered to the group

返回:

  • 0 : Succeed

  • others: Error code

uint16_t rtk_bt_evt_unregister_callback(uint8_t group)

Unregister event callback.

参数:

group -- [in] API cmd/evt group

返回:

  • 0 : Succeed

  • others: Error code

BT Device Functions

bool rtk_bt_is_enable(void)

Check bt enable status.

返回:

  • true : enabled

  • false: not enabled

uint16_t rtk_bt_enable(rtk_bt_app_conf_t *app_default_conf)

Enable BT.

参数:

app_default_conf -- [in] Default config parameters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_disable(void)

Disable BT.

返回:

  • 0 : Succeed

  • Others: Error code

BT GAP Functions

uint16_t rtk_bt_gap_ecfc_set_param(rtk_bt_gap_ecfc_param_t type, uint16_t value)

Set ECFC paramter.

参数:
  • type -- [in] Parameter type.

  • value -- [in] Paramter value.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_register(rtk_bt_gap_ecfc_register_t *p_param)

Register L2CAP ECFC for a specific PSM.

参数:

p_param -- [in] Protocol register parameter.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_sec_reg_req(rtk_bt_gap_ecfc_sec_reg_req_t *p_param)

Send a request to register/deregister a protocol security entry over L2CAP.

参数:

p_param -- [in] Security register request parameter.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_conn_req(rtk_bt_gap_ecfc_conn_req_t *p_param)

Send a request to create L2CAP ECFC connections. RTK_BT_GAP_EVT_ECFC_CONN_CMPL_IND will tell the result of L2CAP channel establishment.

参数:

p_param -- [in] Create connection request parameter.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_conn_cfm(rtk_bt_gap_ecfc_conn_cfm_t *p_param)

Send a confirmation for a L2CAP ECFC connection request from remote device. RTK_BT_GAP_EVT_ECFC_CONN_CMPL_IND will tell the result of L2CAP channel establishment.

参数:

p_param -- [in] Create connection comfirm parameter.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_disconn_req(uint16_t conn_handle, uint16_t cid)

Send a request to disconnect a L2CAP ECFC connection.

参数:
  • conn_handle -- [in] Connection handle.

  • cid -- [in] Channel id.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_data(uint16_t conn_handle, uint16_t cid, uint8_t *p_data, uint16_t length)

RSend a request to send L2CAP ECFC channel data to remote device. This API can only be used when param->data_path in rtk_bt_gap_ecfc_register is RTK_BT_GAP_ECFC_DATA_PATH_APP.

参数:
  • conn_handle -- [in] Connection handle.

  • cid -- [in] Channel id.

  • p_data -- [in] Data content.

  • length -- [in] Data length.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gap_ecfc_send_reconf_req(rtk_bt_gap_ecfc_reconf_req_t *p_param)

Send a request to reconfigure L2CAP ECFC channel.

参数:

p_param -- [in] Protocol register parameter.

返回:

  • 0 : Succeed

  • Others: Error code

BT GATTC Functions

uint16_t rtk_bt_gattc_register_profile(uint16_t profile_id)

Register GATT client profile.

参数:

profile_id -- [in] The id of client profile.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_exchange_mtu(uint16_t conn_handle)

Client initiate exchange MTU request, if exchange MTU success, will cause event RTK_BT_GATTC_EVT_MTU_EXCHANGE.

参数:

conn_handle -- The handle of connection.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_discover(rtk_bt_gattc_discover_param_t *p_dis_param)

GATT client Discovery operations, will cause event RTK_BT_GATTC_EVT_DISCOVER_RESULT_IND.

参数:

p_dis_param -- Pointer to GATT client Discovery parameters.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_read(rtk_bt_gattc_read_param_t *p_read_param)

GATT client Read operations, will cause event RTK_BT_GATTC_EVT_READ_RESULT_IND.

参数:

p_read_param -- Pointer to GATT client Read parameters.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_write(rtk_bt_gattc_write_param_t *p_write_param)

GATT client write operations, will cause event RTK_BT_GATTC_EVT_WRITE_RESULT_IND.

参数:

p_write_param -- Pointer to GATT client write parameters.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_enable_notify_or_indicate(rtk_bt_gattc_update_cccd_param_t *p_update_cccd_param)

GATT client enable notify or indicate, will cause event RTK_BT_GATTC_EVT_CCCD_ENABLE_IND.

参数:

p_update_cccd_param -- Pointer to GATT client update cccd parameters.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gattc_disable_notify_or_indicate(rtk_bt_gattc_update_cccd_param_t *p_update_cccd_param)

GATT client disable notify or indicate, will cause event RTK_BT_GATTC_EVT_CCCD_DISABLE_IND.

参数:

p_update_cccd_param -- Pointer to GATT client update cccd parameters.

返回:

  • 0 : Succeed

  • Others: Error code

BT GATTS Functions

uint16_t rtk_bt_gatts_register_service(struct rtk_bt_gatt_service *param)

Register GATT service, will cause event RTK_BT_GATTS_EVT_REGISTER_SERVICE.

参数:

param -- [in] The parameters for registering service app.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gatts_notify(rtk_bt_gatts_ntf_and_ind_param_t *param)

Notify action initiated by server, will cause event RTK_BT_GATTS_EVT_NOTIFY_COMPLETE_IND. If attribute value is longer than ATT_MTU-3 octects, it will fail.

参数:

param -- [in] The parameters for notification.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gatts_indicate(rtk_bt_gatts_ntf_and_ind_param_t *param)

Indicate action initiated by server, will cause event RTK_BT_GATTS_EVT_INDICATE_COMPLETE_IND If attribute value is longer than ATT_MTU-3 octects, it will fail.

参数:

param -- [in] The parameters for indication.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gatts_read_resp(rtk_bt_gatts_read_resp_param_t *param)

Server response for client read operation.

参数:

param -- [in] The parameters for read response.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gatts_write_resp(rtk_bt_gatts_write_resp_param_t *param)

Server response for client write operation.

参数:

param -- [in] The parameters for write response.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_gatts_service_changed_indicate(uint16_t conn_handle, uint16_t cid, uint16_t start_handle, uint16_t end_handle)

Server send service changed indication when builtin service is used.

参数:
  • conn_handle -- [in] Connection handle for a client.

  • cid -- [in] ID of L2CAP channel, 0 indicates auto-select. Ignored when RTK_BT_5_2_EATT_SUPPORT is 0.

  • start_handle -- [in] Start of affected attribute handle range.

  • end_handle -- [in] End of affected attribute handle range.

返回:

  • 0 : Succeed

  • Others: Error code

BT HFP Functions

uint16_t rtk_bt_hfp_cfg(uint8_t role, void *p_conf_t)

hfp configuration.

参数:
  • role -- [in] hfp role (RTK_BT_AUDIO_HFP_ROLE_AG/RTK_BT_AUDIO_HFP_ROLE_HF)

  • p_conf_t -- [in] pointer of configuration data (rtk_bt_hfp_ag_conf_t/rtk_bt_hfp_hf_conf_t)

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_connect(uint8_t *bd_addr)

send hfp connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_disconnect(uint8_t *bd_addr)

disconnect hfp.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_sco_connect(uint8_t *bd_addr)

start hfp sco connect.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_sco_disconnect(uint8_t *bd_addr)

disconnect hfp sco.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_call_incoming(uint8_t *bd_addr, const char *call_num, uint8_t call_num_len, uint8_t call_num_type)

incoming call.

参数:
  • bd_addr -- [in] bt address

  • call_num -- [in] call number

  • call_num_len -- [in] call_num_len should contain strlen of call number + 1('\0') (MAX 20 include \0)

  • call_num_type -- [in] call number type

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_call_answer(uint8_t *bd_addr)

answer call.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_call_terminate(uint8_t *bd_addr)

terminate call.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_dial_with_number_req(uint8_t *bd_addr, const char *call_num, uint8_t call_num_len)

dial call with number.

参数:
  • bd_addr -- [in] bt address

  • call_num -- [in] dial call number pointer

  • call_num_len -- [in] call number length

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_dial_last_number_req(uint8_t *bd_addr)

dial last call.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_data_send(rtk_bt_hfp_sco_data_send_t *p_data_send_t)

hfp sco data send.

参数:

p_data_send_t -- [in] send data struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_batt_level_report(uint8_t *bd_addr, uint8_t power_level)

hfp report battery level.

参数:
  • bd_addr -- [in] bt address

  • power_level -- [in] battery power level

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_speaker_gain_report(uint8_t *bd_addr, uint8_t gain)

hfp report speaker gain.

参数:
  • bd_addr -- [in] bt address

  • gain -- [in] speaker gain (0 - 15)

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hfp_microphone_gain_report(uint8_t *bd_addr, uint8_t gain)

hfp report microphone gain.

参数:
  • bd_addr -- [in] bt address

  • gain -- [in] microphone gain (0 - 15)

返回:

  • 0 : Succeed

  • Others: Error code

BT HID Functions

uint16_t rtk_hid_descriptor_add(void *des, uint32_t length)

set hid descriptor data.

参数:
  • des -- [in] descriptor data pointer

  • length -- [in] data length

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hid_connect(uint8_t *bd_addr)

connect hid.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hid_disconnect(uint8_t *bd_addr)

disconnect hid.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hid_get_report_rsp(uint8_t *bd_addr)

get report response.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_hid_input_data_send(uint8_t *bd_addr, uint8_t *data, uint32_t len)

hid input data send.

参数:
  • bd_addr -- [in] bt address

  • data -- [in] pointer to input data

  • len -- [in] input data length

返回:

  • 0 : Succeed

  • Others: Error code

BT LE Audio Functions

BT BAP Functions

allocate le audio acl link for stack flow.

参数:

conn_ind -- [in] pointer for le connection indication

返回:

  • 0 : Succeed

  • Others: Error code

free le audio acl link for stack flow.

参数:

disconn_ind -- [in] pointer for le disconnection indication

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_audio_iso_data_send(rtk_bt_le_audio_iso_data_send_info_t *info)

Send ISO data .

参数:

info -- [in] The info of iso send data

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_bap_unicast_client_start(uint8_t group_idx, uint16_t sink_context, uint16_t source_context)

Start unicast client.

参数:
  • group_idx -- [in] group index

  • sink_context -- [in] sink context

  • source_context -- [in] source context

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_bap_unicast_client_stop(uint8_t group_idx, uint32_t cis_timeout_ms)

Stop unicast client.

参数:
  • group_idx -- [in] group index

  • cis_timeout_ms -- [in] timeout

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_bap_unicast_client_release(uint8_t group_idx)

Release session.

参数:

group_idx -- [in] group index

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_bap_param_config(rtk_bt_le_audio_bap_param_config_t *p_param)

Config bap parameters.

参数:

p_param -- [in] config parameter struct ref rtk_bt_le_audio_bap_param_config_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_source_create(rtk_bt_le_audio_broadcast_source_create_param_t *p_param)

Create broadcast source.

参数:

p_param -- [in] parameter struct ref rtk_bt_le_audio_broadcast_source_create_param_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_source_start(void)

Start broadcast source.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_source_stop(void)

Stop broadcast source.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_ext_scan_act(bool enable)

Start or stop extended scan.

参数:

enable -- [in] when enable is true, scan start. Otherwise, scan stopped.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_pa_sync_create(rtk_bt_le_addr_t addr, uint8_t adv_sid, uint8_t *broadcast_id)

Create PA sync.

参数:
  • addr -- [in] target broadcast source BT address

  • adv_sid -- [in] target broadcast source advertise set ID

  • broadcast_id -- [in] target broadcast source broadcast ID

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_pa_sync_terminate(rtk_bt_le_addr_t addr)

Terminate PA sync.

参数:

addr -- [in] target broadcast source BT address

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_big_sync_create(rtk_bt_le_addr_t addr)

Create BIG sync.

参数:

addr -- [in] target broadcast source BT address

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_big_sync_terminate(rtk_bt_le_addr_t addr)

Terminate BIG sync.

参数:

addr -- [in] target broadcast source BT address

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_big_sync_terminate_by_handle(rtk_bt_le_audio_sync_handle_t sync_handle)

Terminate BIG sync by handle.

参数:

sync_handle -- [in] target broadcast source sync handle

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_assistant_remote_ext_scan_act(bool enable, uint8_t group_idx)

Broadcast assistant executes remote scan action for Scan Delegator.

参数:
  • enable -- [in] true: start remote scan, false: stop remote scan

  • group_idx -- [in] group index

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_assistant_reception_start(rtk_bt_le_addr_t addr, uint8_t group_idx)

Broadcast assistant add broadcast source and transfer syncInfo to Scan Delegator.

参数:
  • addr -- [in] broadcast source address

  • group_idx -- [in] group index

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_assistant_reception_stop(rtk_bt_le_addr_t addr, uint8_t group_idx)

Broadcast assistant modify broadcast source in broadcast receive state charateristic of Scan Delegator.

参数:
  • addr -- [in] broadcast source address

  • group_idx -- [in] group index

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_broadcast_assistant_reception_remove(rtk_bt_le_addr_t addr, uint8_t group_idx)

Broadcast assistant remove broadcast source in broadcast receive state charateristic of Scan Delegator.

参数:
  • addr -- [in] broadcast source address

  • group_idx -- [in] group index

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_group_allocate(rtk_bt_le_audio_group_handle_t *p_group_handle)

Allocate group .

参数:

p_group_handle -- [in] allocated group handle

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

BT CAP Functions

uint16_t rtk_bt_le_audio_csis_gen_rsi(uint8_t *p_sirk, uint8_t *p_rsi)

BLE AUDIO generate RSI for CSIS.

参数:
  • p_sirk -- [in] sirk, set identity resolving key

  • p_rsi -- [out] rsi, resolvable set identifier

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_update_sirk(rtk_bt_le_audio_csis_sirk_type_t sirk_type, uint8_t *p_sirk)

BLE AUDIO change SIRK for CSIS.

参数:
  • sirk_type -- [in] sirk type

  • p_sirk -- [out] new sirk, set identity resolving key

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_update_size(uint8_t csis_size)

BLE AUDIO change SIZE for CSIS.

参数:

csis_size -- [in] csis size

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_set_coordinator_check_adv_rsi(rtk_bt_le_addr_t adv_addr, uint8_t report_data_len, uint8_t *p_report_data)

BLE AUDIO CHEK ADV RSI for CSIS SET COORDINATOR.

参数:
  • adv_addr -- [in] adv addr

  • report_data_len -- [in] report data len

  • p_report_data -- [in] report data

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_set_coordinator_cfg_discover(rtk_bt_le_audio_group_handle_t group_handle, bool discover, uint32_t timeout_ms)

BLE AUDIO CONFIG DISCOVER for CSIS SET COORDINATOR.

参数:
  • group_handle -- [in] group handle

  • discover -- [in] discover

  • timeout_ms -- [in] timeout,unit:ms

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_set_coordinator_add_group(rtk_bt_le_audio_csis_set_mem_info_t *p_mem_info, rtk_bt_le_audio_group_handle_t *p_group_handle, rtk_bt_le_audio_device_handle_t *p_device_handle)

BLE AUDIO CHEK ADD GROUP for CSIS SET COORDINATOR.

参数:
  • p_mem_info -- [in] mem info

  • p_group_handle -- [out] returned group handle

  • p_device_handle -- [out] returned device handle

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_set_coordinator_add_device(rtk_bt_le_audio_group_handle_t group_handle, rtk_bt_le_audio_csis_set_mem_info_t *p_mem_info, rtk_bt_le_audio_device_handle_t *p_device_handle)

BLE AUDIO ADD GROUP for CSIS SET COORDINATOR.

参数:
  • group_handle -- [in] group handle

  • p_mem_info -- [in] mem info

  • p_device_handle -- [out] returned device handle

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_csis_set_coordinator_write_lock(rtk_bt_le_audio_group_handle_t group_handle, bool lock)

BLE AUDIO WRITE LOCK for CSIS SET COORDINATOR.

参数:
  • group_handle -- [in] group handle

  • lock -- [in] lock or unlock

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_set_param(rtk_bt_le_audio_vcs_param_t *param)

BLE AUDIO VCS PARAM SET.

参数:

param -- [in] vcs param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_get_param(rtk_bt_le_audio_vcs_param_t *param)

BLE AUDIO VCS PARAM GET.

参数:

param -- [out] vcs param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_write_cp(uint16_t conn_handle, rtk_bt_le_audio_vcs_cp_op_t cp_op, rtk_bt_le_audio_vcs_cp_param_t *cp_param)

BLE AUDIO VCS SEND VOLUME CP.

参数:
  • conn_handle -- [in] connection handle

  • cp_op -- [in] cp op code

  • cp_param -- [in] cp param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_get_volume_state(uint16_t conn_handle, rtk_bt_le_audio_vcs_volume_state_t *p_vcs_volume_state)

BLE AUDIO VCS GET VOLUME STATE.

参数:
  • conn_handle -- [in] connection handle

  • p_vcs_volume_state -- [out] the returned vcs volume state

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_get_volume_flags(uint16_t conn_handle, uint8_t *p_volume_flags)

BLE AUDIO VCS GET VOLUME FLAGS.

参数:
  • conn_handle -- [in] connection handle

  • p_volume_flags -- [in] the returned vcs volume flags

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_change_mute(uint8_t group_idx, uint8_t mute)

BLE AUDIO VCS CHANGE MUTE STATE.

参数:
  • group_idx -- [in] group index

  • mute -- [in] vcs mute

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vcs_change_volume(uint8_t group_idx, uint8_t volume_setting)

BLE AUDIO VCS CHANGE VOLUME SETTING.

参数:
  • group_idx -- [in] group index

  • volume_setting -- [in] volume setting

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mics_change_mute(uint8_t group_idx, rtk_bt_le_audio_mics_mute_state_t mic_mute)

BLE AUDIO MICS CHANGE MUTE STATE.

参数:
  • group_idx -- [in] group index

  • mic_mute -- [in] mic mute

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mics_set_mute_value(uint16_t conn_handle, rtk_bt_le_audio_mics_mute_state_t mic_mute)

BLE AUDIO MICS SET MUTE VALUE.

参数:
  • conn_handle -- [in] connect handle

  • mic_mute -- [in] mic mute

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mics_get_mute_value(uint16_t conn_handle, rtk_bt_le_audio_mics_mute_state_t *p_mic_mute)

BLE AUDIO MICS GET MUTE VALUE.

参数:
  • conn_handle -- [in] connect handle

  • p_mic_mute -- [in] returned mic mute

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mics_set_param(rtk_bt_le_audio_mics_param_t *param)

BLE AUDIO MICS SET MUTE STATE.

参数:

param -- [in] mics param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mics_get_param(rtk_bt_le_audio_mics_param_t *param)

BLE AUDIO MICS SET MUTE STATE.

参数:

param -- [out] returned mics param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_set_param(uint8_t srv_instance_id, uint8_t set_mask, rtk_bt_le_audio_vocs_param_t *p_vocs_param)

BLE AUDIO VOCS SET PARAMETER.

参数:
  • srv_instance_id -- [in] service instance id. Used when the number of services is greater than 1.

  • set_mask -- [in] set_mask

  • p_vocs_param -- [in] pointer to the location of volume offset control service parameter

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_get_param(uint8_t srv_instance_id, rtk_bt_le_audio_vocs_param_t *p_vocs_param)

BLE AUDIO VOCS GET PARAMETER.

参数:
  • srv_instance_id -- [in] service instance id. Used when the number of services is greater than 1.

  • p_vocs_param -- [out] returned the location of volume offset control service parameter

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_cfg_cccd(uint16_t conn_handle, uint8_t srv_instance_id, uint8_t cfg_flags, bool enable)

BLE AUDIO VOCS CONFIG CCCD.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] VOCS service index.

  • cfg_flags -- [in] VOCS CCCD Flag: rtk_bt_le_audio_vocs_cccd_flags_t

  • enable -- [in] Whether to enable CCCD.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_read_char_value(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_vocs_char_type_t type)

BLE AUDIO VOCS READ CHAR VALUE. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_READ_RESULT_IND.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] VOCS service index.

  • type -- [in] rtk_bt_le_audio_vocs_char_type_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_write_cp(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_vocs_cp_op_t cp_op, rtk_bt_le_audio_vocs_cp_param_t cp_param)

BLE AUDIO VOCS WRITE CONTROL POINT. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_CP_RESULT_IND.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] VOCS service index.

  • cp_op -- [in] rtk_bt_le_audio_vocs_cp_op_t

  • cp_param -- [in] rtk_bt_le_audio_vocs_cp_param_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_write_cp_by_group(uint8_t group_idx, uint8_t srv_instance_id, rtk_bt_le_audio_vocs_cp_op_t cp_op, rtk_bt_le_audio_vocs_cp_param_t cp_param)

BLE AUDIO VOCS WRITE CONTROL POINT BY GROUP. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_CP_RESULT_IND.

参数:
  • group_idx -- [in] group index

  • srv_instance_id -- [in] VOCS service index.

  • cp_op -- [in] rtk_bt_le_audio_vocs_cp_op_t

  • cp_param -- [in] rtk_bt_le_audio_vocs_cp_param_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_write_audio_location(uint16_t conn_handle, uint8_t srv_instance_id, uint32_t audio_location)

BLE AUDIO VOCS WRITE AUDIO LOCATION.

参数:
  • conn_handle -- [in] conn handle.

  • srv_instance_id -- [in] VOCS service index.

  • audio_location -- [in] rtk_bt_le_audio_location_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_write_output_des(uint16_t conn_handle, uint8_t srv_instance_id, uint16_t output_des_len, uint8_t *p_output_des)

BLE AUDIO VOCS WRITE OUTPUT DESCRIPTOR.

参数:
  • conn_handle -- [in] conn handle.

  • srv_instance_id -- [in] VOCS service index.

  • output_des_len -- [in] length of the output descriptor value

  • p_output_des -- [in] output descriptor value.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_vocs_get_srv_data(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_vocs_srv_data_t *p_srv_data)

BLE AUDIO VOCS WRITE GET SERVICE DATA.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] VOCS service index.

  • p_srv_data -- [out] the returned service data rtk_bt_le_audio_vocs_srv_data_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_set_param(uint8_t srv_instance_id, rtk_bt_le_audio_aics_param_type_t aics_param_type, uint8_t value_len, uint8_t *p_value, bool set_change_counter)

BLE AUDIO AICS SET PARAMETER.

参数:
  • srv_instance_id -- [in] service instance id. Used when the number of services is greater than 1.

  • aics_param_type -- [in] AICS service parameter type

  • value_len -- [in] The value length of p_value

  • p_value -- [in] pointer to the AICS parameter data

  • set_change_counter -- [in] Whether to set change counter

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_get_param(uint8_t srv_instance_id, rtk_bt_le_audio_aics_param_type_t aics_param_type, uint8_t value_len, uint8_t *p_value)

BLE AUDIO AICS GET PARAMETER.

参数:
  • srv_instance_id -- [in] service instance id. Used when the number of services is greater than 1.

  • aics_param_type -- [in] AICS service parameter type, except RTK_BT_LE_AUDIO_AICS_PARAM_INPUT_DES

  • value_len -- [in] The value length of p_value

  • p_value -- [out] returned to the AICS parameter data

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_cfg_cccd(uint16_t conn_handle, uint8_t srv_instance_id, uint8_t cfg_flags, bool enable)

BLE AUDIO AICS CONFIG CCCD.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] AICS service index.

  • cfg_flags -- [in] AICS CCCD Flag: rtk_bt_le_audio_aics_cccd_flags_t

  • enable -- [in] Whether to enable CCCD.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_read_char_value(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_aics_char_type_t type)

BLE AUDIO AICS READ CHAR VALUE. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_READ_RESULT_IND.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] AICS service index.

  • type -- [in] rtk_bt_le_audio_aics_char_type_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_write_cp(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_aics_cp_op_t cp_op, rtk_bt_le_audio_aics_cp_param_t cp_param)

BLE AUDIO AICS WRITE CONTROL POINT. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_CP_RESULT_IND.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] AICS service index.

  • cp_op -- [in] rtk_bt_le_audio_aics_cp_op_t

  • cp_param -- [in] rtk_bt_le_audio_aics_cp_param_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_write_cp_by_group(uint8_t group_idx, uint8_t srv_instance_id, rtk_bt_le_audio_aics_cp_op_t cp_op, rtk_bt_le_audio_aics_cp_param_t cp_param)

BLE AUDIO AICS WRITE CONTROL POINT BY GROUP. If this API is called successfully, the Application will receive RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_CP_RESULT_IND.

参数:
  • group_idx -- [in] group index.

  • srv_instance_id -- [in] AICS service index.

  • cp_op -- [in] rtk_bt_le_audio_aics_cp_op_t

  • cp_param -- [in] rtk_bt_le_audio_aics_cp_param_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_write_input_des(uint16_t conn_handle, uint8_t srv_instance_id, uint16_t input_des_len, uint8_t *p_input_des)

BLE AUDIO AICS WRITE INPUT DESCRIPTOR.

参数:
  • conn_handle -- [in] conn handle.

  • srv_instance_id -- [in] AICS service index.

  • input_des_len -- [in] length of the input descriptor value

  • p_input_des -- [in] input descriptor value.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_aics_get_srv_data(uint16_t conn_handle, uint8_t srv_instance_id, rtk_bt_le_audio_aics_srv_data_t *p_srv_data)

BLE AUDIO AICS WRITE GET SERVICE DATA.

参数:
  • conn_handle -- [in] connect handle.

  • srv_instance_id -- [in] AICS service index.

  • p_srv_data -- [out] the returned service data rtk_bt_le_audio_aics_srv_data_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mcs_client_write_media_cp(uint16_t conn_handle, uint8_t srv_instance_id, bool general_mcs, bool is_req, uint8_t opcode, void *p_op_param)

BLE AUDIO MCS CLIENT WRITE MEDIA CP. If write operation is successful and Media Control Server sends Media Control Point Notification, Media Control Point Notification will be returned by callback registered by rtk_bt_evt_register_callback with msg RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_MEDIA_CP_NOTIFY_IND.

参数:
  • conn_handle -- [in] connection handle

  • srv_instance_id -- [in] Service Instance Id

  • general_mcs -- [in] is generic media control service (GMCS)

  • is_req -- [in] is request, true: Write request, false: Write command

  • opcode -- [in] op code. rtk_bt_le_audio_mcs_media_cp_opcode_t

  • p_op_param -- [in] op code param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mcs_client_read_char_value(uint16_t conn_handle, uint8_t srv_instance_id, bool general_mcs, uint16_t char_uuid)

BLE AUDIO MCS CLIENT READ CHAR VALUE. If read operation is successful, the result of read characteristic value will be returned by callback registered by rtk_bt_evt_register_callback with msg RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_READ_RESULT_IND.

参数:
  • conn_handle -- [in] connection handle

  • srv_instance_id -- [in] Service Instance Id

  • general_mcs -- [in] is generic media control service (GMCS)

  • char_uuid -- [in] char_uuid, only support RTK_BT_LE_AUDIO_MCS_UUID_CHAR_MEDIA_PLAYER_NAME,RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_TITLE,RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_DURATION, RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_POSITION, RTK_BT_LE_AUDIO_MCS_UUID_CHAR_MEDIA_STATE, RTK_BT_LE_AUDIO_MCS_UUID_CHAR_CONTENT_CONTROL_ID

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mcs_client_cfg_cccd(uint16_t conn_handle, uint8_t srv_instance_id, bool general_mcs, uint32_t cfg_flags, bool enable)

BLE AUDIO MCS CLIENT CONFIG CCCD.

参数:
  • conn_handle -- [in] connection handle

  • srv_instance_id -- [in] Service Instance Id

  • general_mcs -- [in] is generic media control service (GMCS)

  • cfg_flags -- [in] cfg flags

  • enable -- [in] enable

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mcs_server_send_data(uint16_t char_uuid, void *p_param)

BLE AUDIO MCS SERVER SEND DATA.

参数:
  • char_uuid -- [in] char uuid, only support RTK_BT_LE_AUDIO_MCS_UUID_CHAR_MEDIA_PLAYER_NAME,RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_TITLE,RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_DURATION, RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_POSITION, RTK_BT_LE_AUDIO_MCS_UUID_CHAR_TRACK_CHANGED

  • p_param -- [in] param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_audio_mcs_server_read_confirm(uint16_t conn_handle, uint16_t cid, uint8_t service_id, uint16_t char_uuid, uint16_t offset, void *p_param)

BLE AUDIO MCS SERVER SET PARAM.

参数:
  • conn_handle -- [in] conn handle

  • cid -- [in] cid

  • service_id -- [in] service id

  • char_uuid -- [in] char uuid

  • offset -- [in] offset

  • p_param -- [in] param

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_cap_param_config(rtk_bt_le_audio_cap_param_config_t *p_param)

Config cap parameters.

参数:

p_param -- [in] config parameter struct ref rtk_bt_le_audio_cap_param_config_t

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

BT GMAP Functions

uint16_t rtk_bt_le_audio_gmas_client_read_role(uint16_t conn_handle)

GMAS client read gmap role.

参数:

conn_handle -- [in] ACL connection handle

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_audio_gmas_client_read_features(uint16_t conn_handle, uint16_t char_uuid)

GMAS client read gmap role features.

参数:
  • conn_handle -- [in] ACL connection handle

  • char_uuid -- [in] GMAS Characteristic UUID

返回:

  • 0 : Succeed

  • Others: Error code

BT TMAP Functions

uint16_t rtk_bt_le_audio_tmas_client_read_role(uint16_t conn_handle)

BLE AUDIO TMAS CLIENT READ ROLE.

参数:

conn_handle -- [in] connect handle.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

BT LE ISO Functions

uint16_t rtk_bt_le_iso_cig_start_setting(rtk_bt_le_iso_set_cig_cis_param_t *param)

Start CIG Setting.

参数:

param -- [in] The param of setup cig.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_setup_path(rtk_bt_le_iso_setup_path_param_t *param)

Identify and create the isochronous data path for CIS.

参数:

param -- [in] The param of setup cis data path.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_data_send(rtk_bt_le_iso_data_send_info_t *info)

Send ISO data [ASYNC/SYNC]. If sending request operation is success, the result will be returned when the API is done.

参数:

info -- [in] The info of iso send data

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_get_isoch_info(uint16_t cis_conn_handle, rtk_bt_le_iso_cis_channel_info_t *p_info)

Get information about specified CIS connection handle.

参数:
  • cis_conn_handle -- [in] Connection handle of the CIS.

  • p_info -- [out] Information about specified CIS connection handle.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_initiator_create_cis_by_cig_id(uint8_t cis_id, uint8_t cig_id, uint16_t conn_handle)

create cis id and link it to acl, and cig.

参数:
  • cis_id -- [in] Identifier of a CIS

  • cig_id -- [in] Identifier of a CIG

  • conn_handle -- [in] ACL connection handle

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_initiator_create_cis_by_cis_conn_handle(uint8_t cis_id, uint8_t cig_id, uint8_t cis_count, uint16_t conn_handle, uint16_t *p_cis_conn_handle)

Request to create one or more CISes by cis conn handle.

参数:
  • cis_id -- [in] Identifier of a CIS

  • cig_id -- [in] Identifier of a CIG

  • cis_count -- [in] CIS count

  • conn_handle -- [in] ACL connection handle

  • p_cis_conn_handle -- [in] Connection handle of the CIS

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_disconnect(uint16_t cis_conn_handle)

Terminate a CIS connection.

参数:

cis_conn_handle -- [in] Connection handle of the CIS.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_initiator_remove_cig(uint8_t cig_id)

Used by the Central's Host to remove the CIG.

参数:

cig_id -- [in] Identifier of a CIG.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_acceptor_accept_cis(uint16_t cis_conn_handle)

Accept the request for the CIS.

参数:

cis_conn_handle -- [in] Connection handle of the CIS.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_acceptor_reject_cis(uint16_t cis_conn_handle, uint8_t reason)

Reject the request for the CIS..

参数:
  • cis_conn_handle -- [in] Connection handle of the CIS.

  • reason -- [in] Reason the CIS request was rejected. BT_HCI_ERROR (except HCI_SUCCESS)

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_acceptor_config_cis_req_action(rtk_bt_le_iso_cig_acceptor_config_cis_req_action_t cis_req_action)

Config the acceptor action when received cis request indication. Default action is RTK_BLE_ISO_ACCEPTOR_CIS_REQ_ACTION_ACCEPT.

参数:

cis_req_action -- [in] The param for config CIS param.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_acceptor_register_callback(void)

Register acceptor gap app callback.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_remove_path(uint16_t cis_conn_handle, rtk_bt_le_iso_data_path_direction_flag_t data_path_direction)

Remove the input and/or output data path(s) associated with CIS.

参数:
  • cis_conn_handle -- [in] Connection handle of the CIS.

  • data_path_direction -- [in] The param for CIG remove path.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_cig_read_iso_tx_sync(uint16_t cis_conn_handle, rtk_bt_le_iso_cig_read_iso_tx_sync_info_t *p_tx_sync_info)

Read the TX_Time_Stamp and Time_Offset of a transmitted SDU identified by the Packet_Sequence_Number on a CIS.

参数:
  • cis_conn_handle -- [in] Connection handle of the CIS.

  • p_tx_sync_info -- [out] Point to tx sync info result.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

参数:
  • cis_conn_handle -- [in] Connection handle of the CIS.

  • p_link_quality_info -- [out] Point to link quality info result.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_setup_path(rtk_bt_le_iso_setup_path_param_t *param)

Setup data path for BIS.

参数:

param -- [in] The param for setup BIS data path

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_remove_path(uint16_t bis_conn_handle, rtk_bt_le_iso_data_path_direction_flag_t data_path_direction)

Remove data path for BIS.

参数:
  • bis_conn_handle -- [in] Connection handle of the BIS.

  • data_path_direction -- [in] Specify which directions are to have the data path removed.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_broadcaster_create(uint8_t adv_handle, rtk_bt_le_iso_big_broadcaster_param_t *big_param, uint8_t *big_handle)

Create BIG broadcaster.

参数:
  • adv_handle -- [in] Identify the periodic advertising train

  • big_param -- [in] The param for create BIG broadcaster

  • big_handle -- [out] Identify the BIG

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_broadcaster_terminate(uint8_t big_handle)

Terminate BIG broadcaster.

参数:

big_handle -- [in] Identify the BIG

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_broadcaster_read_tx_sync(uint16_t bis_conn_handle, rtk_bt_le_iso_big_broadcaster_read_tx_sync_info_t *p_tx_sync_info)

Read the TX_Time_Stamp and Time_Offset of a transmitted SDU identified by the Packet_Sequence_Number on a BIS.

参数:
  • bis_conn_handle -- [in] Connection handle of the BIS.

  • p_tx_sync_info -- [out] Read tx sync info result.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_receiver_create_sync(uint16_t sync_handle, rtk_bt_le_iso_big_receiver_create_sync_param_t *sync_param, uint8_t *p_big_handle)

Synchronize to a BIG described in the periodic advertising train.

参数:
  • sync_handle -- [in] Identify the periodic advertising train

  • sync_param -- [in] GAP Synchronized Receiver BIG create sync parameter

  • p_big_handle -- [out] Identify the BIG

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_big_receiver_terminate_sync(uint8_t big_handle)

Terminate synchronization to the BIG.

参数:

big_handle -- [in] Identify the BIG

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

Read the values of various counters related to link quality.

参数:
  • bis_conn_handle -- [in] Connection handle of the BIS

  • p_link_quality_info -- [out] Read link quality info result

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_sync_info(rtk_bt_le_iso_sync_info_t *p_info)

Sync le info to iso stack.

参数:

p_info -- [in] Pointer to sync information.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

uint16_t rtk_bt_le_iso_get_iso_conn_handle(rtk_bt_le_iso_role_t role, rtk_bt_le_iso_conn_handle_info_t *p_info)

rtk_bt_le_iso_get_iso_conn_handle.

参数:
  • role -- [in] le iso role.

  • p_info -- [in] Pointer to return struct.

返回:

  • RTK_BT_OK : Succeed

  • Others: Failed

BT LE_GAP Functions

uint16_t rtk_bt_le_gap_get_conn_id(uint16_t conn_handle, uint8_t *p_conn_id)

Get connection id by connection handle.

参数:
  • conn_handle -- [in] Connection handle.

  • p_conn_id -- [out] Connection id for BLE link. Range 0 ~ RTK_BLE_GAP_MAX_LINKS - 1.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_version(rtk_bt_le_version_info_t *version)

Get local stack version information.

参数:

version -- [out] version information

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_bd_addr(rtk_bt_le_addr_t *paddr)

Get local device's address.

参数:

paddr -- [out] Device address under use

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_device_name(const uint8_t *name)

Set bluetooth Device name.

参数:

name -- [in] Device name

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_appearance(uint16_t appearance)

Set device appearance.

参数:

appearance -- [in] Device apperance

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_preferred_conn_param(rtk_bt_le_preferred_conn_param_t *p_preferred_conn_param)

Set preferred connetion parameters.

参数:

p_preferred_conn_param -- [in] preferred connetion parameters, rtk_bt_le_preferred_conn_param_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_rand_addr(bool auto_generate, rtk_bt_le_rand_addr_type_t type, uint8_t *p_addr)

Set random address. NOTE: This API shall not be excuted when advertising, scanning and initiating are enabled.

参数:
  • auto_generate -- [in] Trigger auto generate address.

  • type -- [in] Type of auto generated random address, ignore if auto_generate is false.

  • p_addr -- [in] Random address, if auto_generate is false, this random address will be set to controller.

    • 0 : Succeed

    • Others: Error code

uint16_t rtk_bt_le_gap_set_adv_data(uint8_t *padv_data, uint32_t adv_len)

Set BLE GAP advertising data.

参数:
  • padv_data -- [in] Advertising data

  • adv_len -- [in] Length of padv_data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_scan_rsp_data(uint8_t *pscan_rsp_data, uint32_t scan_rsp_len)

Set BLE GAP scan response data.

参数:
  • pscan_rsp_data -- [in] Scan response data

  • scan_rsp_len -- [in] Length of pscan_rsp_data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_start_adv(rtk_bt_le_adv_param_t *padv_param)

Start BLE GAP advertising, will cause event RTK_BT_LE_GAP_EVT_ADV_START_IND.

参数:

padv_param -- [in] Advertising parameters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_stop_adv(void)

Stop BLE GAP advertising, will cause event RTK_BT_LE_GAP_EVT_ADV_STOP_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_adv_param(rtk_bt_le_adv_param_t *padv_param)

Get BLE advertising parameter.

参数:

padv_param -- [out] Advertising parameters

返回:

  • 0 : Succeed

  • Others: Error code

bool rtk_bt_le_gap_adv_is_idle(void)

Check if BLE GAP advertise is idle.

返回:

  • true : Adv state is idle

  • false : Adv state is advertising

uint16_t rtk_bt_le_gap_create_ext_adv(rtk_bt_le_ext_adv_param_t *p_adv_param, uint8_t *p_adv_handle)

Create an extended advertising set.

参数:
  • p_adv_param -- [in] Advertising parameters

  • p_adv_handle -- [inout] Pointer to advertising set handle

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_ext_adv_data(uint8_t adv_handle, uint8_t *padv_data, uint16_t adv_len)

Set BLE GAP extended advertising data.

参数:
  • adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

  • padv_data -- [in] Extended advertising data. NOTE: This function just saves the pointer of the advertising data and will not copy the advertising data, Actually, the data will be set to controller when rtk_bt_le_gap_start_ext_adv is called. So this pointer should remain valid and the data in it shall not be changed until rtk_bt_le_gap_start_ext_adv executed.

  • adv_len -- [in] Length of padv_data.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_ext_scan_rsp_data(uint8_t adv_handle, uint8_t *pscan_rsp_data, uint16_t scan_rsp_len)

Set BLE GAP extended scan response data.

参数:
  • adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

  • pscan_rsp_data -- [in] Extended scan response data. NOTE: This function just saves the pointer of the advertising data and will not copy the advertising data, Actually, the data will be set to controller when rtk_bt_le_gap_start_ext_adv is called. So this pointer should remain valid and the data in it shall not be changed until rtk_bt_le_gap_start_ext_adv executed.

  • scan_rsp_len -- [in] Length of pscan_rsp_data.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_start_ext_adv(uint8_t adv_handle, uint16_t duration, uint8_t num_events)

Start BLE GAP extended advertising, will cause event RTK_BT_LE_GAP_EVT_EXT_ADV_IND.

参数:
  • adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

  • duration -- [in] If non-zero: Advertising duration, in units of 10ms

  • num_events -- [in] If non-zero, indicates the maximum number of extended advertising events the controller shall attemp to send prior to terminating the extended advertising.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_stop_ext_adv(uint8_t adv_handle)

Stop BLE GAP extended advertising, will cause event RTK_BT_LE_GAP_EVT_EXT_ADV_IND.

参数:

adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_remove_ext_adv(uint8_t adv_handle)

Remove an advertising set.

参数:

adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_ext_adv_handle_by_conn_handle(uint16_t conn_handle, uint8_t *adv_handle)

When an extended advertising set is stopped due to connnection established, get the stopped advertising handle according to the connection handle.

参数:
  • conn_handle -- [in] Handle of connection.

  • adv_handle -- [out] Handle of advertising set that stopped due to this connection.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_ext_connect(rtk_bt_le_ext_create_conn_param_t *p_ext_conn_param)

Start extended connection, will cause event RTK_BT_LE_GAP_EVT_CONNECT_IND.

参数:

p_ext_conn_param -- [in] Extended connection parameter.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_start_pa(rtk_bt_le_pa_param_t *param)

Set and Start BLE GAP periodic advertising, will cause event RTK_BT_LE_GAP_EVT_PA_IND NOTE: Only advertising event properties RTK_BT_LE_EXT_ADV_EXTENDED_ADV_NON_SCAN_NON_CONN_UNDIRECTED and RTK_BT_LE_EXT_ADV_EXTENDED_ADV_NON_SCAN_NON_CONN_DIRECTED support periodic advertising.

参数:

param -- [in] Advertising paramter and data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_stop_pa(uint8_t adv_handle)

Stop BLE GAP periodic advertising, will cause event RTK_BT_LE_GAP_EVT_PA_IND.

参数:

adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_update_pa(uint8_t adv_handle, bool update_did_only, uint8_t *data, uint16_t len)

Stop BLE GAP periodic advertising, will cause event RTK_BT_LE_GAP_EVT_PA_IND.

参数:
  • adv_handle -- [in] Identify an advertising set, which is assigned by rtk_bt_le_gap_create_ext_adv.

  • update_did_only -- [in] If true, keep advertising data unchanged and just update advertising DID of periodic advertising, data and len will be ignored.

  • data -- [in] New periodic advertising data.

  • len -- [in] New periodic advertising data length.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pa_sync_modify_adv_list(rtk_bt_le_pa_sync_advlist_op_t operation, rtk_bt_le_addr_t adv_addr, uint8_t adv_sid)

Modify Periodic Advertiser list.

参数:
  • operation -- [in] Add entry to Periodic Advertiser list, remove entry from Periodic Advertiser list or clear all entries from Periodic Advertiser list. rtk_bt_le_pa_sync_advlist_op_t. NOTE: If operation is RTK_BT_LE_PA_SYNC_ADV_LIST_CLEAR, adv_addr, adv_addr_type and adv_sid are irrelevant.

  • adv_addr -- [in] Device Address. NOTE: Only RTK_BT_LE_ADDR_TYPE_PUBLIC and RTK_BT_LE_ADDR_TYPE_RANDOM could be used for modifying Periodic Advertiser list.

  • adv_sid -- [in] Advertising SID subfield in the ADI field used to identify the Periodic Advertising.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pa_sync_create(rtk_bt_le_pa_sync_create_t *param)

Synchronize with a periodic advertising train from an advertiser. This will cause event RTK_BT_LE_GAP_EVT_PA_SYNC_STATE_IND. Event RTK_BT_LE_GAP_EVT_PA_ADV_REPORT_IND will be sent when adv report is enabled by param->options.

参数:

param -- [in] GAP PA Sync create sync parameter. rtk_bt_le_pa_sync_create_t.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pa_sync_terminate(uint8_t sync_id)

Stop reception of the periodic advertising train, or cancel the synchronization creation while it is pending.

参数:

sync_id -- [in] Identify the synchronization with a periodic advertising train.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_past_send(uint16_t conn_handle, uint16_t service_data, bool use_sync_id, uint8_t idx)

Start PAST transfer, will cause event RTK_BT_LE_GAP_ACT_PAST_TRANSFER.

参数:
  • conn_handle -- [in] Connection handle.

  • service_data -- [in] A value provided by the Host to identify the periodic advertising train to the peer device.

  • use_sync_id -- [in] Indicate following member 'idx' is sync id or adv handle. NOTE: If sync info to transter is obtained from remote device by sync procedure, set use_sync_id to true. NOTE: If sync info to transter is from own periodic adv, set use_sync_id to false.

  • idx -- [in] If use_sync_id is true, idx is sync id, if use_sync_id is false, idx is adv handle.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_past_recipient_set(rtk_bt_le_past_recv_param_t *param)

Set PAST recipient paramter, will cause event RTK_BT_LE_GAP_EVT_PA_SYNC_STATE_IND when received past packet.

参数:

param -- [in] PAST recipient setting.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_default_past_recipient_set(rtk_bt_le_past_recv_param_t *param)

Set default PAST recipient paramter, will cause event RTK_BT_LE_GAP_EVT_PA_SYNC_STATE_IND when received past packet.

参数:

param -- [in] default PAST recipient setting.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_scan_info_filter(rtk_bt_le_scan_info_filter_param_t *p_scan_info)

Set scan info filter.

参数:

p_scan_info -- [in] Scan info filter parameters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_scan_param(rtk_bt_le_scan_param_t *p_gap_scan_param)

Set scan paramters.

参数:

p_gap_scan_param -- [in] Scan paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_scan_param(rtk_bt_le_scan_param_t *pscan_param)

Get scan paramters.

参数:

pscan_param -- [out] Scan paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_start_scan(void)

Start scan, will cause event RTK_BT_LE_GAP_EVT_SCAN_START_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_stop_scan(void)

Stop scan, will cause event RTK_BT_LE_GAP_EVT_SCAN_STOP_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_ext_scan_param(rtk_bt_le_ext_scan_param_t *p_param)

Set ext scan paramters.

参数:

p_param -- [in] Ext Scan paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_start_ext_scan(void)

Stop ext scan, will cause event RTK_BT_LE_GAP_EVT_SCAN_START_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_stop_ext_scan(void)

Stop ext scan, will cause event RTK_BT_LE_GAP_EVT_SCAN_STOP_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_connect(rtk_bt_le_create_conn_param_t *p_conn_param)

Start connection, will cause event RTK_BT_LE_GAP_EVT_CONNECT_IND.

参数:

p_conn_param -- [in] Connection parmaters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_connect_cancel(rtk_bt_le_addr_t *cancel_addr)

Cancel the creating connection, will cause event RTK_BT_LE_GAP_EVT_DISCONN_IND.

参数:

cancel_addr -- [in] Address of remote device that need to cancel connection.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_disconnect(uint16_t conn_handle)

Start disconnection, will cause event RTK_BT_LE_GAP_EVT_DISCONN_IND.

参数:

conn_handle -- [in] The connection handle need to disconnect.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_disconnect_with_reason(uint16_t conn_handle, uint8_t reason)

Start disconnection with specific reason, will cause event RTK_BT_LE_GAP_EVT_DISCONN_IND.

参数:
  • conn_handle -- [in] The connection handle need to disconnect.

  • reason -- [in] The reason to disconnect rtk_bt_err_hci.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_update_conn_param(rtk_bt_le_update_conn_param_t *p_update_conn_param)

Update connection paramters. If controller update the connection parameters, will cause event RTK_BT_LE_GAP_EVT_CONN_UPDATE_IND.

参数:

p_update_conn_param -- [in] Updated connection parmaters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_modify_whitelist(rtk_bt_le_modify_wl_param_t *p_wl_op_param)

Modify device white list.

参数:

p_wl_op_param -- [in] Modification operation paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_read_rssi(uint16_t conn_handle, int8_t *p_rssi)

Read specific connection RSSI.

参数:
  • conn_handle -- [in] Handle of connection to Read RSSI

  • p_rssi -- [out] RSSI value

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_dev_state(rtk_bt_le_gap_dev_state_t *p_dev_state)

Get gap dev state.

参数:

p_dev_state -- [out] Deice state

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_conn_info(uint16_t conn_handle, rtk_bt_le_conn_info_t *p_conn_info)

Get connection information.

参数:
  • conn_handle -- [in] Connection handle

  • p_conn_info -- [out] Connection information

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_mtu_size(uint16_t conn_handle, uint16_t *p_mtu_size)

Get LE connection ATT_MTU size.

参数:
  • conn_handle -- [in] Connection handle

  • p_mtu_size -- [out] Exchanged MTU size

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_active_conn(rtk_bt_le_get_active_conn_t *p_active_conn)

Get active connection number and their handles.

参数:

p_active_conn -- [out] Active connection number and handles

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_conn_handle_by_addr(rtk_bt_le_addr_t *p_addr, uint16_t *p_conn_handle)

Get active connection handle by address.

参数:
  • p_addr -- [in] Remote device's address

  • p_conn_handle -- [out] Connection handle

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_max_mtu_size(uint16_t mtu_size)

Set Max MTU size.

备注

This API shall be called before creating connection. When connection is etablishing or a connection has been establised, it will fail.

参数:

mtu_size -- [in] MTU size value

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_channels(uint8_t *p_chan_map)

Set Bluetooth device channel map.

参数:

p_chan_map -- [in] Channel map, size is RTK_BT_LE_CHAN_MAP_LEN

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_data_len(rtk_bt_le_set_datalen_param_t *p_datalen_param)

Set Bluetooth device connection data length paramters. If controller change the data length, will cause event RTK_BT_LE_GAP_EVT_DATA_LEN_CHANGE_IND.

参数:

p_datalen_param -- [in] Connection data length paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_phy(rtk_bt_le_set_phy_param_t *p_phy_param)

Set Bluetooth device PHY paramters. If controller updates the PHY, will cause event RTK_BT_LE_GAP_EVT_PHY_UPDATE_IND.

参数:

p_phy_param -- [in] PHY paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_privacy_init(bool whitelist)

Enable and initialize privacy.

参数:

whitelist -- [in] Enable white list or not

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_set_privacy_mode(rtk_bt_le_ident_addr_type_t peer_ident_addr_type, uint8_t *peer_addr, rtk_bt_le_privacy_mode_t privacy_mode)

Set BLE privacy mode.

参数:
  • peer_ident_addr_type -- [in] Peer indentity address type

  • peer_addr -- [in] Peer identity address

  • privacy_mode -- [in] Privacy mode

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_read_local_resolv_addr(rtk_bt_le_ident_addr_type_t peer_ident_addr_type, uint8_t *peer_addr, uint8_t *local_rpa)

Read local resolvable address.

参数:
  • peer_ident_addr_type -- [in] Peer indentity address type

  • peer_addr -- [in] Peer identity address

  • local_rpa -- [out] Local resolvable address get by this API

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_read_peer_resolv_addr(rtk_bt_le_ident_addr_type_t peer_ident_addr_type, uint8_t *peer_addr, uint8_t *peer_rpa)

Read peer resolvable address.

参数:
  • peer_ident_addr_type -- [in] Peer indentity address type

  • peer_addr -- [in] Peer identity address

  • peer_rpa -- [out] Peer resolvable address get by this API

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_set_pairing_mode(rtk_bt_le_pairing_mode_t pairing_mode)

Set security pairing mode.

参数:

pairing_mode -- [in] Security pairing mode, default is RTK_PAIRING_MODE_PAIRABLE

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_set_security_param(rtk_bt_le_security_param_t *p_sec_param)

Set security paramters.

参数:

p_sec_param -- [in] Security paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_get_security_param(rtk_bt_le_security_param_t *p_sec_param)

Get security paramters.

参数:

p_sec_param -- [out] Security paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_start_security(uint16_t conn_handle)

Start security. If security is completed, will cause event RTK_BT_LE_GAP_EVT_AUTH_COMPLETE_IND.

参数:

conn_handle -- [in] Handle of connection to start security

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_pairing_confirm(rtk_bt_le_pair_cfm_t *p_pair_cfm)

Confirm to continue pairing when use just work.

参数:

p_pair_cfm -- [in] Pairing confirm parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_passkey_entry(rtk_bt_le_auth_key_input_t *p_key_input)

Input the authentication key.

参数:

p_key_input -- [in] Auth key input parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_passkey_confirm(rtk_bt_le_auth_key_confirm_t *p_key_cfm)

Confirm the authentication key.

参数:

p_key_cfm -- [in] Auth key confirmation parameter

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_set_oob_tk(rtk_bt_le_set_oob_key_t *p_set_oob_key)

Set LE legacy pairing OOB key data.

参数:

p_set_oob_key -- [in] OOB key data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_get_sc_local_oob(rtk_bt_le_sc_local_oob_data_t *local_oob)

Get LE secure connection paring OOB data generated by local. This local OOB data is used to transmit to peer device by out of band channel.

参数:

local_oob -- [out] local generated OOB data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_input_sc_peer_oob(rtk_bt_le_sc_peer_oob_data_t *peer_oob)

Input LE secure connection pairing OOB data which is transmitted from peer device by out of band channel. The peer device shall have been connected with local.

参数:

peer_oob -- [in] peer OOB data to input

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_get_bond_num(uint8_t *bond_num)

Get the number of bonded device.

参数:

bond_num -- [out] The number of bonded device

返回:

  • 0 : Succeed

  • Others: Error code

bool rtk_bt_le_sm_is_device_bonded(rtk_bt_le_addr_t *paddr)

Judge if the device is bonded.

参数:

paddr -- [in] Device's address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_get_bond_info(rtk_bt_le_bond_info_t *p_bond_info, uint8_t *size)

Get bonded device info.

参数:
  • p_bond_info -- [in] The info of bonded device

  • size -- [in] The num of bonded device we want get (buffer size of info)

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_delete_bond_device(rtk_bt_le_addr_t *paddr)

Delete bonded device by address, will cause event RTK_BT_LE_GAP_EVT_BOND_MODIFY_IND.

参数:

paddr -- [in] Bonded device's address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sm_clear_bond_list(void)

Clear bonded list, will cause event RTK_BT_LE_GAP_EVT_BOND_MODIFY_IND.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_tx_pending_num(uint16_t conn_handle, uint16_t *tx_pending_num)

Get Tx pending num.

参数:
  • conn_handle -- [in] Connection handle

  • tx_pending_num -- [out] Tx pending num

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_read_local_tx_power(uint16_t conn_handle, rtk_bt_le_txpower_phy_t phy, int8_t *cur_txpower, int8_t *max_txpower)

Read the current and maximum transmit power levels of the local Controller on the ACL connection and the PHY.

参数:
  • conn_handle -- [in] Connection handle

  • phy -- [in] rtk_bt_le_txpower_phy_t

  • cur_txpower -- [out] Current transmit power level Range: -127 to 20 Units: dBm Note: 0x7F meands current transmit power level is unavailable

  • max_txpower -- [out] Maximum transmit power level Range: -127 to 20 Units: dBm

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_read_remote_tx_power(uint16_t conn_handle, rtk_bt_le_txpower_phy_t phy)

Read the transmit power level used by the remote Controller on the ACL connection and the PHY. Read result will be returned by callback RTK_BT_LE_GAP_EVT_TXPOWER_REPORT_IND.

参数:
  • conn_handle -- [in] Connection handle

  • phy -- [in] rtk_bt_le_txpower_phy_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_tx_power_report_set(uint16_t conn_handle, bool local_enable, bool remote_enable)

Enable or disable reporting transmit power level changes in the local and remote Controllers for the ACL connection.

参数:
  • conn_handle -- [in] Connection handle

  • local_enable -- [in] Enable or disable local transmit power change reports.

  • remote_enable -- [in] Enable or disable remote transmit power change reports.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_get_antenna_info(rtk_bt_le_gap_antenna_info_t *antenna_info)

Get antenna information supprted by the controller.

参数:

antenna_info -- [out] Antenna information

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_connless_cte_rx_start(uint8_t sync_id, rtk_bt_le_gap_connless_cte_rx_param_t *params)

Start connectionless CTE receive.

参数:
  • sync_id -- [in] Identify the periodic advertising train.

  • params -- [in] connetionless CTE receive paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_connless_cte_rx_stop(uint8_t sync_id)

Stop connectionless CTE receive.

参数:

sync_id -- [in] Identify the periodic advertising train.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_conn_cte_tx_start(uint16_t conn_handle, rtk_bt_le_gap_conn_cte_tx_param_t *params)

Start connection-oriented CTE transmit.

参数:
  • conn_handle -- [in] connection handle

  • params -- [in] connection-oriented CTE transmit paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_conn_cte_tx_stop(uint16_t conn_handle)

Stop connection-oriented CTE transmit.

参数:

conn_handle -- [in] connection handle

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_conn_cte_rx_start(uint16_t conn_handle, rtk_bt_le_gap_conn_cte_rx_param_t *rx_params)

Start connection-oriented CTE receive.

参数:
  • conn_handle -- [in] connection handle

  • rx_params -- [in] connection-oriented CTE receive paramters

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_conn_cte_rx_stop(uint16_t conn_handle)

Stop connection-oriented CTE receive.

参数:

conn_handle -- [in] connection handle

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pawr_set_subevent_data(rtk_bt_le_gap_pawr_subevent_data_t *param)

Set the data for one subevent of a Periodic Advertising with Responses Advertiser in reply data request.

参数:

param -- [in] parameter rtk_bt_le_gap_pawr_subevent_data_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pawr_set_response_data(rtk_bt_le_gap_pawr_set_response_t *param)

Set the data for a response slot in a specific subevent of the PAwR.

参数:

param -- [in] parameter rtk_bt_le_gap_pawr_set_response_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_pawr_sync_subevent(rtk_bt_le_gap_pawr_sync_subevent_t *param)

Synchronize with a subset of subevents.

参数:

param -- [in] parameter rtk_bt_le_gap_pawr_sync_subevent_t

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_register_psm(uint8_t is_register, uint16_t le_psm)

Register or unregister le psm for le credit based connection-oriented channel(coc).

参数:
  • is_register -- [in] 1 for register, 0 for unregister

  • le_psm -- [in] LE PSM value

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_set_psm_security(uint16_t le_psm, uint8_t active, rtk_bt_le_coc_security_mode_t sec_mode, uint8_t key_size)

Set security permission for le psm.

参数:
  • le_psm -- [in] LE PSM value

  • active -- [in] 1 for set security, 0 for clear the set for this LE PSM

  • sec_mode -- [in] COC security mode to set

  • key_size -- [in] Security key size, usually set as 16(common encryption key size)

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_set_param(rtk_bt_le_coc_param_type_t param_type, uint16_t value)

Set le coc parameter.

参数:
  • param_type -- [in] Parameter type

  • value -- [in] Parameter value

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_get_chan_param(rtk_bt_le_coc_chan_param_type_t param_type, uint16_t cid, uint16_t *value)

Get le coc channel parameter.

参数:
  • param_type -- [in] Parameter type

  • cid -- [in] COC channel ID

  • value -- [out] Pointer of parameter value to get

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_connect(uint16_t conn_handle, uint16_t le_psm)

COC connection request, will cause event RTK_BT_LE_GAP_EVT_COC_CONNECT_IND.

参数:
  • conn_handle -- [in] Connection handle

  • le_psm -- [in] LE PSM value

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_disconnect(uint16_t cid)

COC disconnection request, will cause event RTK_BT_LE_GAP_EVT_COC_DISCONNECT_IND.

参数:

cid -- [in] COC channel ID

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_coc_send_data(uint16_t cid, uint16_t len, uint8_t *data)

COC send data, will cause event RTK_BT_LE_GAP_EVT_COC_SEND_DATA_RESULT_IND.

参数:
  • cid -- [in] COC channel ID

  • len -- [in] Length of data

  • data -- [in] Pointer of data

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_dtm_rx_test(rtk_bt_le_dtm_rx_param_t *p_rx_param, rtk_bt_le_dtm_rx_version_t rx_version)

Set BLE receiver test parameters and start.

备注

This API shall be called after BT init, and DO NOT execute ADV / Scan / Connection related actions before calling this API. After calling this API, DO NOT execute ADV / Scan / Connection actions UNLESS BT deinit & BT init is done again before that.

参数:
  • p_rx_param -- [in] BLE receiver test parameters

  • rx_version -- [in] BLE receiver test version

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_dtm_tx_test(rtk_bt_le_dtm_tx_param_t *p_tx_param, rtk_bt_le_dtm_tx_version_t tx_version)

Set BLE transmitter test parameters and start.

备注

This API shall be called after BT init, and DO NOT execute ADV / Scan / Connection related actions before calling this API. After calling this API, DO NOT execute ADV / Scan / Connection actions UNLESS BT deinit & BT init is done again before that.

参数:
  • p_tx_param -- [in] BLE transmitter test parameters

  • tx_version -- [in] BLE transmitter test version

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_gap_dtm_end(uint16_t *p_num_pkts)

Set BLE receiver or transmitter end and report number of test packets received.

备注

This API shall be called after BT init, and DO NOT execute ADV / Scan / Connection related actions before calling this API. After calling this API, DO NOT execute ADV / Scan / Connection actions UNLESS BT deinit & BT init is done again before that.

参数:

p_num_pkts -- [out] Pointer of number of test packets received

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Functions

BT Mesh Common Functions

uint16_t rtk_bt_mesh_stack_prov_param_set(rtk_bt_mesh_stack_act_set_prov_param_t *init_setting)

Prov param set function, will cause event RTK_BT_MESH_STACK_ACT_SET_PROV_PARAM.

参数:

init_setting -- [in] init setting param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_pb_adv_con(rtk_bt_mesh_stack_act_pb_adv_con_t *pbadvcon)

Establish PBADV link, will cause event RTK_BT_MESH_STACK_ACT_PB_ADV_CON.

参数:

pbadvcon -- [in] PB-ADV link param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_pb_adv_discon(void)

Disconnect PBADV link, will cause event RTK_BT_MESH_STACK_ACT_PB_ADV_DISCON.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_pb_gatt_con(rtk_bt_mesh_stack_act_pb_gatt_con_t *pgatt_con)

Establish PB-GATT link, will cause event RTK_BT_MESH_STACK_ACT_PB_GATT_CON.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_pb_gatt_discon(rtk_bt_mesh_stack_act_pb_gatt_discon_t *pgatt_discon)

Disconn the PB-GATT link, will cause event RTK_BT_MESH_STACK_ACT_PB_GATT_DISCON.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_start_provisioning(rtk_bt_mesh_stack_act_start_prov_t *start_prov)

Start provisioning, will cause event RTK_BT_MESH_STACK_ACT_START_PROV.

参数:

start_prov -- [in] start provisioning param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_method_choose_for_provisioning(rtk_bt_mesh_stack_prov_start_t *method)

Select a method according unprovisioned device support for provisioning, will cause event RTK_BT_MESH_STACK_ACT_METHOD_CHOOSE_FOR_PROV.

参数:

method -- [in] provisioning method data param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_service_discovery(rtk_bt_mesh_stack_act_prov_dis_t *prov_dis)

Prov service discovery, will cause event RTK_BT_MESH_STACK_ACT_PROV_SERVICE_DISCOVERY.

参数:

prov_dis -- [in] : prov service discovery param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_prov_service_set_notify(rtk_bt_mesh_stack_act_prov_set_notify_t *prov_notify)

Prov service set notify, will cause event RTK_BT_MESH_STACK_ACT_PROV_SERVICE_SET_NOTIFY.

参数:

prov_notify -- [in] : prov service notify set param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_proxy_service_discovery(rtk_bt_mesh_stack_act_proxy_dis_t *proxy_dis)

Proxy service discovery, will cause event RTK_BT_MESH_STACK_ACT_PROXY_SERVICE_DISCOVERY.

参数:

proxy_dis -- [in] : proxy service discovery param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_proxy_service_set_notify(rtk_bt_mesh_stack_act_proxy_set_notify_t *proxy_notify)

Proxy service set notify, will cause event RTK_BT_MESH_STACK_ACT_PROXY_SERVICE_SET_NOTIFY.

参数:

proxy_notify -- [in] : proxy service notify set param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_lpn_init(rtk_bt_mesh_stack_act_lpn_init_t *lpn_init)

Init low power node, will cause event RTK_BT_MESH_STACK_ACT_LPN_INIT.

参数:

lpn_init -- [in] : low power node init param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_lpn_req(rtk_bt_mesh_stack_act_lpn_req_t *lpn_req)

Low power node request a friendship to friend node, will cause event RTK_BT_MESH_STACK_ACT_LPN_REQ.

参数:

lpn_req -- [in] : low power node request friendship param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_lpn_sub(rtk_bt_mesh_stack_act_lpn_sub_t *lpn_sub)

Low power node add or remove subscribe address, will cause event RTK_BT_MESH_STACK_ACT_LPN_SUB.

参数:

lpn_sub -- [in] : low power node subscribe add or remove param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_lpn_clear(rtk_bt_mesh_stack_act_lpn_clear_t *lpn_clear)

Low power node clear friendship, will cause event RTK_BT_MESH_STACK_ACT_LPN_CLEAR.

参数:

lpn_clear -- [in] : low power node clear friendship data param struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_lpn_deinit(void)

Deinit low power node, will cause event RTK_BT_MESH_STACK_ACT_LPN_DEINIT.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_node_reset(void)

Node reset, clear the mesh param, will cause event RTK_BT_MESH_STACK_ACT_NODE_RESET.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_set_device_info_display(rkt_bt_mesh_stack_act_device_info_set_t *p_data)

Device info display switch, will cause event RTK_BT_MESH_STACK_ACT_DEV_INFO_SWITCH.

参数:

p_data -- [in] device info display data struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_user_list_info(void)

Print user list info, will cause event RTK_BT_MESH_STACK_ACT_USER_LIST_INFO.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_send_one_shot_adv(rtk_bt_mesh_stack_act_send_adv_t *adv_param)

Only send one mesh adv, will cause event RTK_BT_MESH_STACK_ACT_SEND_ONE_SHOT_ADV.

参数:

adv_param -- [in] adv param data structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_set_random_value_for_authentication(rtk_bt_mesh_stack_act_set_random_value_t *value)

Set random value when use output or input oob method for Authentication for provisioning, will cause event RTK_BT_MESH_STACK_ACT_SET_RANDOM_VALUE.

参数:

value -- [in] the random value data structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_get_heartbeat_subscribe_result(rtk_bt_mesh_hb_sub_t *hb_sub)

Get heartbeat subscribe result, will cause event RTK_BT_MESH_STACK_ACT_GET_HB_SUB_RESULT.

参数:

hb_sub -- [in] the subscribe result data structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_set_model_subscribe(rtk_bt_mesh_set_model_subscribe_t *model_sub)

Set model subscribe, will cause event RTK_BT_MESH_STACK_ACT_SET_MODEL_SUB.

参数:

model_sub -- [in] the set model subscribe data structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_fn_init(rtk_bt_mesh_stack_act_fn_init_t *friend_init)

Init friendship FN node, will cause event RTK_BT_MESH_STACK_ACT_FN_INIT.

参数:

friend_init -- [in] friend node init data struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_fn_deinit(void)

Deinit friendship FN node, will cause event RTK_BT_MESH_STACK_ACT_FN_DEINIT.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_retrans_param_set(rtk_bt_mesh_stack_set_retrans_param_t *param)

Set retransmit parameters, will cause event RTK_BT_MESH_STACK_ACT_SET_RETRANS_PARAM.

参数:

param -- [in] the set retransmit parameters structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_stack_set_tx_phy(rtk_bt_mesh_stack_act_set_tx_phy_t *tx_phy)

Set mesh tx phy, will cause event RTK_BT_MESH_STACK_ACT_SET_TX_PHY.

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Config Client Model Functions

uint16_t rtk_bt_mesh_config_client_add_app_key(rtk_bt_mesh_config_client_add_app_key_t *add_app_key)

Send Config AppKey Add message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_ADD_APP_KEY.

参数:

add_app_key -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_bind(rtk_bt_mesh_config_client_model_app_bind_t *model_app_bind)

Send Config Model App Bind message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_BIND.

参数:

model_app_bind -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_sub_add(rtk_bt_mesh_config_client_model_sub_add_t *model_sub_add)

Send Config Model Subscription Add message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_ADD.

参数:

model_sub_add -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_default_ttl_get(rtk_bt_mesh_config_client_model_default_ttl_get_t *ttl_get)

Send Config Default TTL Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_DEFAULT_TTL_GET.

参数:

ttl_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_default_ttl_set(rtk_bt_mesh_config_client_model_default_ttl_set_t *ttl_set)

Send Config Default TTL Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_DEFAULT_TTL_SET.

参数:

ttl_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_relay_get(rtk_bt_mesh_config_client_model_relay_get_t *relay_get)

Send Config Relay Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_RELAY_GET.

参数:

relay_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_relay_set(rtk_bt_mesh_config_client_model_relay_set_t *relay_set)

Send Config Relay Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_RELAY_SET.

参数:

relay_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_transmit_get(rtk_bt_mesh_config_client_model_net_transmit_get_t *net_transmit_get)

Send Config Network Transmit Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_TRANSMIT_GET.

参数:

net_transmit_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_transmit_set(rtk_bt_mesh_config_client_model_net_transmit_set_t *net_transmit_set)

Send Config Network Transmit Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_TRANSMIT_SET.

参数:

net_transmit_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_node_reset(rtk_bt_mesh_config_client_model_node_reset_t *node_reset)

Send Config Node Reset message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NODE_RESET.

参数:

node_reset -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_compo_data_get(rtk_bt_mesh_config_client_model_compo_data_get_t *compo_data_get)

Send Config Composition Data Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_COMPO_DATA_GET.

参数:

compo_data_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_beacon_get(rtk_bt_mesh_config_client_model_beacon_get_t *beacon_get)

Send Config Beacon Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_BEACON_GET.

参数:

beacon_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_beacon_set(rtk_bt_mesh_config_client_model_beacon_set_t *beacon_set)

Send Config Beacon Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_BEACON_SET.

参数:

beacon_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_proxy_get(rtk_bt_mesh_config_client_model_proxy_get_t *proxy_get)

Send Config GATT Proxy Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_PROXY_GET.

参数:

proxy_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_proxy_set(rtk_bt_mesh_config_client_model_proxy_set_t *proxy_set)

Send Config GATT Proxy Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_PROXY_SET.

参数:

proxy_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_pub_get(rtk_bt_mesh_config_client_model_model_pub_get_t *pub_get)

Send Config Model Publication Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_PUB_GET.

参数:

pub_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_pub_set(rtk_bt_mesh_config_client_model_model_pub_set_t *pub_set)

Send Config Model Publication Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_PUB_SET.

参数:

pub_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_sub_delete(rtk_bt_mesh_config_client_model_model_sub_delete_t *sub_delete)

Send Config Model Subscription Delete message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_DELETE.

参数:

sub_delete -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_sub_delete_all(rtk_bt_mesh_config_client_model_model_sub_delete_all_t *sub_delete_all)

Send Config Model Subscription Delete All message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_DELETE_ALL.

参数:

sub_delete_all -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_sub_overwrite(rtk_bt_mesh_config_client_model_model_sub_overwrite_t *sub_overwrite)

Send Config Model Subscription Overwrite message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_OVERWRITE.

参数:

sub_overwrite -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_sub_get(rtk_bt_mesh_config_client_model_model_sub_get_t *sub_get)

Send Config Model Subscription Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_GET.

参数:

sub_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_key_add(rtk_bt_mesh_config_client_model_net_key_add_t *net_key_add)

Send Config NetKey Add message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_KEY_ADD.

参数:

net_key_add -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_key_update(rtk_bt_mesh_config_client_model_net_key_update_t *net_key_update)

Send Config NetKey Update message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_KEY_UPDATE.

参数:

net_key_update -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_key_delete(rtk_bt_mesh_config_client_model_net_key_delete_t *net_key_delete)

Send Config NetKey Delete message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_KEY_DELETE.

参数:

net_key_delete -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_net_key_get(rtk_bt_mesh_config_client_model_net_key_get_t *net_key_get)

Send Config NetKey Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NET_KEY_GET.

参数:

net_key_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_key_update(rtk_bt_mesh_config_client_model_app_key_update_t *app_key_update)

Send Config AppKey Update message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_APP_KEY_UPDATE.

参数:

app_key_update -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_key_delete(rtk_bt_mesh_config_client_model_app_key_delete_t *app_key_delete)

Send Config AppKey Delete message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_APP_KEY_DELETE.

参数:

app_key_delete -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_key_get(rtk_bt_mesh_config_client_model_app_key_get_t *app_key_get)

Send Config AppKey Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_APP_KEY_GET.

参数:

app_key_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_node_identity_get(rtk_bt_mesh_config_client_model_node_identity_get_t *node_identity_get)

Send Config Node Identity Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NODE_IDENTITY_GET.

参数:

node_identity_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_node_identity_set(rtk_bt_mesh_config_client_model_node_identity_set_t *node_identity_set)

Send Config Node Identity Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_NODE_IDENTITY_SET.

参数:

node_identity_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_unbind(rtk_bt_mesh_config_client_model_model_app_unbind_t *model_app_unbind)

Send Config Model App Unbind message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_UNBIND.

参数:

model_app_unbind -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_app_get(rtk_bt_mesh_config_client_model_model_app_get_t *model_app_get)

Send Config Model App Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_GET.

参数:

model_app_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_frnd_get(rtk_bt_mesh_config_client_model_frnd_get_t *frnd_get)

Send Config Friend Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_FRND_GET.

参数:

frnd_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_frnd_set(rtk_bt_mesh_config_client_model_frnd_set_t *frnd_set)

Send Config Friend Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_FRND_SET.

参数:

frnd_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_lpn_poll_timeout_get(rtk_bt_mesh_config_client_model_lpn_poll_timeout_get_t *lpn_poll_timeout_get)

Send Config Low Power Node PollTimeout Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_LPN_POLL_TIMEOUT_GET.

参数:

lpn_poll_timeout_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_key_refresh_phase_get(rtk_bt_mesh_config_client_model_key_refresh_phase_get_t *key_refresh_phase_get)

Send Config Key Refresh Phase Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_KEY_REFRESH_PHASE_GET.

参数:

key_refresh_phase_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_key_refresh_phase_set(rtk_bt_mesh_config_client_model_key_refresh_phase_set_t *key_refresh_phase_set)

Send Config Key Refresh Phase Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_KEY_REFRESH_PHASE_SET.

参数:

key_refresh_phase_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_hb_pub_get(rtk_bt_mesh_config_client_model_hb_pub_get_t *hb_pub_get)

Send Config Heartbeat Publication Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_HB_PUB_GET.

参数:

hb_pub_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_hb_pub_set(rtk_bt_mesh_config_client_model_hb_pub_set_t *hb_pub_set)

Send Config Heartbeat Publication Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_HB_PUB_SET.

参数:

hb_pub_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_hb_sub_get(rtk_bt_mesh_config_client_model_hb_sub_get_t *hb_sub_get)

Send Config Heartbeat Subscription Get message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_HB_SUB_GET.

参数:

hb_sub_get -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_config_client_model_hb_sub_set(rtk_bt_mesh_config_client_model_hb_sub_set_t *hb_sub_set)

Send Config Heartbeat Subscription Set message to device, will cause event RTK_BT_MESH_CONFIG_MODEL_HB_SUB_SET.

参数:

hb_sub_set -- [in] config message param

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Datatrans Model Functions

uint16_t rtk_bt_mesh_datatrans_model_write(rtk_bt_mesh_datatrans_client_write_api_t *client_write)

Send datatrans write message to device, will cause event RTK_BT_MESH_DATATRANS_MODEL_ACT_WRITE.

参数:

client_write -- [in] write message param structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_datatrans_model_read(rtk_bt_mesh_datatrans_client_read_api_t *client_read)

Send datatrans read message to device, will cause event RTK_BT_MESH_DATATRANS_MODEL_ACT_READ.

参数:

client_read -- [in] read message param structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Device Firmware Update Model Functions

uint16_t rtk_bt_mesh_dfu_initiator_upload_start(rtk_bt_mesh_dfu_initiator_upload_start_t *param)

Initiator send device firmware update upload start message to Distributor, will cause event RTK_BT_MESH_DFU_ACT_INITIATOR_UPLOAD_START.

参数:

param -- [in] upload start message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_initiator_receivers_add(rtk_bt_mesh_dfu_initiator_dist_recv_add_t *param)

Initiator send device firmware update receiver add message to Distributor, will cause event RTK_BT_MESH_DFU_ACT_INITIATOR_RECEIVERS_ADD.

参数:

param -- [in] receiver add message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_initiator_receivers_delete_all(rtk_bt_mesh_dfu_initiator_dist_recv_del_all_t *param)

Initiator send device firmware update receiver delete all message to Distributor. If execute OTA second time, should send this message to distributer before OTA, will cause event RTK_BT_MESH_DFU_ACT_INITIATOR_RECEIVERS_DEL_ALL.

参数:

param -- [in] receiver add message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_initiator_distribute_start(rtk_bt_mesh_dfu_initiator_fw_dist_start_param_t *param)

Initiator send device firmware update distribute start message to Distributor, will cause event RTK_BT_MESH_DFU_ACT_INITIATOR_DISTRIBUTE_START.

参数:

param -- [in] distribute start message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_standalone_updater_set_param(rtk_bt_mesh_dfu_standalone_updater_set_param_t *param)

Standalone Updater set mesh ota relate param, will cause event RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_SET_PARAM.

参数:

param -- [in] receiver add message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_standalone_updater_add_receiver(rtk_bt_mesh_dfu_standalone_updater_add_receiver_param_t *param)

Standalone Updater send receiver add message to Target, will cause event RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_ADD_RECEIVER.

参数:

param -- [in] receiver add message param

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_dfu_standalone_updater_start(rtk_bt_mesh_dfu_standalone_update_start_t *param)

Standalone Updater send device firmware update start message to Target, will cause event RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_START.

参数:

param -- [in] device firmware update start message param

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Directed Forwarding Model Functions

uint16_t rtk_bt_mesh_directed_control_get(rtk_bt_mesh_df_client_act_directed_control_get_t *control_get)

Send directed control get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_GET.

参数:

control_get -- [in] directed control get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_control_set(rtk_bt_mesh_df_client_act_directed_control_set_t *control_set)

Send directed control set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_SET.

参数:

control_set -- [in] directed control set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_path_metric_get(rtk_bt_mesh_df_client_act_path_metric_get_t *path_metric_get)

Send path metric get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_METRIC_GET.

参数:

path_metric_get -- [in] path metric get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_path_metric_set(rtk_bt_mesh_df_client_act_path_metric_set_t *path_metric_set)

Send path metric set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_METRIC_SET.

参数:

path_metric_set -- [in] path metric set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_discovery_table_capabilities_get(rtk_bt_mesh_df_client_act_discovery_table_capabilities_get_t *dis_tab_cap_get)

Send discovery table capabilities get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DISCOVERY_TABLE_CAPABILITIES_GET.

参数:

dis_tab_cap_get -- [in] discovery table capabilities get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_discovery_table_capabilities_set(rtk_bt_mesh_df_client_act_discovery_table_capabilities_set_t *dis_tab_cap_set)

Send discovery table capabilities set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DISCOVERY_TABLE_CAPABILITIES_SET.

参数:

dis_tab_cap_set -- [in] discovery table capabilities set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_add(rtk_bt_mesh_df_client_act_forwarding_table_add_t *for_tab_add)

Send forwarding table add message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ADD.

参数:

for_tab_add -- [in] forwarding table add message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_delete(rtk_bt_mesh_df_client_act_forwarding_table_delete_t *for_tab_del)

Send forwarding table delete message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DELETE.

参数:

for_tab_del -- [in] forwarding table delete message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_dependents_add(rtk_bt_mesh_df_client_act_forwarding_table_dependents_add_t *for_tab_dep_add)

Send forwarding table dependents add message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_ADD.

参数:

for_tab_dep_add -- [in] forwarding table dependents add message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_dependents_delete(rtk_bt_mesh_df_client_act_forwarding_table_dependents_delete_t *for_tab_dep_del)

Send forwarding table dependents delete message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_DELETE.

参数:

for_tab_dep_del -- [in] forwarding table dependents delete message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_dependents_get(rtk_bt_mesh_df_client_act_forwarding_table_dependents_get_t *for_tab_dep_get)

Send forwarding table dependents get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_GET.

参数:

for_tab_dep_get -- [in] forwarding table dependents get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_entries_count_get(rtk_bt_mesh_df_client_act_forwarding_table_entries_count_get_t *for_tab_entries_count_get)

Send forwarding table entries count get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_COUNT_GET.

参数:

for_tab_entries_count_get -- [in] forwarding table entries count get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_forwarding_table_entries_get(rtk_bt_mesh_df_client_act_forwarding_table_entries_get_t *for_tab_entries_get)

Send forwarding table entries get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_GET.

参数:

for_tab_entries_get -- [in] forwarding table entries get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_wanted_lanes_get(rtk_bt_mesh_df_client_act_wanted_lanes_get_t *wanted_lanes_get)

Send wanted lanes get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_WANTED_LANES_GET.

参数:

wanted_lanes_get -- [in] wanted lanes get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_wanted_lanes_set(rtk_bt_mesh_df_client_act_wanted_lanes_set_t *wanted_lanes_set)

Send wanted lanes set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_WANTED_LANES_SET.

参数:

wanted_lanes_set -- [in] wanted lanes set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_two_way_path_get(rtk_bt_mesh_df_client_act_two_way_path_get_t *two_way_path_get)

Send two way path get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_TWO_WAY_PATH_GET.

参数:

two_way_path_get -- [in] two way path get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_two_way_path_set(rtk_bt_mesh_df_client_act_two_way_path_set_t *two_way_path_set)

Send two way path set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_TWO_WAY_PATH_SET.

参数:

two_way_path_set -- [in] two way path set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_path_echo_interval_get(rtk_bt_mesh_df_client_act_path_echo_interval_get_t *path_echo_interval_get)

Send path echo interval get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_ECHO_INTERVAL_GET.

参数:

path_echo_interval_get -- [in] path echo interval get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_path_echo_interval_set(rtk_bt_mesh_df_client_act_path_echo_interval_set_t *path_echo_interval_set)

Send path echo interval set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_ECHO_INTERVAL_SET.

参数:

path_echo_interval_set -- [in] path echo interval set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_network_transmit_get(rtk_bt_mesh_df_client_act_directed_network_transmit_get_t *net_trans_get)

Send network transmit get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_NETWORK_TRANSMIT_GET.

参数:

net_trans_get -- [in] network transmit get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_network_transmit_set(rtk_bt_mesh_df_client_act_directed_network_transmit_set_t *net_trans_set)

Send network transmit get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_NETWORK_TRANSMIT_SET.

参数:

net_trans_set -- [in] network transmit set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_relay_retransmit_get(rtk_bt_mesh_df_client_act_directed_relay_retransmit_get_t *relay_retrans_get)

Send relay retransmit get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_RELAY_RETRANSMIT_GET.

参数:

relay_retrans_get -- [in] relay retransmit get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_relay_retransmit_set(rtk_bt_mesh_df_client_act_directed_relay_retransmit_set_t *relay_retrans_set)

Send relay retransmit set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_RELAY_RETRANSMIT_SET.

参数:

relay_retrans_set -- [in] relay retransmit set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_rssi_threshold_get(rtk_bt_mesh_df_client_act_rssi_threshold_get_t *rssi_get)

Send rssi threshold get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_RSSI_THRESHOLD_GET.

参数:

rssi_get -- [in] rssi threshold get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_rssi_threshold_set(rtk_bt_mesh_df_client_act_rssi_threshold_set_t *rssi_set)

Send rssi threshold set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_RSSI_THRESHOLD_SET.

参数:

rssi_set -- [in] rssi threshold set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_paths_get(rtk_bt_mesh_df_client_act_directed_paths_get_t *path_get)

Send directed path get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_PATHS_GET.

参数:

path_get -- [in] directed path get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_publish_policy_get(rtk_bt_mesh_df_client_act_directed_publish_policy_get_t *policy_get)

Send directed publish policy get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_PUBLISH_POLICY_GET.

参数:

policy_get -- [in] directed publish policy get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_publish_policy_set(rtk_bt_mesh_df_client_act_directed_publish_policy_set_t *policy_set)

Send directed publish policy set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_PUBLISH_POLICY_SET.

参数:

policy_set -- [in] directed publish policy set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_discovery_timing_control_get(rtk_bt_mesh_df_client_act_path_discovery_timing_control_get_t *timing_ctl_get)

Send discovery timing control get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_DISCOVERY_TIMING_CONTROL_GET.

参数:

timing_ctl_get -- [in] discovery timing control get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_discovery_timing_control_set(rtk_bt_mesh_df_client_act_path_discovery_timing_control_set_t *timing_ctl_set)

Send discovery timing control set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_PATH_DISCOVERY_TIMING_CONTROL_SET.

参数:

timing_ctl_set -- [in] discovery timing control set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_control_network_transmit_get(rtk_bt_mesh_df_client_act_directed_control_network_transmit_get_t *ctl_net_trans_get)

Send directed control network transmit get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_NETWORK_TRANSMIT_GET.

参数:

ctl_net_trans_get -- [in] directed control network transmit get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_control_network_transmit_set(rtk_bt_mesh_df_client_act_directed_control_network_transmit_set_t *ctl_net_trans_set)

Send directed control network transmit set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_NETWORK_TRANSMIT_SET.

参数:

ctl_net_trans_set -- [in] directed control network transmit set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_control_relay_retransmit_get(rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_get_t *ctl_relay_retrans_get)

Send directed control relay retransmit get message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_RELAY_RETRANSMIT_GET.

参数:

ctl_relay_retrans_get -- [in] directed control relay retransmit get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_directed_control_relay_retransmit_set(rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_set_t *ctl_relay_retrans_set)

Send directed control relay retransmit set message to directed forwarding server, will cause event RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_RELAY_RETRANSMIT_SET.

参数:

ctl_relay_retrans_set -- [in] directed control relay retransmit set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_discovery(rtk_bt_mesh_df_act_df_path_discovery_t *path_discovery)

Send directed forwarding path discovery message to directed forwarding devices, will cause event RTK_BT_MESH_DF_PATH_DISCOVERY.

参数:

path_discovery -- [in] directed forwarding path discovery message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_solicitation(rtk_bt_mesh_df_act_df_path_solicitation_t *path_solicitation)

Send directed forwarding path solicitation message to directed forwarding devices, will cause event RTK_BT_MESH_DF_PATH_SOLICITATION.

参数:

path_solicitation -- [in] directed forwarding path solicitation message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_dependents_update(rtk_bt_mesh_df_act_df_path_dependents_update_t *path_dep_update)

Send directed forwarding path dependents update message to directed forwarding devices, will cause event RTK_BT_MESH_DF_PATH_SOLICITATION.

参数:

path_dep_update -- [in] directed forwarding path dependents update message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_control_state_get(rtk_bt_mesh_df_control_state_setting_t *ctl)

Send directed forwarding control state get message to get own df control state.

参数:

ctl -- [in] directed forwarding control state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_control_state_set(rtk_bt_mesh_df_control_state_setting_t *ctl)

Send directed forwarding control state set message to set own df control state.

参数:

ctl -- [in] directed forwarding control state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_metric_state_get(rtk_bt_mesh_df_path_metric_state_setting_t *pm)

Send directed forwarding path metric get message to get own df path metric state.

参数:

pm -- [in] directed forwarding path metric state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_metric_state_set(rtk_bt_mesh_df_path_metric_state_setting_t *pm)

Send directed forwarding path metric set message to set own df path metric state.

参数:

pm -- [in] directed forwarding path metric state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_discovery_table_capablities_state_get(rtk_bt_mesh_df_discovery_table_cap_state_setting_t *dtcs)

Send directed forwarding discovery table capablities get message to get own discovery table capablities state.

参数:

dtcs -- [in] directed forwarding discovery table capablities state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_discovery_table_capablities_state_set(rtk_bt_mesh_df_discovery_table_cap_state_setting_t *dtcs)

Send directed forwarding discovery table capablities set message to set own discovery table capablities state.

参数:

dtcs -- [in] directed forwarding discovery table capablities state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_wanted_lanes_state_get(rtk_bt_mesh_df_wanted_lanes_state_setting_t *wls)

Send directed forwarding wanted lanes get message to get own wanted lane state.

参数:

wls -- [in] directed forwarding wanted lane state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_wanted_lanes_state_set(rtk_bt_mesh_df_wanted_lanes_state_setting_t *wls)

Send directed forwarding wanted lanes set message to set own wanted lane state.

参数:

wls -- [in] directed forwarding wanted lane state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_two_way_path_state_get(rtk_bt_mesh_df_two_way_path_state_setting_t *twps)

Send directed forwarding two way path get message to get own two way path state.

参数:

twps -- [in] directed forwarding two way path state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_two_way_path_state_set(rtk_bt_mesh_df_two_way_path_state_setting_t *twps)

Send directed forwarding two way path set message to set own two way path state.

参数:

twps -- [in] directed forwarding two way path state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_echo_interval_state_get(rtk_bt_mesh_df_echo_interval_state_setting_t *peis)

Send directed forwarding path echo interval get message to get own path echo interval state.

参数:

peis -- [in] directed forwarding path echo interval state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_path_echo_interval_state_set(rtk_bt_mesh_df_echo_interval_state_setting_t *peis)

Send directed forwarding path echo interval set message to set own path echo interval state.

参数:

peis -- [in] directed forwarding path echo interval state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_publish_policy_set(rtk_bt_mesh_df_publish_policy_setting_t *policy)

Send directed forwarding model publish policy set message to set own model publish policy state.

参数:

policy -- [in] directed forwarding model publish policy state setting structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_df_parameter_set(rtk_bt_mesh_directed_control_param_setting_t *param)

Send directed forwarding parameter set message to set own mesh node releated df parameter.

参数:

param -- [in] directed forwarding parameter structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Generic Default Transition Time Functions

uint16_t rtk_bt_mesh_generic_default_transition_time_client_get(rtk_bt_mesh_generic_default_transition_time_get_t *time_get)

Send generic default transition time get message to generic default transition time server, will cause event RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_GET.

参数:

time_get -- [in] generic default transition time get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_default_transition_time_client_set(rtk_bt_mesh_generic_default_transition_time_set_t *time_set)

Send generic default transition time set message to generic default transition time server, will cause event RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_SET.

参数:

time_set -- [in] generic default transition time set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Generic Model Functions

uint16_t rtk_bt_mesh_generic_level_client_get(rtk_bt_mesh_generic_level_get_t *level_get)

Send generic level get message to generic level server, will cause event RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_GET.

参数:

level_get -- [in] generic level get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_level_client_set(rtk_bt_mesh_generic_level_set_t *level_set)

Send generic level set message to generic level server, will cause event RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_SET.

参数:

level_set -- [in] generic level set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_level_client_move_set(rtk_bt_mesh_generic_level_move_set_t *move_set)

Send generic level move set message to generic level server, will cause event RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_MOVE_SET.

参数:

move_set -- [in] generic move set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_level_client_delta_set(rtk_bt_mesh_generic_level_delta_set_t *delta_set)

Send generic level delta set message to generic level server, will cause event RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_DELTA_SET.

参数:

delta_set -- [in] generic delta set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_on_power_up_client_get(rtk_bt_mesh_generic_on_power_up_get_t *power_get)

Send generic on power up get message to generic power on off server, will cause event RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_GET.

参数:

power_get -- [in] generic on power up get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_on_power_up_client_set(rtk_bt_mesh_generic_on_power_up_set_t *power_set)

Send generic on power up set message to generic power on off setup server, will cause event RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_SET.

参数:

power_set -- [in] generic on power up set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_get(rtk_bt_mesh_generic_power_level_get_t *power_level_get)

Send generic power level get message to generic power level server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_GET.

参数:

power_level_get -- [in] generic power level get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_set(rtk_bt_mesh_generic_power_level_set_t *power_level_set)

Send generic power level set message to generic power level server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_SET.

参数:

power_level_set -- [in] generic power level set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_last_get(rtk_bt_mesh_generic_power_level_last_get_t *power_level_last_get)

Send generic power level last get message to generic power level server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_LAST_GET.

参数:

power_level_last_get -- [in] generic power level last get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_default_get(rtk_bt_mesh_generic_power_level_default_get_t *power_level_default_get)

Send generic power level default get message to generic power level server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_DEFAULT_GET.

参数:

power_level_default_get -- [in] generic power level default get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_default_set(rtk_bt_mesh_generic_power_level_default_set_t *power_level_default_set)

Send generic power level default set message to generic power level setup server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_DEFAULT_SET.

参数:

power_level_default_set -- [in] generic power level default set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_range_get(rtk_bt_mesh_generic_power_level_range_get_t *power_level_range_get)

Send generic power level range get message to generic power level server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_RANGE_GET.

参数:

power_level_range_get -- [in] generic power level range get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_power_level_client_range_set(rtk_bt_mesh_generic_power_level_range_set_t *power_level_range_set)

Send generic power level range set message to generic power level setup server, will cause event RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_RANGE_SET.

参数:

power_level_range_set -- [in] generic power level range set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_battery_client_get(rtk_bt_mesh_generic_battery_get_t *battery_get)

Send generic battery get message to generic battery server, will cause event RTK_BT_MESH_GENERIC_BATTERY_CLIENT_MODEL_GET.

参数:

battery_get -- [in] generic battery get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_location_client_global_get(rtk_bt_mesh_generic_location_global_get_t *global_get)

Send generic location global get message to generic location server, will cause event RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_GLOBAL_GET.

参数:

global_get -- [in] generic location global get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_location_client_global_set(rtk_bt_mesh_generic_location_global_set_t *global_set)

Send generic location global set message to generic location setup server, will cause event RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_GLOBAL_SET.

参数:

global_set -- [in] generic location global set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_location_client_local_get(rtk_bt_mesh_generic_location_local_get_t *local_get)

Send generic location local get message to generic location server, will cause event RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_LOCAL_GET.

参数:

local_get -- [in] generic location local get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_location_client_local_set(rtk_bt_mesh_generic_location_local_set_t *local_set)

Send generic location local set message to generic location setup server, will cause event RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_LOCAL_SET.

参数:

local_set -- [in] generic location local set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_user_properties_get(rtk_bt_mesh_generic_user_properties_get_t *user_get)

Send generic user properties get message to generic user property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTIES_GET.

参数:

user_get -- [in] generic user properties get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_user_property_get(rtk_bt_mesh_generic_user_property_get_t *user_property_get)

Send generic user property get message to generic user property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTY_GET.

参数:

user_property_get -- [in] generic user property get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_user_property_set(rtk_bt_mesh_generic_user_property_set_t *user_property_set)

Send generic user property set message to generic user property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTY_SET.

参数:

user_property_set -- [in] generic user property set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_admin_properties_get(rtk_bt_mesh_generic_admin_properties_get_t *admin_get)

Send generic admin properties get message to generic admin property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTIES_GET.

参数:

admin_get -- [in] generic admin properties get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_admin_property_get(rtk_bt_mesh_generic_admin_property_get_t *admin_property_get)

Send generic admin property get message to generic admin property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTY_GET.

参数:

admin_property_get -- [in] generic admin property get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_admin_property_set(rtk_bt_mesh_generic_admin_property_set_t *admin_property_set)

Send generic admin property set message to generic admin property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTY_SET.

参数:

admin_property_set -- [in] generic admin property set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_manu_properties_get(rtk_bt_mesh_generic_manu_properties_get_t *manu_get)

Send generic manufacturer properties get message to generic manufacturer property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTIES_GET.

参数:

manu_get -- [in] generic manufacturer properties get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_manu_property_get(rtk_bt_mesh_generic_manu_property_get_t *manu_property_get)

Send generic manufacturer property get message to generic manufacturer property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTY_GET.

参数:

manu_property_get -- [in] generic manufacturer property get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_manu_property_set(rtk_bt_mesh_generic_manu_property_set_t *manu_property_set)

Send generic manufacturer property set message to generic manufacturer property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTY_SET.

参数:

manu_property_set -- [in] generic manufacturer property set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_client_properties_get(rtk_bt_mesh_generic_client_properties_get_t *client_get)

Send generic client properties get message to generic client property server, will cause event RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_CLIENT_PROPERTY_GET.

参数:

client_get -- [in] generic client properties get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_user_db_set(rtk_bt_mesh_generic_property_server_db_set_t *db_set)

Send generic user property database set message to set user property database, will cause event RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] generic database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_admin_db_set(rtk_bt_mesh_generic_property_server_db_set_t *db_set)

Send generic admin property database set message to set admin property database, will cause event RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] generic database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_property_client_manu_db_set(rtk_bt_mesh_generic_property_server_db_set_t *db_set)

Send generic manu property database set message to set manu property database, will cause event RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] generic database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Generic Onoff Model Functions

uint16_t rtk_bt_mesh_generic_onoff_client_set(rtk_bt_mesh_generic_onoff_client_act_set_t *onoff_set)

Send generic on off set message to generic on off server, will cause event RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_ACT_SET.

参数:

onoff_set -- [in] generic on off set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_generic_onoff_client_get(rtk_bt_mesh_generic_onoff_client_act_get_t *onoff_get)

Send generic on off get message to generic on off server, will cause event RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_ACT_GET.

参数:

onoff_get -- [in] generic on off get message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Health Model Functions

uint16_t rtk_bt_mesh_health_fault_get(rtk_bt_mesh_health_fault_get_t *health_fault_get)

Send health fault get message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_GET.

参数:

health_fault_get -- [in] health fault get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_fault_clear(rtk_bt_mesh_health_fault_clear_t *health_fault_clear)

Send health fault clear message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_CLEAR.

参数:

health_fault_clear -- [in] health fault clear message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_fault_test(rtk_bt_mesh_health_fault_test_t *health_fault_test)

Send health fault test message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_TEST.

参数:

health_fault_test -- [in] health fault test message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_period_get(rtk_bt_mesh_health_period_get_t *health_period_get)

Send health period get message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_PERIOD_GET.

参数:

health_period_get -- [in] health period get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_period_set(rtk_bt_mesh_health_period_set_t *health_period_set)

Send health period set message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_PERIOD_SET.

参数:

health_period_set -- [in] health period set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_attn_get(rtk_bt_mesh_health_attn_get_t *health_attn_get)

Send health attn get message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_ATTN_GET.

参数:

health_attn_get -- [in] health attn get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_attn_set(rtk_bt_mesh_health_attn_set_t *health_attn_set)

Send health attn set message to health server, will cause event RTK_BT_MESH_HEALTH_CLIENT_MODEL_ATTN_SET.

参数:

health_attn_set -- [in] health attn set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_fault_register(rtk_bt_mesh_health_server_fault_register_act_t *health_fault_register)

Send health server fault register message to health server, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_FAULT_REGISTER.

参数:

health_fault_register -- [in] health fault register message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_fault_clear(rtk_bt_mesh_health_server_fault_clear_act_t *health_fault_clear)

Send health server fault clear message to health server, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CURRENT_FAULT_CLEAR.

参数:

health_fault_clear -- [in] health fault clear message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_fault_clear_all(void)

Send health server fault clear all message to health server, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CURRENT_FAULT_CLEAR_ALL.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_fault_count(rtk_bt_mesh_health_server_count_fault_act_t *fault_count)

Send health server fault count message to health server, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_FAULT_COUNT.

参数:

fault_count -- [in] health fault count message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_fault_check(rtk_bt_mesh_health_server_check_fault_act_t *health_fault_check)

Send health server fault check message to check if the fault is set, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CHECK_FAULT_IS_SET.

参数:

health_fault_check -- [in] health fault check message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_set_tests(rtk_bt_mesh_health_server_test_set_t *test_set)

Send health server fault test set message to set related health test, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_TEST_SET.

参数:

test_set -- [in] health fault test set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_health_server_set_company_id(rtk_bt_mesh_health_server_company_id_set_t *company_id_set)

Send health server fault company id set message to set health server company id, will cause event RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_COMPANY_ID_SET.

参数:

company_id_set -- [in] health fault company id set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Light Model Functions

uint16_t rtk_bt_mesh_light_lightness_get(rtk_bt_mesh_light_lightness_get_t *lightness_get)

Send light lightness get message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_GET.

参数:

lightness_get -- [in] light lightness get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_set(rtk_bt_mesh_light_lightness_set_t *lightness_set)

Send light lightness set message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_SET.

参数:

lightness_set -- [in] light lightness set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_linear_get(rtk_bt_mesh_light_lightness_linear_get_t *lightness_linear_get)

Send light lightness linear get message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_CLIENT_MODEL_GET.

参数:

lightness_linear_get -- [in] light lightness linear get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_linear_set(rtk_bt_mesh_light_lightness_linear_set_t *lightness_linear_set)

Send light lightness linear set message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_CLIENT_MODEL_SET.

参数:

lightness_linear_set -- [in] light lightness linear set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_last_get(rtk_bt_mesh_light_lightness_last_get_t *lightness_last_get)

Send light lightness last get message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_LAST_CLIENT_MODEL_GET.

参数:

lightness_last_get -- [in] light lightness last get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_default_get(rtk_bt_mesh_light_lightness_default_get_t *lightness_default_get)

Send light lightness default get message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_CLIENT_MODEL_GET.

参数:

lightness_default_get -- [in] light lightness default get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_default_set(rtk_bt_mesh_light_lightness_default_set_t *lightness_default_set)

Send light lightness default set message to light lightness setup server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_CLIENT_MODEL_SET.

参数:

lightness_default_set -- [in] light lightness default set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_range_get(rtk_bt_mesh_light_lightness_range_get_t *lightness_range_get)

Send light lightness range get message to light lightness server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_CLIENT_MODEL_GET.

参数:

lightness_range_get -- [in] light lightness range get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lightness_range_set(rtk_bt_mesh_light_lightness_range_set_t *lightness_range_set)

Send light lightness range set message to light lightness setup server, will cause event RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_CLIENT_MODEL_SET.

参数:

lightness_range_set -- [in] light lightness range set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_get(rtk_bt_mesh_light_ctl_get_t *ctl_get)

Send light ctl get message to light ctl server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_GET.

参数:

ctl_get -- [in] light ctl get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_set(rtk_bt_mesh_light_ctl_set_t *ctl_set)

Send light ctl set message to light ctl server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_SET.

参数:

ctl_set -- [in] light ctl set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_temperature_get(rtk_bt_mesh_light_ctl_temperature_get_t *ctl_temperature_get)

Send light ctl temperature get message to light ctl temperature server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_GET.

参数:

ctl_temperature_get -- [in] light ctl temperature get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_temperature_set(rtk_bt_mesh_light_ctl_temperature_set_t *ctl_temperature_set)

Send light ctl temperature set message to light ctl temperature server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_SET.

参数:

ctl_temperature_set -- [in] light ctl temperature set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_temperature_range_get(rtk_bt_mesh_light_ctl_temperature_range_get_t *ctl_temperature_range_get)

Send light ctl range get message to light ctl server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_RANGE_GET.

参数:

ctl_temperature_range_get -- [in] light ctl temperature range get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_temperature_range_set(rtk_bt_mesh_light_ctl_temperature_range_set_t *ctl_temperature_range_set)

Send light ctl range set message to light ctl setup server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_RANGE_SET.

参数:

ctl_temperature_range_set -- [in] light ctl temperature range set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_default_get(rtk_bt_mesh_light_ctl_default_get_t *ctl_default_get)

Send light ctl default get message to light ctl server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_DEFAULT_GET.

参数:

ctl_default_get -- [in] light ctl defaultget message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_ctl_default_set(rtk_bt_mesh_light_ctl_default_set_t *ctl_default_set)

Send light ctl default set message to light ctl setup server, will cause event RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_DEFAULT_SET.

参数:

ctl_default_set -- [in] light ctl default set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_get(rtk_bt_mesh_light_hsl_get_t *hsl_get)

Send light hsl get message to light hsl server, will cause event RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_GET.

参数:

hsl_get -- [in] light hsl get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_set(rtk_bt_mesh_light_hsl_set_t *hsl_set)

Send light hsl set message to light hsl server, will cause event RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_SET.

参数:

hsl_set -- [in] light hsl set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_target_get(rtk_bt_mesh_light_hsl_target_get_t *hsl_target_get)

Send light hsl target get message to light hsl server, will cause event RTK_BT_MESH_LIGHT_HSL_TARGET_CLIENT_MODEL_GET.

参数:

hsl_target_get -- [in] light hsl target get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_hue_get(rtk_bt_mesh_light_hsl_hue_get_t *hsl_hue_get)

Send light hsl hue get message to light hsl hue server, will cause event RTK_BT_MESH_LIGHT_HSL_HUE_CLIENT_MODEL_GET.

参数:

hsl_hue_get -- [in] light hsl hue get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_hue_set(rtk_bt_mesh_light_hsl_hue_set_t *hsl_hue_set)

Send light hsl hue set message to light hsl hue server, will cause event RTK_BT_MESH_LIGHT_HSL_HUE_CLIENT_MODEL_SET.

参数:

hsl_hue_set -- [in] light hsl hue set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_saturation_get(rtk_bt_mesh_light_hsl_saturation_get_t *hsl_saturation_get)

Send light hsl saturation get message to light hsl saturation server, will cause event RTK_BT_MESH_LIGHT_HSL_SATURATION_CLIENT_MODEL_GET.

参数:

hsl_saturation_get -- [in] light hsl saturation get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_saturation_set(rtk_bt_mesh_light_hsl_saturation_set_t *hsl_saturation_set)

Send light hsl saturation set message to light hsl saturation server, will cause event RTK_BT_MESH_LIGHT_HSL_SATURATION_CLIENT_MODEL_SET.

参数:

hsl_saturation_set -- [in] light hsl saturation set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_default_get(rtk_bt_mesh_light_hsl_default_get_t *hsl_default_get)

Send light hsl default get message to light hsl server, will cause event RTK_BT_MESH_LIGHT_HSL_DEFAULT_CLIENT_MODEL_GET.

参数:

hsl_default_get -- [in] light hsl default get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_default_set(rtk_bt_mesh_light_hsl_default_set_t *hsl_default_set)

Send light hsl default set message to light hsl setup server, will cause event RTK_BT_MESH_LIGHT_HSL_DEFAULT_CLIENT_MODEL_SET.

参数:

hsl_default_set -- [in] light hsl default set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_range_get(rtk_bt_mesh_light_hsl_range_get_t *hsl_range_get)

Send light hsl range get message to light hsl server, will cause event RTK_BT_MESH_LIGHT_HSL_RANGE_CLIENT_MODEL_GET.

参数:

hsl_range_get -- [in] light hsl range get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_hsl_range_set(rtk_bt_mesh_light_hsl_range_set_t *hsl_range_set)

Send light hsl range set message to light hsl setup server, will cause event RTK_BT_MESH_LIGHT_HSL_RANGE_CLIENT_MODEL_SET.

参数:

hsl_range_set -- [in] light hsl range set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_get(rtk_bt_mesh_light_xyl_get_t *xyl_get)

Send light xyl get message to light xyl server, will cause event RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_GET.

参数:

xyl_get -- [in] light xyl get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_set(rtk_bt_mesh_light_xyl_set_t *xyl_set)

Send light xyl set message to light xyl server, will cause event RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_SET.

参数:

xyl_set -- [in] light xyl set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_target_get(rtk_bt_mesh_light_xyl_target_get_t *xyl_target_get)

Send light xyl target get message to light xyl server, will cause event RTK_BT_MESH_LIGHT_XYL_TARGET_CLIENT_MODEL_GET.

参数:

xyl_target_get -- [in] light xyl target get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_default_get(rtk_bt_mesh_light_xyl_default_get_t *xyl_default_get)

Send light xyl default get message to light xyl server, will cause event RTK_BT_MESH_LIGHT_XYL_DEFAULT_CLIENT_MODEL_GET.

参数:

xyl_default_get -- [in] light xyl default get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_default_set(rtk_bt_mesh_light_xyl_default_set_t *xyl_default_set)

Send light xyl default set message to light xyl setup server, will cause event RTK_BT_MESH_LIGHT_XYL_DEFAULT_CLIENT_MODEL_SET.

参数:

xyl_default_set -- [in] light xyl default set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_range_get(rtk_bt_mesh_light_xyl_range_get_t *xyl_range_get)

Send light xyl range get message to light xyl server, will cause event RTK_BT_MESH_LIGHT_XYL_RANGE_CLIENT_MODEL_GET.

参数:

xyl_range_get -- [in] light xyl range get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_xyl_range_set(rtk_bt_mesh_light_xyl_range_set_t *xyl_range_set)

Send light xyl range set message to light xyl setup server, will cause event RTK_BT_MESH_LIGHT_XYL_RANGE_CLIENT_MODEL_SET.

参数:

xyl_range_set -- [in] light xyl range set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_mode_get(rtk_bt_mesh_light_lc_mode_get_t *lc_mode_get)

Send light lc mode get message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_MODE_CLIENT_MODEL_GET.

参数:

lc_mode_get -- [in] light lc mode get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_mode_set(rtk_bt_mesh_light_lc_mode_set_t *lc_mode_set)

Send light lc mode set message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_MODE_CLIENT_MODEL_SET.

参数:

lc_mode_set -- [in] light lc mode get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_om_get(rtk_bt_mesh_light_lc_om_get_t *lc_om_get)

Send light lc om get message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_OM_CLIENT_MODEL_GET.

参数:

lc_om_get -- [in] light lc om get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_om_set(rtk_bt_mesh_light_lc_om_set_t *lc_om_set)

Send light lc om set message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_OM_CLIENT_MODEL_SET.

参数:

lc_om_set -- [in] light lc om set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_lightonoff_get(rtk_bt_mesh_light_lc_lightonoff_get_t *lc_lightonoff_get)

Send light lc light on off get message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_LIGHTONOFF_CLIENT_MODEL_GET.

参数:

lc_lightonoff_get -- [in] light on off get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_lightonoff_set(rtk_bt_mesh_light_lc_lightonoff_set_t *lc_lightonoff_set)

Send light lc light on off set message to light lc server, will cause event RTK_BT_MESH_LIGHT_LC_LIGHTONOFF_CLIENT_MODEL_SET.

参数:

lc_lightonoff_set -- [in] light on off set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_property_get(rtk_bt_mesh_light_lc_property_get_t *lc_property_get)

Send light lc property get message to light lc setup server, will cause event RTK_BT_MESH_LIGHT_LC_PROPERTY_CLIENT_MODEL_GET.

参数:

lc_property_get -- [in] light property get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_light_lc_property_set(rtk_bt_mesh_light_lc_property_set_t *lc_property_set)

Send light lc property set message to light lc setup server, will cause event RTK_BT_MESH_LIGHT_LC_PROPERTY_CLIENT_MODEL_SET.

参数:

lc_property_set -- [in] light property set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Private Beacon Model Functions

uint16_t rtk_bt_mesh_private_beacon_get(rtk_bt_mesh_private_beacon_get_t *private_beacon_get)

Send private beacon get message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GET.

参数:

private_beacon_get -- [in] private beacon get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_private_beacon_set(rtk_bt_mesh_private_beacon_set_t *private_beacon_set)

Send private beacon set message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_SET.

参数:

private_beacon_set -- [in] private beacon set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_private_gatt_proxy_get(rtk_bt_mesh_private_gatt_proxy_get_t *private_gatt_proxy_get)

Send private gatt proxy get message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GATT_PROXY_GET.

参数:

private_gatt_proxy_get -- [in] private gatt proxy get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_private_gatt_proxy_set(rtk_bt_mesh_private_gatt_proxy_set_t *private_gatt_proxy_set)

Send private gatt proxy set message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GATT_PROXY_SET.

参数:

private_gatt_proxy_set -- [in] private gatt proxy set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_private_node_identity_get(rtk_bt_mesh_private_node_identity_get_t *private_node_identity_get)

Send private node identity get message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_NODE_IDENTITY_GET.

参数:

private_node_identity_get -- [in] private node identity get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_private_node_identity_set(rtk_bt_mesh_private_node_identity_set_t *private_node_identity_set)

Send private node identity set message to private beacon server, will cause event RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_NODE_IDENTITY_SET.

参数:

private_node_identity_set -- [in] private node identity set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Remote Provisioning Model Functions

uint16_t rtk_bt_mesh_remote_prov_scan_start(rtk_bt_mesh_remote_prov_client_scan_start_t *rmt_scan)

Send remote scan start message to device, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_SCAN_START.

参数:

rmt_scan -- [in] remote scan start message param structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_remote_prov_scan_capa_get(rtk_bt_mesh_remote_prov_client_scan_capa_get_t *scan_capa_get)

Send remote scan capa get message to device, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_SCAN_CAPA_GET.

参数:

scan_capa_get -- [in] remote scan capability get message param structure

返回:

  • 0 : Succeed

  • Others: Error code

Send remote link open message to device, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_LINK_OPEN.

参数:

link_open -- [in] remote link open message param structure

返回:

  • 0 : Succeed

  • Others: Error code

Send remote link open dkri message to device, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_DEVICE_KEY_REFRESH.

参数:

link_open_dkri -- [in] remote link open dkri message param structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_remote_prov_dev_key_refresh(uint8_t *attn_dur)

Execute device key refresh procedure, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_DEVICE_KEY_REFRESH.

参数:

attn_dur -- [in] device key refresh message param structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_remote_prov_node_addr_refresh(rtk_bt_mesh_remote_prov_client_node_addr_refresh_t *node_refresh)

Execute node addr refresh procedure, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_DEVICE_KEY_REFRESH.

参数:

node_refresh -- [in] node addr refresh message param structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_remote_prov_composition_refresh(uint8_t *attn_dur)

Execute composition refresh procedure, will cause event RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_DEVICE_KEY_REFRESH.

参数:

attn_dur -- [in] composition refresh message param structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Scene Model Functions

uint16_t rtk_bt_mesh_scene_store(rtk_bt_mesh_scene_store_t *scene_client_store)

Send scene store message to scene setup server, will cause event RTK_BT_MESH_SCENE_CLIENT_MODEL_STORE.

参数:

scene_client_store -- [in] scene store message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_recall(rtk_bt_mesh_scene_recall_t *scene_client_recall)

Send scene recall message to scene server, will cause event RTK_BT_MESH_SCENE_CLIENT_MODEL_RECALL.

参数:

scene_client_recall -- [in] scene recall message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_get(rtk_bt_mesh_scene_get_t *scene_client_get)

Send scene get message to scene server, will cause event RTK_BT_MESH_SCENE_CLIENT_MODEL_GET.

参数:

scene_client_get -- [in] scene get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_register_get(rtk_bt_mesh_scene_register_get_t *scene_register_get)

Send scene register get message to scene server, will cause event RTK_BT_MESH_SCENE_CLIENT_MODEL_REGISTER_GET.

参数:

scene_register_get -- [in] scene register get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_delete(rtk_bt_mesh_scene_delete_t *scene_delete)

Send scene delete message to scene setup server, will cause event RTK_BT_MESH_SCENE_CLIENT_MODEL_DELETE.

参数:

scene_delete -- [in] scene delete message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_server_db_set(rtk_bt_mesh_scene_server_db_set_t *db_set)

Send scene database set message to set scene database, will cause event RTK_BT_MESH_SCENE_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] scene database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scene_setup_server_db_set(rtk_bt_mesh_scene_server_db_set_t *db_set)

Send scene setup database set message to set scene setup database, will cause event RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] scene setup database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Scheduler Model Functions

uint16_t rtk_bt_mesh_scheduler_get(rtk_bt_mesh_scheduler_get_t *scheduler_get)

Send scheduler get message to scheduler server, will cause event RTK_BT_MESH_SCHEDULER_CLIENT_MODEL_GET.

参数:

scheduler_get -- [in] scheduler get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scheduler_action_get(rtk_bt_mesh_scheduler_action_get_t *scheduler_action_get)

Send scheduler action get message to scheduler server, will cause event RTK_BT_MESH_SCHEDULER_ACTION_CLIENT_MODEL_GET.

参数:

scheduler_action_get -- [in] scheduler action get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_scheduler_action_set(rtk_bt_mesh_scheduler_action_set_t *scheduler_action_set)

Send scheduler action set message to scheduler setup server, will cause event RTK_BT_MESH_SCHEDULER_ACTION_CLIENT_MODEL_SET.

参数:

scheduler_action_set -- [in] scheduler action set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Sensor Model Functions

uint16_t rtk_bt_mesh_sensor_descriptor_get(rtk_bt_mesh_sensor_descriptor_get_t *sensor_descriptor_get)

Send sensor descriptor get message to sensor server, will cause event RTK_BT_MESH_SENSOR_DESCRIPTOR_CLIENT_MODEL_GET.

参数:

sensor_descriptor_get -- [in] sensor descriptor get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_cadence_get(rtk_bt_mesh_sensor_cadence_get_t *sensor_cadence_get)

Send sensor cadence get message to sensor setup server, will cause event RTK_BT_MESH_SENSOR_CADENCE_CLIENT_MODEL_GET.

参数:

sensor_cadence_get -- [in] sensor cadence get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_cadence_set(rtk_bt_mesh_sensor_cadence_set_t *sensor_cadence_set)

Send sensor cadence set message to sensor setup server, will cause event RTK_BT_MESH_SENSOR_CADENCE_CLIENT_MODEL_SET.

参数:

sensor_cadence_set -- [in] sensor cadence set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_settings_get(rtk_bt_mesh_sensor_settings_get_t *sensor_settings_get)

Send sensor settings get message to sensor setup server, will cause event RTK_BT_MESH_SENSOR_SETTINGS_CLIENT_MODEL_GET.

参数:

sensor_settings_get -- [in] sensor settings get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_setting_get(rtk_bt_mesh_sensor_setting_get_t *sensor_setting_get)

Send sensor setting get message to sensor setup server, will cause event RTK_BT_MESH_SENSOR_SETTING_CLIENT_MODEL_GET.

参数:

sensor_setting_get -- [in] sensor setting get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_setting_set(rtk_bt_mesh_sensor_setting_set_t *sensor_setting_set)

Send sensor setting set message to sensor setup server, will cause event RTK_BT_MESH_SENSOR_SETTING_CLIENT_MODEL_SET.

参数:

sensor_setting_set -- [in] sensor setting set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_get(rtk_bt_mesh_sensor_get_t *sensor_get)

Send sensor get message to sensor server, will cause event RTK_BT_MESH_SENSOR_CLIENT_MODEL_GET.

参数:

sensor_get -- [in] sensor get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_column_get(rtk_bt_mesh_sensor_column_get_t *sensor_column_get)

Send sensor column get message to sensor server, will cause event RTK_BT_MESH_SENSOR_COLUMN_CLIENT_MODEL_GET.

参数:

sensor_column_get -- [in] sensor column get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_series_get(rtk_bt_mesh_sensor_series_get_t *sensor_series_get)

Send sensor series get message to sensor server, will cause event RTK_BT_MESH_SENSOR_SERIES_CLIENT_MODEL_GET.

参数:

sensor_series_get -- [in] sensor series get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_server_db_set(rtk_bt_mesh_sensor_server_db_set_t *db_set)

Send sensor database set message to set sensor database, will cause event RTK_BT_MESH_SENSOR_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] sensor database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_sensor_setup_server_db_set(rtk_bt_mesh_sensor_server_db_set_t *db_set)

Send sensor setup database set message to set sensor setup database, will cause event RTK_BT_MESH_SENSOR_SETUP_SERVER_MODEL_ACT_DB_SET.

参数:

db_set -- [in] sensor setup database set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Subnet Bridge Model Functions

uint16_t rtk_bt_mesh_subnet_bridge_get(rtk_bt_mesh_subnet_bridge_get_t *subnet_bridge_get)

Send subnet bridge get message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_GET.

参数:

subnet_bridge_get -- [in] subnet bridge get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_subnet_bridge_set(rtk_bt_mesh_subnet_bridge_set_t *subnet_bridge_set)

Send subnet bridge set message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_SET.

参数:

subnet_bridge_set -- [in] subnet bridge set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_bridging_table_add(rtk_bt_mesh_bridging_table_add_t *bridging_table_add)

Send bridging table add message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_ADD.

参数:

bridging_table_add -- [in] bridging table add message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_bridging_table_remove(rtk_bt_mesh_bridging_table_remove_t *bridging_table_remove)

Send bridging table remove message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_REMOVE.

参数:

bridging_table_remove -- [in] bridging table remove message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_bridged_subnets_get(rtk_bt_mesh_bridged_subnets_get_t *bridged_subnets_get)

Send bridged subnets get message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGED_SUBNETS_GET.

参数:

bridged_subnets_get -- [in] bridged subnets get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_bridging_table_get(rtk_bt_mesh_bridging_table_get_t *bridging_table_get)

Send bridging table get message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_GET.

参数:

bridging_table_get -- [in] bridging table get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_bridging_table_size_get(rtk_bt_mesh_bridging_table_size_get_t *bridging_table_size_get)

Send bridging table size get message to subnet bridge server, will cause event RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_SIZE_GET.

参数:

bridging_table_size_get -- [in] bridging table size get message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT Mesh Time Model Functions

uint16_t rtk_bt_mesh_time_get(rtk_bt_mesh_time_get_t *time_client_get)

Send time get message to time server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_GET.

参数:

time_client_get -- [in] time get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_zone_get(rtk_bt_mesh_time_zone_get_t *time_client_zone_get)

Send time zone get message to time server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_ZONE_GET.

参数:

time_client_zone_get -- [in] time get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_tai_utc_delta_get(rtk_bt_mesh_time_tai_utc_delta_get_t *time_client_delta_get)

Send time tai tuc delta get message to time server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_TAI_UTC_DELTA_GET.

参数:

time_client_delta_get -- [in] time tai tuc delta get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_role_get(rtk_bt_mesh_time_role_get_t *time_client_role_get)

Send time role get message to time setup server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_ROLE_GET.

参数:

time_client_role_get -- [in] time role get message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_set(rtk_bt_mesh_time_set_t *time_client_set)

Send time set message to time setup server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_SET.

参数:

time_client_set -- [in] time set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_zone_set(rtk_bt_mesh_time_zone_set_t *time_client_zone_set)

Send time zone set message to time setup server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_ZONE_SET.

参数:

time_client_zone_set -- [in] time zone set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_tai_utc_delta_set(rtk_bt_mesh_time_tai_utc_delta_set_t *time_client_delta_set)

Send time tai utc delta set message to time setup server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_TAI_UTC_DELTA_SET.

参数:

time_client_delta_set -- [in] time tai utc delta set message structure

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_mesh_time_role_set(rtk_bt_mesh_time_role_set_t *time_client_role_set)

Send time role set message to time setup server, will cause event RTK_BT_MESH_TIME_CLIENT_MODEL_ROLE_SET.

参数:

time_client_role_set -- [in] time role set message structure

返回:

  • 0 : Succeed

  • Others: Error code

BT PBAP Functions

uint16_t rtk_bt_pbap_connect(uint8_t *bd_addr)

send pbap connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_disconnect(uint8_t *bd_addr)

disconnect pbap.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_set_phone_book(rtk_bt_pbap_set_pb_t *p_set_pb_t)

send a request to set active phone book.

参数:

p_set_pb_t -- [in] set phone book struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_phone_book_pull(rtk_bt_pbap_pb_pull_t *p_pb_pull_t)

send a request to pull phone book.

参数:

p_pb_pull_t -- [in] phone book struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_phone_book_pull_continue(uint8_t *bd_addr)

send a request to pull more data from the remote server.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_phone_book_pull_abort(uint8_t *bd_addr)

send a request to abort pulling phone book.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_phone_book_size_get(rtk_bt_pbap_pb_size_get_t *p_pb_size_t)

send a request to get phone book size.

参数:

p_pb_size_t -- [in] phone book size struct

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_pbap_pull_caller_id_name(rtk_bt_pbap_pull_caller_id_name_t *p_pull_caller_id_name_t)

send a request to pull the vCard listing in current phonebook by phone number.

参数:

p_pull_caller_id_name_t -- [in] pull caller id name struct

返回:

  • 0 : Succeed

  • Others: Error code

BT Power Control Functions

void rtk_bt_release_wakelock(void)

BT release wakelock.

返回:

None

void rtk_bt_acquire_wakelock(void)

BT acquire wakelock.

返回:

None

void rtk_bt_power_save_init(rtk_bt_ps_callback p_suspend_callback, rtk_bt_ps_callback p_resume_callback)

BT power save init.

参数:
  • p_suspend_callback -- [in] Callback invoked before system entering power save mode.

  • p_resume_callback -- [in] Callback invoked after system waking from power save mode.

返回:

None

void rtk_bt_power_save_deinit(void)

BT power save deinit.

返回:

None

BT RFC Functions

uint16_t rtk_bt_rfc_connect(uint8_t *bd_addr)

Send RFC connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_rfc_disconnect(uint8_t *bd_addr)

Send an RFC disconnection request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_rfc_data_send(rtk_bt_rfc_data_send_t *p_data_send_t)

Send data to peer device on specific rfc channel.

参数:

p_data_send_t -- [in] RFC send data struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_rfc_credits_give(rtk_bt_rfc_credits_give_t *p_credits_give_t)

Send credits to peer device on specific rfc channel.

参数:

p_credits_give_t -- [in] RFC give credits struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

BT SDP Functions

uint16_t rtk_sdp_record_add(void *record, uint32_t length)

set profile record.

参数:
  • record -- [in] record data pointer

  • length -- [in] data length

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_sdp_discov_start(uint8_t *bd_addr)

start bt sdp discovery.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

BT SPP Functions

uint16_t rtk_bt_spp_init_cfg(uint8_t max_link_num, uint8_t max_service_num, uint16_t mtu_size, uint8_t credits)

spp init config

参数:
  • max_link_num -- [in] max spp server channel number

  • max_service_num -- [in] max service number

  • mtu_size -- [in] l2cap mtu size

  • credits -- [in] link credit

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_service_register_cfg(void *spp_service_class_uuid, uint32_t length, uint8_t local_server_chann)

Config register spp uuid together with local server channel.

参数:
  • spp_service_class_uuid -- [in] the service uuid needs to be registered

  • length -- [in] uuid length

  • local_server_chann -- [in] local server channel

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_spp_connect(uint8_t *bd_addr)

Send SPP connect request.

参数:

bd_addr -- [in] bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_spp_disconnect(rtk_bt_spp_disconn_req_t *p_disconn_req_t)

Send an SPP disconnection request.

参数:

p_disconn_req_t -- [in] SPP disconnection request struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_spp_disconnect_all(uint8_t *bd_addr)

Send a request to disconnect all SPP connection.

参数:

bd_addr -- [in] Remote bt address

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_spp_send_data(rtk_bt_spp_send_data_t *p_send_data_t)

Send data to peer device on specific rfc channel.

参数:

p_send_data_t -- [in] SPP send data struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_spp_credits_give(rtk_bt_spp_credits_give_t *p_credits_give_t)

Give SPP credits to remote device.

参数:

p_credits_give_t -- [in] SPP link credits give struct pointer

返回:

  • 0 : Succeed

  • Others: Error code

BT Vendor Functions

void rtk_bt_controller_power_on(void)

BT controller power on.

返回:

None

void rtk_bt_controller_power_off(void)

BT controller power off.

返回:

None

void rtk_bt_set_bt_tx_power_gain_index(uint32_t index)

Set BT TX power gain index.

参数:

index -- [in] TX power gain index.

返回:

None

void rtk_bt_set_bt_antenna(uint8_t ant)

Set BT antenna. This API is only useable for AmebaSmart Platform.

参数:

ant -- [in] BT antenna, 0 for ANT_S0, 1 for ANT_S1.

返回:

None

void rtk_bt_hci_debug_enable(void)

Enable HCI debug.

返回:

None

void rtk_bt_debug_port_mask_enable(uint8_t bt_sel, uint32_t bt_bdg_mask)

Enable BT Debug Port.

参数:
  • bt_sel -- [in] BT Debug Port selection, 0 for BT vendor, 1 for BT on.

  • bt_bdg_mask -- [in] BT debug mask, each bit set 1 means enable BT Debug Port[0-31].

返回:

None

void rtk_bt_debug_port_pad_enable(uint8_t bt_sel, uint8_t bt_dbg_port, char *pad)

Enable BT Debug Port.

参数:
  • bt_sel -- [in] BT Debug Port selection, 0 for BT vendor, 1 for BT on.

  • bt_dbg_port -- [in] BT debug port bit, range 0~31.

  • pad -- [in] PAD name.

返回:

None

void rtk_bt_debug_port_shift(uint8_t original, uint8_t mapping)

Shift BT Debug Port.

参数:
  • original -- [in] Original BT Debug Port which is shift from.

  • mapping -- [in] Target BT Debug Port mapping which is shift to.

返回:

None

void rtk_bt_gpio_enable(uint8_t bt_gpio, char *pad)

Enable BT GPIO.

参数:
  • bt_gpio -- [in] BT GPIO name.

  • pad -- [in] PAD name.

返回:

None

uint16_t rtk_bt_set_tx_power(rtk_bt_vendor_tx_power_param_t *tx_power)

Set BT TX power.

参数:

tx_power -- [in] Pointer to TX power parameter.

返回:

  • 0 : Succeed

  • Others: Error code

rtk_bt_vendor_free_run_clock_t *rtk_bt_get_hc_free_run_clock(void)
uint16_t rtk_bt_get_hc_clock_offset(int64_t *offset)

Get the free run clock offset between BT host & controller.

备注

This API shall NOT be called in bt_api_task.

参数:

offset -- [out] The free run clock offset.

返回:

  • 0 : Succeed

  • Others: Error code

uint16_t rtk_bt_le_sof_eof_ind(uint16_t conn_handle, uint8_t enable, void *cb)

BT LE SOF and EOF interrupt indication enable or disable. This API is only useable for AmebaSmart Platform.

参数:
  • conn_handle -- [in] Connection handle.

  • enable -- [in] 0 for disable, 1 for enable.

  • cb -- [in] SOF and EOF interrupt callback.

返回:

  • 0 : Succeed

  • Others: Error code

BT Constants

BT A2DP Constants

RTK_BT_A2DP_MAX_CODEC_PARAM_LENGTH
RTK_BT_A2DP_MAX_STREAM_DATA_LENGTH
RTK_BT_A2DP_SBC_SAMPLING_FREQUENCY_16KHZ
RTK_BT_A2DP_SBC_SAMPLING_FREQUENCY_32KHZ
RTK_BT_A2DP_SBC_SAMPLING_FREQUENCY_44_1KHZ
RTK_BT_A2DP_SBC_SAMPLING_FREQUENCY_48KHZ
RTK_BT_A2DP_SBC_CHANNEL_MODE_MONO
RTK_BT_A2DP_SBC_CHANNEL_MODE_DUAL_CHANNEL
RTK_BT_A2DP_SBC_CHANNEL_MODE_STEREO
RTK_BT_A2DP_SBC_CHANNEL_MODE_JOINT_STEREO
RTK_BT_A2DP_SBC_BLOCK_LENGTH_4
RTK_BT_A2DP_SBC_BLOCK_LENGTH_8
RTK_BT_A2DP_SBC_BLOCK_LENGTH_12
RTK_BT_A2DP_SBC_BLOCK_LENGTH_16
RTK_BT_A2DP_SBC_SUBBANDS_4
RTK_BT_A2DP_SBC_SUBBANDS_8
RTK_BT_A2DP_SBC_ALLOCATION_METHOD_SNR
RTK_BT_A2DP_SBC_ALLOCATION_METHOD_LOUDNESS
RTK_BT_A2DP_AAC_OBJECT_TYPE_MPEG_2_AAC_LC
RTK_BT_A2DP_AAC_OBJECT_TYPE_MPEG_4_AAC_LC
RTK_BT_A2DP_AAC_OBJECT_TYPE_MPEG_4_AAC_LTP
RTK_BT_A2DP_AAC_OBJECT_TYPE_MPEG_4_AAC_SCALABLE
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_8KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_11_025KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_12KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_16KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_22_05KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_24KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_32KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_44_1KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_48KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_64KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_88_2KHZ
RTK_BT_A2DP_AAC_SAMPLING_FREQUENCY_96KHZ
RTK_BT_A2DP_AAC_CHANNEL_NUMBER_1
RTK_BT_A2DP_AAC_CHANNEL_NUMBER_2

BT AVRCP Constants

RTK_BT_DEFAULT_ABSOLUTE_VOLUME

BT BR GAP Constants

UART_BUD_RX
RWS_PRIMARY_VALID_OK
RWS_SECONDARY_VALID_OK
UNUSED(x)
MAX_NUMBER_OF_GAP_TIMER

indicate gap timer queue size

max BR/EDR link num

A2DP_PROFILE_MASK

bitmask of profiles A2DP profile bitmask

AVRCP_PROFILE_MASK

AVRCP profile bitmask

HFP_PROFILE_MASK

HFP profile bitmask

RDTP_PROFILE_MASK

Remote Control vendor profile bitmask

SPP_PROFILE_MASK

SPP profile bitmask

IAP_PROFILE_MASK

iAP profile bitmask

PBAP_PROFILE_MASK

PBAP profile bitmask

HSP_PROFILE_MASK

HSP profile bitmask

GATT_PROFILE_MASK

GATT profile bitmask

GFPS_PROFILE_MASK

GFPS profile bitmask

XIAOAI_PROFILE_MASK

XIAOAI profile bitmask

AMA_PROFILE_MASK

AMA profile bitmask

AVP_PROFILE_MASK

AVP profile bitmask

ALL_PROFILE_MASK
DEFAULT_SUPVISIONTIMEOUT
RTK_BT_GAP_DEVICE_NAME_LEN

Max length of device name, if device name length exceeds it, it will be truncated.

BT Common Constants

RTK_EVT_POOL_SIZE
BT_API_SYNC_TIMEOUT
RTK_BT_API_LE_BASE
RTK_BT_API_BR_BASE
RTK_BT_API_COMMON_BASE
RTK_BT_API_TASK_EXIT
RTK_BT_EVENT_TASK_EXIT
RTK_BT_DRC_EVENT_TASK_EXIT
RTK_BT_UUID_SDP
RTK_BT_UUID_UDP
RTK_BT_UUID_RFCOMM
RTK_BT_UUID_TCP
RTK_BT_UUID_TCSBIN
RTK_BT_UUID_TCSAT
RTK_BT_UUID_ATT
RTK_BT_UUID_OBEX
RTK_BT_UUID_IP
RTK_BT_UUID_FTP
RTK_BT_UUID_HTTP
RTK_BT_UUID_WSP
RTK_BT_UUID_BNEP
RTK_BT_UUID_UPNP
RTK_BT_UUID_HIDP
RTK_BT_UUID_HC_CONTROL
RTK_BT_UUID_HC_DATA
RTK_BT_UUID_HC_NOTIFICATION
RTK_BT_UUID_AVCTP
RTK_BT_UUID_AVDTP
RTK_BT_UUID_CMTP
RTK_BT_UUID_HDP_CTRL_CHANNEL
RTK_BT_UUID_HDP_DATA_CHANNEL
RTK_BT_UUID_RDTP
RTK_BT_UUID_L2CAP
RTK_BT_UUID_SERVICE_DISCOVERY_SERVER
RTK_BT_UUID_BROWSE_GROUP_DESCRIPTOR
RTK_BT_UUID_PUBLIC_BROWSE_GROUP
RTK_BT_UUID_SERIAL_PORT
RTK_BT_UUID_LAN_ACCESS
RTK_BT_UUID_DIAL_UP_NETWORKING
RTK_BT_UUID_IRMC_SYNC
RTK_BT_UUID_OBEX_OBJECT_PUSH
RTK_BT_UUID_OBEX_FILE_TRANSFER
RTK_BT_UUID_IRM_SYNC_COMMAND
RTK_BT_UUID_HEADSET
RTK_BT_UUID_HEADSET_HS
RTK_BT_UUID_CORDLESS_TELEPHONY
RTK_BT_UUID_AUDIO_SOURCE
RTK_BT_UUID_AUDIO_SINK
RTK_BT_UUID_AV_REMOTE_CONTROL_TARGET
RTK_BT_UUID_ADVANCED_AUDIO_DISTRIBUTION
RTK_BT_UUID_AV_REMOTE_CONTROL
RTK_BT_UUID_AV_REMOTE_CONTROL_CONTROLLER
RTK_BT_UUID_INTERCOM
RTK_BT_UUID_FAX
RTK_BT_UUID_HEADSET_AUDIO_GATEWAY
RTK_BT_UUID_WAP
RTK_BT_UUID_WAP_CLIENT
RTK_BT_UUID_PANU
RTK_BT_UUID_NAP
RTK_BT_UUID_GN
RTK_BT_UUID_DIRECT_PRINTING
RTK_BT_UUID_REFERENCE_PRINTING
RTK_BT_UUID_IMAGING
RTK_BT_UUID_IMAGING_RESPONDER
RTK_BT_UUID_IMAGING_AUTOMATIC_ARCHIVE
RTK_BT_UUID_REFERENCED_OBJECTS
RTK_BT_UUID_HANDSFREE
RTK_BT_UUID_HANDSFREE_AUDIO_GATEWAY
RTK_BT_UUID_DIRECT_PRINTING_REF_OBJECTS
RTK_BT_UUID_REFLECTED_UI
RTK_BT_UUID_BASIC_PRINTING
RTK_BT_UUID_PRINTING_STATUS
RTK_BT_UUID_HUMAN_INTERFACE_DEVICE_SERVICE
RTK_BT_UUID_HARDCOPY_CABLE_REPLACEMENT
RTK_BT_UUID_HCR_PRINT
RTK_BT_UUID_HCR_SCAN
RTK_BT_UUID_COMMON_ISDN_ACCESS
RTK_BT_UUID_VIDEO_CONFERENCING_GW
RTK_BT_UUID_SIM
RTK_BT_UUID_PBAP_PCE
RTK_BT_UUID_PBAP_PSE
RTK_BT_UUID_PBAP
RTK_BT_UUID_MSG_ACCESS_SERVER
RTK_BT_UUID_MSG_NOTIFICATION_SERVER
RTK_BT_UUID_MSG_ACCESS_PROFILE
RTK_BT_UUID_PNP_INFORMATION
RTK_BT_UUID_GENERIC_NETWORKING
RTK_BT_UUID_GENERIC_FILE_TRANSFER
RTK_BT_UUID_GENERIC_AUDIO
RTK_BT_UUID_GENERIC_TELEPHONY
RTK_BT_UUID_HDP_PROFILE
RTK_BT_UUID_HDP_PROFILE_SOURCE
RTK_BT_UUID_HDP_PROFILE_SINK
RTK_BT_UUID_GAP
RTK_BT_UUID_GATT
RTK_BT_PSM_SDP
RTK_BT_PSM_RFCOMM
RTK_BT_PSM_HID_CONTROL
RTK_BT_PSM_HID_INTERRUPT
RTK_BT_PSM_AVCTP
RTK_BT_PSM_AVDTP
RTK_BT_PSM_AVCTP_BROWSING
RTK_BT_PSM_ATT
RTK_BT_PSM_RDTP
RTK_BT_PSM_EATT

BT GAP Constants

RTK_BT_GAP_ECFC_CHANN_MAX_NUM

The maximum number of channels created at one time.

RTK_BT_GAP_ECFC_MIN_MTU

Minimum length of MTU.

RTK_BT_GAP_ECFC_MIN_MPS

Minimum length of MPS.

BT GATTC Constants

RTK_BT_GATTC_ATTACH_ID(_profile_id, _conn_handle)
RTK_BT_GET_PROFILE_ID(_val)
RTK_BT_GET_CONN_HANDLE(_val)

BT GATTS Constants

RTK_BT_GATT_INTERNAL

The attribute value is defined as a static(or global) variable in user APP, and the variable's pointer will be passed into lower stack. If this attribute is read by remote, lower stack will auto send this attribute value to response to read request, if this attribute is write by remote, lower stack will auto write the attribute value into this variable and response to write request. User APP layer need not to care it.

RTK_BT_GATT_APP

This attribute will be handled by User APP. ALL read/write to this attribute will be indicated to user app by a callback, and user App need to call rtk_bt_gatts_read_resp or rtk_bt_gatts_write_resp to response to read/write request from remote and modify the attribute value maintained in user APP when recevie write request.

BT HFP Constants

RTK_BT_RFC_HFP_CHANN_NUM
RTK_BT_RFC_HSP_CHANN_NUM
RTK_BT_RFC_HSP_AG_CHANN_NUM
RTK_BT_RFC_HFP_AG_CHANN_NUM
RTK_BT_HFP_MAX_SCO_DATA_LENGTH
RTK_BT_HFP_MAX_PHONE_NUMBER
RTK_BT_HFP_AG_LOCAL_CAPABILITY_3WAY
RTK_BT_HFP_AG_LOCAL_CAPABILITY_EC_NR
RTK_BT_HFP_AG_LOCAL_CAPABILITY_VOICE_RECOGNITION
RTK_BT_HFP_AG_LOCAL_CAPABILITY_INBAND_RINGING
RTK_BT_HFP_AG_LOCAL_CAPABILITY_VOICE_TAG
RTK_BT_HFP_AG_LOCAL_CAPABILITY_REJECT_CALLS
RTK_BT_HFP_AG_LOCAL_CAPABILITY_ENHANCED_CALL_STATUS
RTK_BT_HFP_AG_LOCAL_CAPABILITY_ENHANCED_CALL_CONTROL
RTK_BT_HFP_AG_LOCAL_CAPABILITY_EXTENED_ERROR_RESULT
RTK_BT_HFP_AG_LOCAL_CAPABILITY_CODEC_NEGOTIATION
RTK_BT_HFP_AG_LOCAL_CAPABILITY_HF_INDICATORS
RTK_BT_HFP_AG_LOCAL_CAPABILITY_ESCO_S4_T2_SUPPORTED
RTK_BT_HFP_AG_CODEC_TYPE_CVSD
RTK_BT_HFP_AG_CODEC_TYPE_MSBC
RTK_BT_HFP_HF_LOCAL_EC_NR_FUNCTION
RTK_BT_HFP_HF_LOCAL_THREE_WAY_CALLING
RTK_BT_HFP_HF_LOCAL_CLI_PRESENTATION_CAPABILITY
RTK_BT_HFP_HF_LOCAL_VOICE_RECOGNITION_ACTIVATION
RTK_BT_HFP_HF_LOCAL_REMOTE_VOLUME_CONTROL
RTK_BT_HFP_HF_LOCAL_ENHANCED_CALL_STATUS
RTK_BT_HFP_HF_LOCAL_ENHANCED_CALL_CONTROL
RTK_BT_HFP_HF_LOCAL_CODEC_NEGOTIATION
RTK_BT_HFP_HF_LOCAL_HF_INDICATORS
RTK_BT_HFP_HF_LOCAL_ESCO_S4_SETTINGS
RTK_BT_HFP_HF_CODEC_TYPE_CVSD
RTK_BT_HFP_HF_CODEC_TYPE_MSBC
RTK_BT_HFP_DEMO_DEFAULT_BATTERY_POWER_LEVEL
RTK_BT_DEFAULT_SPEAKER_GAIN
RTK_BT_DEFAULT_MICROPHONE_GAIN

BT HID Constants

RTK_BT_HID_MAX_DESCRIPTOR_LENGTH
RTK_BT_HID_MAX_INPUT_DATA_LENGTH

BT LE Audio Constants

BT BAP Constants

RTK_BT_LE_LC3_CODEC_ID
RTK_BT_LE_AUDIO_CODEC_ID_LEN
RTK_BT_LE_AUDIO_CHANNEL_COUNTS_1
RTK_BT_LE_AUDIO_CHANNEL_COUNTS_2
RTK_BT_LE_SAMPLING_FREQUENCY_8K
RTK_BT_LE_SAMPLING_FREQUENCY_16K
RTK_BT_LE_SAMPLING_FREQUENCY_24K
RTK_BT_LE_SAMPLING_FREQUENCY_32K
RTK_BT_LE_SAMPLING_FREQUENCY_44_1K
RTK_BT_LE_SAMPLING_FREQUENCY_48K
RTK_BT_LE_FRAME_DURATION_7_5_MS_BIT
RTK_BT_LE_FRAME_DURATION_10_MS_BIT
RTK_BT_LE_FRAME_DURATION_PREFER_7_5_MS_BIT
RTK_BT_LE_FRAME_DURATION_PREFER_10_MS_BIT
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_8K
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_16K
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_24K
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_32K
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_44_1K
RTK_BT_LE_SAMPLING_FREQUENCY_CFG_48K
RTK_BT_LE_FRAME_DURATION_CFG_7_5_MS
RTK_BT_LE_FRAME_DURATION_CFG_10_MS
RTK_BT_LE_CODEC_CFG_TYPE_SAMPLING_FREQUENCY
RTK_BT_LE_CODEC_CFG_TYPE_FRAME_DURATION
RTK_BT_LE_CODEC_CFG_TYPE_AUDIO_CHANNEL_ALLOCATION
RTK_BT_LE_CODEC_CFG_TYPE_OCTET_PER_CODEC_FRAME
RTK_BT_LE_CODEC_CFG_TYPE_BLOCKS_PER_SDU
RTK_BT_LE_METADATA_TYPE_STREAMING_AUDIO_CONTEXTS
RTK_BT_LE_METADATA_TYPE_PROGRAM_INFO
RTK_BT_LE_METADATA_TYPE_LANGUAGE
RTK_BT_LE_METADATA_TYPE_CCID_LIST
RTK_BT_LE_METADATA_TYPE_PARENTAL_RATING
RTK_BT_LE_METADATA_TYPE_PROGRAM_INFO_URI
RTK_BT_LE_METADATA_TYPE_EXTENDED
RTK_BT_LE_METADATA_TYPE_VENDOR_SPECIFIC
RTK_BT_LE_AUDIO_CONTEXT_PROHIBITED
RTK_BT_LE_AUDIO_CONTEXT_UNSPECIFIED

Unspecified.

RTK_BT_LE_AUDIO_CONTEXT_CONVERSATIONAL

Conversational. Conversation between humans.

RTK_BT_LE_AUDIO_CONTEXT_MEDIA

Media.

RTK_BT_LE_AUDIO_CONTEXT_GAME

Game. Audio associated with video gaming.

RTK_BT_LE_AUDIO_CONTEXT_INSTRUCTIONAL

Instructional. Instructional audio.

RTK_BT_LE_AUDIO_CONTEXT_VOICE_ASSISTANTS

Voice assistants. Man-machine communication.

RTK_BT_LE_AUDIO_CONTEXT_LIVE

Live. Live audio

RTK_BT_LE_AUDIO_CONTEXT_SOUND_EFFECTS

Sound effects. Sound effects including keyboard and touch feedback; menu and user interface sounds; and other system sounds.

RTK_BT_LE_AUDIO_CONTEXT_NOTIFICATIONS

Notifications. Notification and reminder sounds; attention-seeking audio.

RTK_BT_LE_AUDIO_CONTEXT_RINGTONE

Ringtone. Alerts the user to an incoming call.

RTK_BT_LE_AUDIO_CONTEXT_ALERTS

Alerts. Alarms and timers; immediate alerts.

RTK_BT_LE_AUDIO_CONTEXT_EMERGENCY_ALERT

Emergency alarm. Emergency alarm Emergency sounds.

RTK_BT_LE_AUDIO_CONTEXT_MASK
RTK_BT_LE_ADV_TARGETED_ANNOUNCEMENT
RTK_BT_LE_ADV_GENERAL_ANNOUNCEMENT
RTK_BT_LE_METADATA_TYPE_PREFERRED_AUDIO_CONTEXTS
RTK_BT_LE_CODEC_CAP_TYPE_SUPPORTED_SAMPLING_FREQUENCIES
RTK_BT_LE_CODEC_CAP_TYPE_SUPPORTED_FRAME_DURATIONS
RTK_BT_LE_CODEC_CAP_TYPE_AUDIO_CHANNEL_COUNTS
RTK_BT_LE_CODEC_CAP_TYPE_SUPPORTED_OCTETS_PER_CODEC_FRAME
RTK_BT_LE_CODEC_CAP_TYPE_MAX_SUPPORTED_FRAMES_PER_SDU
RTK_BT_LE_GATT_UUID_AICS

Audio Input Control Service

RTK_BT_LE_GATT_UUID_VCS

Volume Control Service

RTK_BT_LE_GATT_UUID_VOCS

Volume Offset Control Service

RTK_BT_LE_GATT_UUID_CSIS

Coordinated Set Identification Service

RTK_BT_LE_GATT_UUID_MICS

Microphone Input Control Service

RTK_BT_LE_GATT_UUID_ASCS

Audio Stream Control Service

RTK_BT_LE_GATT_UUID_BASS

Broadcast Audio Scan Service

RTK_BT_LE_BASIC_AUDIO_ANNOUNCEMENT_SRV_UUID

Basic Audio Announcement Service

RTK_BT_LE_BROADCAST_AUDIO_ANNOUNCEMENT_SRV_UUID

Broadcast Audio Announcement Service

RTK_BT_LE_GATT_UUID_CAS

Common Audio Service

RTK_BT_LE_GATT_UUID_TMAS

Telephony and Media Audio Service

RTK_BT_LE_PUBIC_BROADCAST_ANNOUNCEMENT_SRV_UUID

Public Broadcast Announcement Service

RTK_BT_LE_GATT_UUID_GMAS

Gaming Audio Service

RTK_BT_LE_AUDIO_PUBIC_BROADCAST_BIT_ENCRYPTED
RTK_BT_LE_AUDIO_PUBIC_BROADCAST_BIT_STANDARD_QUALITY_PRESENT
RTK_BT_LE_AUDIO_PUBIC_BROADCAST_BIT_HIGH_QUALITY_PRESENT
RTK_BT_LE_AUDIO_PUBIC_BROADCAST_BIT_MASK
RTK_BT_LE_CODEC_CFG_SAMPLING_FREQUENCY_EXIST
RTK_BT_LE_CODEC_CFG_FRAME_DURATION_EXIST
RTK_BT_LE_CODEC_CFG_AUDIO_CHANNEL_ALLOCATION_EXIST
RTK_BT_LE_CODEC_CFG_OCTET_PER_CODEC_FRAME_EXIST
RTK_BT_LE_CODEC_CFG_TYPE_BLOCKS_PER_SDU_EXIST
RTK_BT_LE_AUDIO_BROADCAST_ID_LEN
RTK_BT_LE_AUDIO_BROADCAST_CODE_LEN
RTK_BT_LE_AUDIO_CIS_MODE
RTK_BT_LE_AUDIO_BIS_MODE
RTK_BT_LE_ASCS_AES_CHAR_NUM

BT CAP Constants

RTK_BT_CAP_ACCEPTOR_ROLE

Acceptor Role.

RTK_BT_CAP_INITIATOR_ROLE

Initiator Role.

RTK_BT_CAP_COMMANDER_ROLE

Commander Role.

RTK_BT_LE_CSIS_SIRK_LEN

BT GMAP Constants

RTK_BT_GATT_UUID_GMAS

Gaming Audio Service.

RTK_BT_GMAS_UUID_CHAR_GMAP_ROLE

GMAP Role.

RTK_BT_GMAS_CHAR_UUID_UGG_FEATURES

UGG Features.

RTK_BT_GMAS_CHAR_UUID_UGT_FEATURES

UGT Features.

RTK_BT_GMAS_CHAR_UUID_BGS_FEATURES

BGS Features.

RTK_BT_GMAS_CHAR_UUID_BGR_FEATURES

BGR Features.

BT Mesh Constants

BT Mesh Datatrans Model Constants

DATA_TRANS_DATA_MAX_LEN

BT Mesh Def Constants

ACCESS_OPCODE_SIZE(opcode)
RTK_BT_MESH_EVT_MEM_OP_MAX_SIZE
COMPANY_ID
PRODUCT_ID
VERSION_ID
BT_MESH_CONFIG_NET_TRANS_COUNTS
BT_MESH_CONFIG_NET_TRANS_STEPS
BT_MESH_CONFIG_RELAY_IS_ENABL
BT_MESH_CONFIG_RELAY_RETRANS_COUNTS
BT_MESH_CONFIG_RELAY_RETRANS_STEPS
BT_MESH_CONFIG_TRANS_RETRANS_COUNTS
BT_MESH_CONFIG_MSG_TTL
BT_MESH_ENABLE_DIRECTED_FORWARDING
BT_MESH_ENABLE_SUBNET_BRIDGE
BT_MESH_ENABLE_PRIVATE_BEACON
BT_MESH_ENABLE_EPA_PROVISION
BT_MESH_CONFIG_DF_ACCESS_NET_TRANS_COUNTS
BT_MESH_CONFIG_DF_ACCESS_NET_TRANS_STEPS
BT_MESH_CONFIG_DF_ACCESS_RELAY_RETRANS_COUNTS
BT_MESH_CONFIG_DF_ACCESS_RELAY_RETRANS_STEPS
BT_MESH_CONFIG_DF_CTL_NET_TRANS_COUNTS
BT_MESH_CONFIG_DF_CTL_NET_TRANS_STEPS
BT_MESH_CONFIG_DF_CTL_RELAY_RETRANS_COUNTS
BT_MESH_CONFIG_DF_CTL_RELAY_RETRANS_STEPS
BT_MESH_ENABLE_DATATRANS_MODEL
PROV_SUPPORT_STATIC_OOB
PROV_SUPPORT_OOB_AUTH_ONLY
PROV_SUPPORT_OUTPUT_OOB_ACTION
PROV_SUPPORT_OUTPUT_OOB_SIZE
PROV_SUPPORT_INPUT_OOB_ACTION
PROV_SUPPORT_INPUT_OOB_SIZE
STATIC_OOB_VALUE_FOR_AUTHENTICATION

BT Mesh Device Firmware Update Model Constants

BT_MESH_DFU_FWID_MAX_LEN
BT_MESH_DFU_METADATA_MAX_LEN

BT Mesh Directed Forwarding Model Constants

DF_NETWORK_TRANSMIT_SETTING
DF_RELAY_TRANSMIT_SETTING
DF_CTL_NETWORK_TRANSMIT_SETTING
DF_CTL_RELAY_TRANSMIT_SETTING
DF_TIMING_CTL_SETTING
DF_RSSI_SETTING
DF_DIRECTED_PATHS_SETTING
DF_DEPENDENT_ADDR_SIZE_SETTING
DF_FIXED_PATH_SIZE_SETTING
DF_NON_FIXED_PATH_SIZE_SETTING
RTK_BT_MESH_FORWARDING_TABLE_FILTER_MASK_FIXED_PATHS
RTK_BT_MESH_FORWARDING_TABLE_FILTER_MASK_NON_FIXED_PATHS
RTK_BT_MESH_FORWARDING_TABLE_FILTER_MASK_PATH_ORIGIN_MATCH
RTK_BT_MESH_FORWARDING_TABLE_FILTER_MASK_DST_MATCH
RTK_BT_MESH_FORWARDING_TABLE_DEPENDENTS_LIST_MASK_PATH_ORIGIN
RTK_BT_MESH_FORWARDING_TABLE_DEPENDENTS_LIST_MASK_PATH_TARGET

BT Mesh Generic Model Constants

GENERIC_PROPERTY_DATA_MAX_LEN

BT Mesh Health Model Constants

HEALTH_FAULT_ARRAY_LEN

BT Mesh Light Model Constants

LIGHT_LC_PROPERTY_DATA_MAX_LEN

BT Mesh Scene Model Constants

SCENE_REGISTER_ARRAY_DATA_MAX_LEN
SCENE_DATA_MAX_LEN

BT Mesh Sensor Model Constants

SENSOR_TRIGGER_DATA_MAX_LEN
SENSOR_CADENCE_DATA_MAX_LEN
SENSOR_SETTING_DATA_MAX_LEN
SENSOR_SETTINGS_DATA_MAX_LEN
SENSOR_COLUMN_DATA_MAX_LEN
SENSOR_GET_DATA_MAX_LEN
SENSOR_GET_COLUMN_MAX_LEN
SENSOR_GET_SERIES_MAX_LEN

BT PBAP Constants

RTK_BT_PBAP_PROPERTY_VERSION

RTK_BT_PBAP_PROPERTY_MASK BT PBAP Property Mask vCard Version

RTK_BT_PBAP_PROPERTY_FN

Formatted Name

RTK_BT_PBAP_PROPERTY_N

Structured Presentation of Name

RTK_BT_PBAP_PROPERTY_PHOTO

Associated Image or Photo

RTK_BT_PBAP_PROPERTY_BDAY

Birthday

RTK_BT_PBAP_PROPERTY_ADR

Delivery Address

RTK_BT_PBAP_PROPERTY_LABEL

Delivery

RTK_BT_PBAP_PROPERTY_TEL

Telephone Number

RTK_BT_PBAP_PROPERTY_EMAIL

Electronic Mail Address

RTK_BT_PBAP_PROPERTY_MAILER

Electronic Mail

RTK_BT_PBAP_PROPERTY_TZ

Time Zone

RTK_BT_PBAP_PROPERTY_GEO

Geographic Position

RTK_BT_PBAP_PROPERTY_TITLE

Job

RTK_BT_PBAP_PROPERTY_ROLE

Role within the Organization

Organization Logo

RTK_BT_PBAP_PROPERTY_AGENT

vCard of Person Representing

RTK_BT_PBAP_PROPERTY_ORG

Name of Organization

RTK_BT_PBAP_PROPERTY_NOTE

Comments

RTK_BT_PBAP_PROPERTY_REV

Revision

RTK_BT_PBAP_PROPERTY_SOUND

Pronunciation of Name

RTK_BT_PBAP_PROPERTY_URL

Uniform Resource Locator

RTK_BT_PBAP_PROPERTY_UID

Unique ID

RTK_BT_PBAP_PROPERTY_KEY

Public Encryption Key

RTK_BT_PBAP_PROPERTY_NICKNAME

Nickname

RTK_BT_PBAP_PROPERTY_CATEGORIES

Categories

RTK_BT_PBAP_PROPERTY_PROID

Product ID

RTK_BT_PBAP_PROPERTY_CLASS

Class information

RTK_BT_PBAP_PROPERTY_SORTSTRING

String used for sorting operations

RTK_BT_PBAP_PROPERTY_DATETIME

Time stamp

BT RFC Constants

RTK_BT_RFC_DEMO_DEFAULT_MTU_SIZE
RTK_BT_RFC_DEMO_DEFAULT_CREDITS

BT SDP Constants

RTK_BT_SDK_MAX_RECORD_LENGTH
RTK_BT_SDP_UUID16_HDR

00011 001 type:3 UUID; size: 2 bytes

RTK_BT_SDP_UUID32_HDR

00011 010 type:3 UUID; size: 4 bytes

RTK_BT_SDP_UUID128_HDR

00011 010 type:3 UUID; size: 16 bytes

RTK_BT_SDP_DATA_ELEM_SEQ_HDR

00110 101 type:6 size:5(next byte)

RTK_BT_SDP_DATA_ELEM_SEQ_HDR_2BYTE

00110 110 type:6 size:6(next two bytes)

RTK_BT_SDP_STRING_HDR
RTK_BT_SDP_UNSIGNED_ONE_BYTE
RTK_BT_SDP_UNSIGNED_TWO_BYTE
RTK_BT_SDP_UNSIGNED_FOUR_BYTE
RTK_BT_SDP_BOOL_ONE_BYTE
RTK_BT_SDP_ATTR_SRV_RECORD_HANDLE
RTK_BT_SDP_ATTR_SRV_CLASS_ID_LIST
RTK_BT_SDP_ATTR_SRV_RECORD_STATE
RTK_BT_SDP_ATTR_SRV_ID
RTK_BT_SDP_ATTR_PROTO_DESC_LIST
RTK_BT_SDP_ATTR_BROWSE_GROUP_LIST
RTK_BT_SDP_ATTR_LANG_BASE_ATTR_ID_LIST
RTK_BT_SDP_ATTR_SRV_INFO_TIME_TO_LIVE
RTK_BT_SDP_ATTR_SRV_AVAILABILITY
RTK_BT_SDP_ATTR_PROFILE_DESC_LIST
RTK_BT_SDP_ATTR_DOC_URL
RTK_BT_SDP_ATTR_CLIENT_EXEC_URL
RTK_BT_SDP_ATTR_ICON_URL
RTK_BT_SDP_ATTR_ADD_PROTO_DESC_LIST
RTK_BT_SDP_ATTR_SRV_NAME

these attrib values are base values

RTK_BT_SDP_ATTR_SRV_DESC

these attrib values are base values

RTK_BT_SDP_ATTR_PROVIDER_NAME

these attrib values are base values

RTK_BT_SDP_ATTR_VER_NUMBER_LIST
RTK_BT_SDP_ATTR_GROUP_ID
RTK_BT_SDP_ATTR_IP_SUBNET
RTK_BT_SDP_ATTR_SRV_DB_STATE
RTK_BT_SDP_BASE_LANG_OFFSET

offset to base language

RTK_BT_SDP_LANG_ENGLISH

this is "en", according to ISO 639:1988

RTK_BT_SDP_LANG_GERMAN

this is "de", according to ISO 639:1988

RTK_BT_SDP_CHARACTER_UTF8

UTF8 encoding, cf. http://www.isi.edu/in-notes/iana/assignments/character-sets

RTK_BT_SDP_ATTR_L2C_PSM
RTK_BT_SDP_ATTR_SRV_VER
RTK_BT_SDP_ATTR_EXT_NETWORK
RTK_BT_SDP_ATTR_FAX_CLASS1_SUPPORT
RTK_BT_SDP_ATTR_RMT_AUDIO_VOL_CTRL
RTK_BT_SDP_ATTR_FAX_CLASS20_SUPPORT
RTK_BT_SDP_ATTR_SUPPORTED_FORMATS_LIST
RTK_BT_SDP_ATTR_FAX_CLASS2_SUPPORT
RTK_BT_SDP_ATTR_AUDIO_FEEDBACK_SUPPORT
RTK_BT_SDP_ATTR_NETWORK_ADDR
RTK_BT_SDP_ATTR_WAP_GATEWAY
RTK_BT_SDP_ATTR_HOME_PAGE_URL
RTK_BT_SDP_ATTR_WAP_STACK_TYPE
RTK_BT_SDP_ATTR_SECURITY_DESC
RTK_BT_SDP_ATTR_NET_ACCESS_TYPE
RTK_BT_SDP_ATTR_MAX_NET_ACCESS_RATE
RTK_BT_SDP_ATTR_SUPPORTED_CAPABILITIES
RTK_BT_SDP_ATTR_SUPPORTED_FEATURES
RTK_BT_SDP_ATTR_SUPPORTED_FUNCTIONS
RTK_BT_SDP_ATTR_TOTAL_IMAGING_CAPACITY
RTK_BT_SDP_ATTR_SUPPORTED_REPOSITORIES
RTK_BT_SDP_ATTR_MAS_INSTANCE_ID
RTK_BT_SDP_ATTR_SUPPORTED_MSG_TYPES
RTK_BT_SDP_ATTR_MAP_SUPPERTED_FEATS
RTK_BT_SDP_ATTR_HID_DEV_RELEASE_NUM
RTK_BT_SDP_ATTR_HID_PARSER_VER
RTK_BT_SDP_ATTR_HID_DEV_SUB_CLASS
RTK_BT_SDP_ATTR_HID_COUNTRY_CODE
RTK_BT_SDP_ATTR_HID_VIRTUAL_CABLE
RTK_BT_SDP_ATTR_HID_RECONN_INIT
RTK_BT_SDP_ATTR_HID_DESC_LIST
RTK_BT_SDP_ATTR_HID_LANG_ID_BASE_LIST
RTK_BT_SDP_ATTR_HID_SDP_DISABLE
RTK_BT_SDP_ATTR_HID_BATTERY_POWER
RTK_BT_SDP_ATTR_HID_REMOTE_WAKE
RTK_BT_SDP_ATTR_HID_PROFILE_VER
RTK_BT_SDP_ATTR_HID_SUPERVISION_TIMEOUT
RTK_BT_SDP_ATTR_HID_NORMALLY_CONNECTABLE
RTK_BT_SDP_ATTR_HID_BOOT_DEV
RTK_BT_SDP_ATTR_PBAP_SUPPORTED_FEAT
RTK_BT_SDP_ATTR_DIP_SPECIFICATION_ID
RTK_BT_SDP_ATTR_DIP_VENDOR_ID
RTK_BT_SDP_ATTR_DIP_PRODUCT_ID
RTK_BT_SDP_ATTR_DIP_PRODUCT_VERSION
RTK_BT_SDP_ATTR_DIP_PRIMARY_RECORD
RTK_BT_SDP_ATTR_DIP_VENDOR_ID_SOURCE

BT SPP Constants

Define SPP channel dababase default link number.

备注

SPP max channel link number must not exceed this value

RTK_BT_SPP_MAX_DATA_IND_LENGTH

Define rtk_bt_spp_data_ind_t struct data buffer maximum length.

RTK_BT_SPP_MAX_SRV_CLASS_UUID_LENGTH

Define SPP max service class uuid length.

BT Types

BT A2DP Types

enum rtk_bt_a2dp_role_t

a2dp role

Values:

enumerator RTK_BT_A2DP_ROLE_SRC

BT A2DP SINK

enumerator RTK_BT_A2DP_ROLE_SNK

BT A2DP SOURCE

struct rtk_bt_a2dp_media_codec_sbc_t
#include <rtk_bt_a2dp.h>

a2dp codec sbc configuration data structure.

a2dp codec aac configuration data structure.

Public Members

uint8_t sampling_frequency_mask

sample frequency

uint8_t channel_mode_mask

channel mode

uint8_t block_length_mask

block length

uint8_t subbands_mask

subbands number

uint8_t allocation_method_mask

allocation method

uint8_t min_bitpool

min bitpool

uint8_t max_bitpool

max bitpool

struct rtk_bt_a2dp_media_codec_aac_t
#include <rtk_bt_a2dp.h>

Public Members

uint8_t object_type_mask

object type

uint16_t sampling_frequency_mask

sample frequency

uint8_t channel_number_mask

channel number

bool vbr_supported

vbr

uint32_t bit_rate

bit rate

struct rtk_bt_a2dp_conn_ind_t
#include <rtk_bt_a2dp.h>

a2dp connection connection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_a2dp_disconn_ind_t
#include <rtk_bt_a2dp.h>

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_a2dp_stream_open_t
#include <rtk_bt_a2dp.h>

a2dp stream open event.

Public Members

uint8_t bd_addr[6]

address

uint16_t max_pkt_len

max packet length

struct rtk_bt_a2dp_codec_param_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP stream data indication.

Public Members

uint8_t codec_type

codec type

uint32_t length

codec param data length

uint8_t data[RTK_BT_A2DP_MAX_CODEC_PARAM_LENGTH]

codec data

struct rtk_bt_a2dp_stream_start_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP stream start indication.

Public Members

stream index

uint8_t stream_cfg

stream cfg

struct rtk_bt_a2dp_stream_data_send_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP stream start indication.

Public Members

uint8_t bd_addr[6]

address

uint16_t seq_num

The sequence number of the stream data

uint32_t time_stamp

The sampling instant of the first octet which determined from the sampling clock is to be used.

uint8_t frame_num

frame number

uint8_t *frame_buf

frame buffer

uint16_t len

data length

bool flush

Auto flush option for current stream data

struct rtk_bt_a2dp_stream_data_ind_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP stream start indication.

Public Members

uint16_t seq_num

Media packet sequence number

uint32_t length

stream data length

uint8_t data[RTK_BT_A2DP_MAX_STREAM_DATA_LENGTH]

stream data

struct rtk_bt_a2dp_stream_data_rsp_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP stream data rsp indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_a2dp_sdp_attr_info_t
#include <rtk_bt_a2dp.h>

Bluetooth A2DP sdp attr information struct.

Public Members

uint8_t bd_addr[6]

address

br_gap_uuid_type_t srv_class_uuid_type

Service class UUID type

br_gap_uuid_data_t srv_class_uuid_data

Service class UUID data

uint16_t profile_version

Remote profile version

uint16_t protocol_version

Remote protocol version

uint8_t server_channel

Server channel number

uint16_t supported_feat

Supported features

uint16_t l2c_psm

L2CAP PSM value

uint8_t supported_repos

Supported repositories

uint32_t pbap_supported_feat

PBAP supported features

BT AVRCP Types

enum rtk_bt_avrcp_play_status_t

avrcp play status

Values:

enumerator RTK_BT_AVRCP_STATUS_STOPPED

stop

enumerator RTK_BT_AVRCP_STATUS_PLAYING

play

enumerator RTK_BT_AVRCP_STATUS_PAUSED

pause

enumerator RTK_BT_AVRCP_STATUS_FWD_SEEK

forward seek

enumerator RTK_BT_AVRCP_STATUS_REV_SEEK

rewind seek

enumerator RTK_BT_AVRCP_STATUS_FAST_FWD

fast forward

enumerator RTK_BT_AVRCP_STATUS_REWIND

rewind

enumerator RTK_BT_AVRCP_STATUS_ERROR

error

enum rtk_bt_avrcp_element_attr_t

element attr information

Values:

enumerator RTK_BT_AVRCP_ELEM_ATTR_TITLE
enumerator RTK_BT_AVRCP_ELEM_ATTR_ARTIST
enumerator RTK_BT_AVRCP_ELEM_ATTR_ALBUM
enumerator RTK_BT_AVRCP_ELEM_ATTR_TRACK
enumerator RTK_BT_AVRCP_ELEM_ATTR_TOTAL_TRACK
enumerator RTK_BT_AVRCP_ELEM_ATTR_GENRE
enumerator RTK_BT_AVRCP_ELEM_ATTR_PLAYING_TIME
enumerator RTK_BT_AVRCP_ELEM_ATTR_DEFAULT_COVER_ART
enum rtk_bt_avrcp_player_app_setting_attr_t

player application setting attribute id

Values:

enumerator RTK_BT_PLAYER_EQ
enumerator RTK_BT_PLAYER_REPEAT_MODE
enumerator RTK_BT_PLAYER_SHUFFLE
enumerator RTK_BT_PLAYER_SCAN
enum rtk_bt_avrcp_player_eq_t

Equalizer setting index.

Values:

enumerator RTK_BT_PLAYER_EQ_OFF
enumerator RTK_BT_PLAYER_EQ_ON
enum rtk_bt_avrcp_player_repeat_mode_t

repeat mode setting index

Values:

enumerator RTK_BT_PLAYER_REPEAT_MODE_OFF
enumerator RTK_BT_PLAYER_SINGLE_TRACK_REPEAT
enumerator RTK_BT_PLAYER_ALL_TRACK_REPEAT
enumerator RTK_BT_PLAYER_GROUP_REPEAT
enum rtk_bt_avrcp_player_shuffle_mode_t

shuffle setting index

Values:

enumerator RTK_BT_PLAYER_SHUFFLE_OFF
enumerator RTK_BT_PLAYER_ALL_TRACK_SHUFFLE
enumerator RTK_BT_PLAYER_GROUP_SHUFFLE
enum rtk_bt_avrcp_player_scan_t

scan setting index

Values:

enumerator RTK_BT_PLAYER_SCAN_OFF
enumerator RTK_BT_PLAYER_ALL_TRACK_SCAN
enumerator RTK_BT_PLAYER_GROUP_SCAN
struct rtk_bt_avrcp_play_status_change_req_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP change play status request struct.

Public Members

uint8_t bd_addr[6]
rtk_bt_avrcp_play_status_t status
struct rtk_bt_avrcp_play_status_change_reg_rsp_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP change play status change register response struct.

Public Members

uint8_t bd_addr[6]
rtk_bt_avrcp_play_status_t status
struct rtk_bt_avrcp_app_setting_values_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP application setting values struct.

Public Members

uint8_t bd_addr[6]
uint8_t attr_id
struct rtk_bt_avrcp_app_setting_value_get_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP application set value struct.

Public Members

uint8_t bd_addr[6]
uint8_t attr_num
uint8_t *attr_list
struct rtk_bt_avrcp_app_setting_value_set_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP application set value struct.

Public Members

uint8_t bd_addr[6]
uint8_t attr_id
uint8_t setting
struct rtk_bt_avrcp_absolute_volume_set_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP absolute volume set.

Public Members

uint8_t bd_addr[6]
uint8_t volume
struct rtk_bt_avrcp_volume_change_req_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP volume change request.

Public Members

uint8_t bd_addr[6]
uint8_t volume
struct rtk_bt_avrcp_get_element_attr_req_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP get element attr request.

Public Members

uint8_t bd_addr[6]
uint8_t num
uint8_t *p_attr
struct rtk_bt_avrcp_element_attr
#include <rtk_bt_avrcp.h>

Public Members

uint32_t attribute_id
uint16_t character_set_id
uint16_t length
uint8_t *p_buf
struct rtk_bt_avrcp_element_attr_info_t
#include <rtk_bt_avrcp.h>

Public Members

uint8_t bd_addr[6]
uint8_t state
uint8_t num_of_attr
rtk_bt_avrcp_element_attr *attr
struct rtk_bt_avrcp_app_setting_attrs_list_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP app setting attributes list.

Public Members

uint8_t bd_addr[6]
uint8_t state
uint8_t num_of_attr
uint8_t *p_attr_id
struct rtk_bt_avrcp_app_setting_values_list_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP app setting values list.

Public Members

uint8_t bd_addr[6]
uint8_t state
uint8_t num_of_value
uint8_t *p_value
struct rtk_bt_avrcp_app_setting_t
#include <rtk_bt_avrcp.h>

Public Members

uint8_t attr
uint8_t value
struct rtk_bt_avrcp_app_setting_get_rsp_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP app setting get response.

Public Members

uint8_t bd_addr[6]
uint8_t state
uint8_t num_of_attr
rtk_bt_avrcp_app_setting_t *p_app_setting
struct rtk_bt_avrcp_cover_art_data_ind_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP cover art data indication.

Public Members

uint8_t bd_addr[6]
uint8_t *p_data
uint16_t data_len
bool data_end
struct rtk_bt_avrcp_volume_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP volume status.

Public Members

uint8_t volume

indicate play volume

struct rtk_bt_avrcp_sub_event_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP play status.

Public Members

uint8_t avrcp_play_status

indicate play status

struct rtk_bt_avrcp_track_changed_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP track changed.

Public Members

uint8_t bd_addr[6]

address

uint64_t track_id

play track id

struct rtk_bt_avrcp_digital_interface_command_t
#include <rtk_bt_avrcp.h>

Bluetooth AVRCP passthrough command.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_avrcp_conn_ind_t
#include <rtk_bt_avrcp.h>

avrcp connection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_avrcp_conn_cmpl_t
#include <rtk_bt_avrcp.h>

avrcp connection completion indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_avrcp_disconn_cmpl_t
#include <rtk_bt_avrcp.h>

avrcp disconnection completion indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_avrcp_get_play_status_rsp_t
#include <rtk_bt_avrcp.h>

avrcp play status response struct.

Public Members

uint8_t bd_addr[6]
uint8_t state
uint8_t play_status

rtk_bt_avrcp_play_status_t

uint32_t length_ms
uint32_t position_ms

BT BR GAP Types

enum rtk_bt_br_page_scan_t

Values:

enumerator RTK_BT_BR_GAP_PAGE_SCAN_TYPE_STANDARD

BR/EDR page scan type standard.

enumerator RTK_BT_BR_GAP_PAGE_SCAN_TYPE_INTERLACED

BR/EDR page scan type interlaced.

enum rtk_bt_br_inquiry_mode_t

Values:

enumerator RTK_BT_BR_GAP_INQUIRY_MODE_STANDARD_RESULT

Inquiry reusult standard format.

enumerator RTK_BT_BR_GAP_INQUIRY_MODE_RESULT_WITH_RSSI

Inquiry result format with RSSI.

enumerator RTK_BT_BR_GAP_INQUIRY_MODE_EXTENDED_RESULT

Inquiry result with RSSI format or Extended inquiry result format.

enum rtk_bt_br_io_cap_t

Bluetooth BREDR SM IO capability type definition.

rtk_bt_br_io_cap_t

Values:

enumerator RTK_BR_IO_CAP_DISPALY_ONLY

0x00 DisplayOnly

enumerator RTK_BR_IO_CAP_DISPLAY_YES_NO

0x01 DisplayYesNo

enumerator RTK_BR_IO_CAP_KEYBOARD_ONLY

0x02 KeyboardOnly

enumerator RTK_BR_IO_CAP_NO_IN_NO_OUT

0x03 NoInputNoOutput

enumerator RTK_BR_IO_CAP_KEYBOARD_DISPALY

0x04 KeyboardDisplay

enumerator RTK_BR_IO_CAP_MAX

0x05-0xFF Reserved for future use

enum rtk_bt_br_gap_radio_mode_t

Values:

enumerator RTK_BT_BR_GAP_RADIO_MODE_VISIBLE_CONNECTABLE

Enable both inquiry scan and page scan.

enumerator RTK_BT_BR_GAP_RADIO_MODE_VISIBLE

Only enable inquiry scan.

enumerator RTK_BT_BR_GAP_RADIO_MODE_CONNECTABLE

Only enable page scan.

enumerator RTK_BT_BR_GAP_RADIO_MODE_NONE_DISCOVERABLE

Disable both inquiry scan and page scan.

enum rtk_bt_br_qos_type_t

Values:

enumerator RTK_BT_BR_QOS_TYPE_NO_TRAFFIC
enumerator RTK_BT_BR_QOS_TYPE_BEST_EFFORT
enumerator RTK_BT_BR_QOS_TYPE_GUARANTEED
struct rtk_bt_bd_addr_t
#include <rtk_bt_br_gap.h>

Bluetooth device address type definition.

Public Members

uint8_t addr[RTK_BD_ADDR_LEN]
struct T_APP_DB
#include <rtk_bt_br_gap.h>

Public Members

T_APP_BR_LINK br_link[MAX_BR_LINK_NUM]
rtk_bt_bd_addr_t factory_addr

local factory address

struct rtk_bt_br_gap_default_param_t
#include <rtk_bt_br_gap.h>

Public Members

uint16_t mtu_size

MTU size

struct rtk_bt_br_bd_addr_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR device address type definition.

Public Members

uint8_t addr[RTK_BD_ADDR_LEN]

address

struct rtk_bt_br_page_param_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR Page Parameter.

Public Members

uint8_t pagescan_type

page scan type

uint16_t pagescan_interval

page scan interval

uint16_t pagescan_window

page scan window

uint16_t page_timeout

page scan timeout

struct rtk_bt_br_inquiry_param_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR Inquiry Parameter.

Public Members

uint8_t inquiry_mode

inquiry scan mode

uint8_t inquiryscan_type

inquiry scan type

uint16_t inquiryscan_window

inquiry scan window

uint16_t inquiryscan_interval

inquiry scan interval

struct rtk_bt_br_inquiry_start_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR start Inquiry Parameter.

Public Members

bool limited_inquiry

limited inquiry indication

uint8_t timeout

Inquiry duration in 1.28s. The real inquiry time is timeout*1.28s

struct rtk_bt_br_sniff_mode_t
#include <rtk_bt_br_gap.h>

BR/EDR sniff mode parameters.

Public Members

uint8_t enable

0 for disable, 1 for enable

uint8_t bd_addr[6]

address

uint16_t min_interval

Min sniff interval, only even values between 0x0002 and 0xFFFE are valid

uint16_t max_interval

Max sniff interval, only even values between 0x0002 and 0xFFFE are valid, should be larger than min_interval

uint16_t sniff_attempt

Number of baseband receive slots for sniff attempt

uint16_t sniff_timeout

Number of baseband receive slots for sniff timeout

#include <rtk_bt_br_gap.h>

BR/EDR config link qos parameters.

Public Members

address

qos type

the poll interval ranged from 0x06 to 0x1000 in 625us slot unit

struct rtk_bt_br_security_param_t
#include <rtk_bt_br_gap.h>

Bluetooth BREDR SM security parameter type definition.

Public Members

rtk_bt_br_io_cap_t io_cap

IO capabilities

uint8_t oob_data_flag

OOB data flag

uint8_t bond_flag

Bonding flags

uint8_t br_bond_flag

BR general bonding support flag

uint8_t mitm_flag

MITM flag

uint8_t sec_pair_flag

Secure connection pairing support flag

uint8_t br_sec_pair_flag

BR secure connection pairing support flag

struct rtk_bt_br_acl_sniff_t
#include <rtk_bt_br_gap.h>

indicate acl sniff mode.

Public Members

uint8_t bd_addr[6]

address

uint16_t interval

sniff mode interval

struct rtk_bt_br_acl_disc_t
#include <rtk_bt_br_gap.h>

acl disconnection event.

Public Members

uint8_t bd_addr[6]

address

uint16_t cause

disc cause

struct rtk_bt_br_bond_key_t
#include <rtk_bt_br_gap.h>

bond key set.

Public Members

uint8_t bd_addr[6]

address

link key

uint8_t key_type

key_type

struct rtk_bt_br_bond_addr_t
#include <rtk_bt_br_gap.h>

bond address get.

Public Members

uint8_t bd_addr[6]

address

uint8_t priority

priority of bonded device.Bond priority number starts at 1, rather than 0. Bond priority is descending with the corresponding number increasing.

struct rtk_bt_br_bond_index_t
#include <rtk_bt_br_gap.h>

bond index get.

Public Members

uint8_t bd_addr[6]

address

uint8_t index

bond index

struct rtk_bt_br_inquiry_result_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR Inquiry Result.(Copy of T_BT_EVENT_PARAM_INQUIRY_RESULT)

Public Members

uint8_t bd_addr[6]
uint32_t cod
int8_t rssi
uint8_t name[RTK_BT_GAP_DEVICE_NAME_LEN]
uint8_t eir_len
uint8_t *p_eir
struct rtk_bt_br_remote_name_rsp_t
#include <rtk_bt_br_gap.h>

Public Members

uint8_t bd_addr[6]
uint16_t cause
uint8_t name[RTK_BT_GAP_DEVICE_NAME_LEN]
struct rtk_bt_br_acl_conn_fail_t
#include <rtk_bt_br_gap.h>

Bluetooth BR/EDR ACL connection fail event.

Public Members

uint8_t bd_addr[6]
uint16_t cause

BT Common Types

enum rtk_bt_profile_t

Bluetooth LE profile type bit mask.

Values:

enumerator RTK_BT_PROFILE_GATTS
enumerator RTK_BT_PROFILE_GATTC
enumerator RTK_BT_PROFILE_A2DP
enumerator RTK_BT_PROFILE_AVRCP
enumerator RTK_BT_PROFILE_SDP
enumerator RTK_BT_PROFILE_LEAUDIO
enumerator RTK_BT_PROFILE_LE_ISO
enumerator RTK_BT_PROFILE_BAP
enumerator RTK_BT_PROFILE_CAP
enumerator RTK_BT_PROFILE_SPP
enumerator RTK_BT_PROFILE_RFC
enumerator RTK_BT_PROFILE_HFP
enumerator RTK_BT_PROFILE_PBAP
enumerator RTK_BT_PROFILE_MESH
enumerator RTK_BT_PROFILE_HID
enumerator RTK_BT_PROFILE_TMAP
enumerator RTK_BT_PROFILE_GMAP
enum rtk_bt_le_group_t

Bluetooth LE action/event group.

Values:

enumerator RTK_BT_LE_GP_GAP

LE gap group

enumerator RTK_BT_LE_GP_GATTC

LE gatt client group

enumerator RTK_BT_LE_GP_GATTS

LE gatt server group

enumerator RTK_BT_LE_GP_ISO

LE iso group

enumerator RTK_BT_LE_GP_BAP

LE audio bap group

enumerator RTK_BT_LE_GP_CAP

LE audio cap group

enumerator RTK_BT_LE_GP_TMAP

LE audio tmap group

enumerator RTK_BT_LE_GP_GMAP

LE audio gmap group

enumerator RTK_BT_LE_GP_MESH_STACK

LE mesh stack group

enumerator RTK_BT_LE_GP_MESH_CONFIG_CLIENT_MODEL

LE mesh config model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_ONOFF_CLIENT_MODEL

LE mesh generic on off client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_ONOFF_SERVER_MODEL

LE mesh generic on off server model group

enumerator RTK_BT_LE_GP_MESH_DATATRANS_MODEL

LE mesh datatrans model group

enumerator RTK_BT_LE_GP_MESH_REMOTE_PROV_CLIENT_MODEL

LE mesh remote provisioning client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL

LE mesh light lightness client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_CTL_CLIENT_MODEL

LE mesh light ctl client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_HSL_CLIENT_MODEL

LE mesh light hsl client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_XYL_CLIENT_MODEL

LE mesh light xyl client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LC_CLIENT_MODEL

LE mesh light lc client model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LIGHTNESS_SERVER_MODEL

LE mesh light lightness server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LIGHTNESS_SETUP_SERVER_MODEL

LE mesh light lightness setup server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_CTL_SERVER_MODEL

LE mesh light ctl server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_CTL_SETUP_SERVER_MODEL

LE mesh light ctl setup server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_CTL_TEMPERATURE_SERVER_MODEL

LE mesh light ctl temperature server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_HSL_SERVER_MODEL

LE mesh light hsl server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_HSL_HUE_SERVER_MODEL

LE mesh light hsl hue server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_HSL_SATURATION_SERVER_MODEL

LE mesh light hsl hue server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_HSL_SETUP_SERVER_MODEL

LE mesh light hsl hue server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_XYL_SERVER_MODEL

LE mesh light xyl server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_XYL_SETUP_SERVER_MODEL

LE mesh light xyl setup server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LC_SERVER_MODEL

LE mesh light lc server model group

enumerator RTK_BT_LE_GP_MESH_LIGHT_LC_SETUP_SERVER_MODEL

LE mesh light lc setup server model group

enumerator RTK_BT_LE_GP_MESH_TIME_CLIENT_MODEL

LE mesh time client model group

enumerator RTK_BT_LE_GP_MESH_TIME_SERVER_MODEL

LE mesh time server model group

enumerator RTK_BT_LE_GP_MESH_TIME_SETUP_SERVER_MODEL

LE mesh time setup server model group

enumerator RTK_BT_LE_GP_MESH_SCHEDULER_CLIENT_MODEL

LE mesh scheduler client model group

enumerator RTK_BT_LE_GP_MESH_SCHEDULER_SERVER_MODEL

LE mesh scheduler server model group

enumerator RTK_BT_LE_GP_MESH_SCHEDULER_SETUP_SERVER_MODEL

LE mesh scheduler setup server model group

enumerator RTK_BT_LE_GP_MESH_SCENE_CLIENT_MODEL

LE mesh scene client model group

enumerator RTK_BT_LE_GP_MESH_SCENE_SERVER_MODEL

LE mesh scene server model group

enumerator RTK_BT_LE_GP_MESH_SCENE_SETUP_SERVER_MODEL

LE mesh scene setup server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL

LE mesh generic default transition time client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_MODEL

LE mesh generic default transition time server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_LEVEL_CLIENT_MODEL

LE mesh generic level client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_LEVEL_SERVER_MODEL

LE mesh generic level server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_ON_OFF_CLIENT_MODEL

LE mesh generic power on off client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_ON_OFF_SERVER_MODEL

LE mesh generic power on off server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_ON_OFF_SETUP_SERVER_MODEL

LE mesh generic power on off setup server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL

LE mesh generic power level client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL

LE mesh generic power level server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_POWER_LEVEL_SETUP_SERVER_MODEL

LE mesh generic power level setup server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_BATTERY_CLIENT_MODEL

LE mesh generic battery client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_BATTERY_SERVER_MODEL

LE mesh generic battery server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_LOCATION_CLIENT_MODEL

LE mesh generic location client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_LOCATION_SERVER_MODEL

LE mesh generic location server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL

LE mesh generic location setup server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_PROPERTY_CLIENT_MODEL

LE mesh generic property client model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL

LE mesh generic user property server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL

LE mesh generic admin property server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL

LE mesh generic manufacturer property server model group

enumerator RTK_BT_LE_GP_MESH_GENERIC_CLIENT_PROPERTY_SERVER_MODEL

LE mesh generic client property server model group

enumerator RTK_BT_LE_GP_MESH_SENSOR_CLIENT_MODEL

LE mesh sensor client model group

enumerator RTK_BT_LE_GP_MESH_SENSOR_SERVER_MODEL

LE mesh sensor server model group

enumerator RTK_BT_LE_GP_MESH_SENSOR_SETUP_SERVER_MODEL

LE mesh sensor setup server model group

enumerator RTK_BT_LE_GP_MESH_HEALTH_CLIENT_MODEL

LE mesh health client model group

enumerator RTK_BT_LE_GP_MESH_HEALTH_SERVER_MODEL

LE mesh health server model group

enumerator RTK_BT_LE_GP_MESH_DIRECTED_FORWARDING_CLIENT_MODEL

LE mesh directed forwarding client model group

enumerator RTK_BT_LE_GP_MESH_DIRECTED_FORWARDING_COMMON

LE mesh directed forwarding common group

enumerator RTK_BT_LE_GP_MESH_SUBNET_BRIDGE_CLIENT_MODEL

LE mesh subnet bridge client model group

enumerator RTK_BT_LE_GP_MESH_PRIVATE_BEACON_CLIENT_MODEL

LE mesh private beacon client model group

enumerator RTK_BT_LE_GP_MESH_DFU_INITIATOR_MODEL

LE mesh dfu initiator model group

enumerator RTK_BT_LE_GP_MESH_DFU_STANDALONE_UPDATER_MODEL

LE mesh dfu standalone updater model group

enumerator RTK_BT_LE_GP_MESH_DFU_DISTRIBUTOR_MODEL

LE mesh dfu distributor model group

enumerator RTK_BT_LE_GP_MESH_DFU_TARGET_MODEL

LE mesh dfu target model group

enumerator RTK_BT_LE_GP_MAX

Reserved

enum rtk_bt_le_gap_act_t

Bluetooth LE GAP action.

Values:

enumerator RTK_BT_LE_GAP_ACT_GET_VERSION
enumerator RTK_BT_LE_GAP_ACT_GET_DEVICE_ADDR
enumerator RTK_BT_LE_GAP_ACT_SET_DEVICE_NAME
enumerator RTK_BT_LE_GAP_ACT_SET_APPEARANCE
enumerator RTK_BT_LE_GAP_ACT_SET_PREFERRED_CONN_PARAM
enumerator RTK_BT_LE_GAP_ACT_SET_RAND_ADDR
enumerator RTK_BT_LE_GAP_ACT_SET_ADV_DATA
enumerator RTK_BT_LE_GAP_ACT_SET_SCAN_RSP_DATA
enumerator RTK_BT_LE_GAP_ACT_START_ADV
enumerator RTK_BT_LE_GAP_ACT_STOP_ADV
enumerator RTK_BT_LE_GAP_ACT_GET_ADV_PARAM
enumerator RTK_BT_LE_GAP_ACT_SCAN_INFO_FILTER
enumerator RTK_BT_LE_GAP_ACT_SET_SCAN_PARAM
enumerator RTK_BT_LE_GAP_ACT_GET_SCAN_PARAM
enumerator RTK_BT_LE_GAP_ACT_START_SCAN
enumerator RTK_BT_LE_GAP_ACT_STOP_SCAN
enumerator RTK_BT_LE_GAP_ACT_CONN
enumerator RTK_BT_LE_GAP_ACT_CONN_CANCEL
enumerator RTK_BT_LE_GAP_ACT_DISCONN
enumerator RTK_BT_LE_GAP_ACT_DISCONN_WITH_REASON
enumerator RTK_BT_LE_GAP_ACT_UPDATE_CONN_PARAM
enumerator RTK_BT_LE_GAP_ACT_READ_RSSI
enumerator RTK_BT_LE_GAP_ACT_MODIFY_WHITELIST
enumerator RTK_BT_LE_GAP_ACT_GET_CONN_INFO
enumerator RTK_BT_LE_GAP_ACT_GET_DEV_STATE
enumerator RTK_BT_LE_GAP_ACT_GET_ACTIVE_CONN
enumerator RTK_BT_LE_GAP_ACT_GET_CONN_HANDLE_BY_ADDR
enumerator RTK_BT_LE_GAP_ACT_GET_MTU_SIZE
enumerator RTK_BT_LE_GAP_ACT_SET_MAX_MTU_SIZE
enumerator RTK_BT_LE_GAP_ACT_SET_CHANNELS
enumerator RTK_BT_LE_GAP_ACT_SET_DATA_LEN
enumerator RTK_BT_LE_GAP_ACT_SET_PHY
enumerator RTK_BT_LE_GAP_ACT_PRIVACY_INIT
enumerator RTK_BT_LE_GAP_ACT_SET_PRIVACY_MODE
enumerator RTK_BT_LE_GAP_ACT_READ_LOCAL_RESOLV_ADDR
enumerator RTK_BT_LE_GAP_ACT_READ_PEER_RESOLV_ADDR
enumerator RTK_BT_LE_GAP_ACT_SET_PAIRING_MODE
enumerator RTK_BT_LE_GAP_ACT_SET_SEC_PARAM
enumerator RTK_BT_LE_GAP_ACT_GET_SEC_PARAM
enumerator RTK_BT_LE_GAP_ACT_START_SECURITY
enumerator RTK_BT_LE_GAP_ACT_PAIRING_CONFIRM
enumerator RTK_BT_LE_GAP_ACT_PASSKEY_ENTRY
enumerator RTK_BT_LE_GAP_ACT_PASSKEY_CONFIRM
enumerator RTK_BT_LE_GAP_ACT_OOB_KEY_INPUT
enumerator RTK_BT_LE_GAP_ACT_GET_SC_LOCAL_OOB
enumerator RTK_BT_LE_GAP_ACT_INPUT_SC_PEER_OOB
enumerator RTK_BT_LE_GAP_ACT_GET_BOND_NUM
enumerator RTK_BT_LE_GAP_ACT_GET_BOND_INFO
enumerator RTK_BT_LE_GAP_ACT_DELETE_BOND_DEVICE
enumerator RTK_BT_LE_GAP_ACT_CLEAR_BOND_LIST
enumerator RTK_BT_LE_GAP_ACT_SET_EXT_ADV_DATA
enumerator RTK_BT_LE_GAP_ACT_SET_EXT_SCAN_RSP_DATA
enumerator RTK_BT_LE_GAP_ACT_CREATE_EXT_ADV
enumerator RTK_BT_LE_GAP_ACT_START_EXT_ADV
enumerator RTK_BT_LE_GAP_ACT_STOP_EXT_ADV
enumerator RTK_BT_LE_GAP_ACT_REMOVE_EXT_ADV
enumerator RTK_BT_LE_GAP_ACT_GET_EXT_ADV_HANDLE_BY_CONN_HANDLE
enumerator RTK_BT_LE_GAP_ACT_EXT_SCAN_SET_PARAM
enumerator RTK_BT_LE_GAP_ACT_EXT_SCAN_START
enumerator RTK_BT_LE_GAP_ACT_EXT_SCAN_STOP
enumerator RTK_BT_LE_GAP_ACT_EXT_CONN
enumerator RTK_BT_LE_GAP_ACT_START_PA
enumerator RTK_BT_LE_GAP_ACT_STOP_PA
enumerator RTK_BT_LE_GAP_ACT_UPDATE_PA
enumerator RTK_BT_LE_GAP_ACT_PA_SYNC_MODIFY_ADV_LIST
enumerator RTK_BT_LE_GAP_ACT_PA_SYNC_CREATE
enumerator RTK_BT_LE_GAP_ACT_PA_SYNC_TERMINATE
enumerator RTK_BT_LE_GAP_ACT_PAST_TRANSFER
enumerator RTK_BT_LE_GAP_ACT_PAST_RECV_SET
enumerator RTK_BT_LE_GAP_ACT_DEFAULT_PAST_RECV_SET
enumerator RTK_BT_LE_GAP_ACT_GET_TX_PENDING_NUM
enumerator RTK_BT_LE_GAP_ACT_READ_LOCAL_TX_POWER
enumerator RTK_BT_LE_GAP_ACT_READ_REMOTE_TX_POWER
enumerator RTK_BT_LE_GAP_ACT_TX_POWER_REPORT_SET
enumerator RTK_BT_LE_GAP_ACT_GET_CONN_ID
enumerator RTK_BT_LE_GAP_ACT_ADV_STATE
enumerator RTK_BT_LE_GAP_ACT_GET_ANTENNA_INFO
enumerator RTK_BT_LE_GAP_ACT_CONNLESS_CTE_TX_START
enumerator RTK_BT_LE_GAP_ACT_CONNLESS_CTE_TX_STOP
enumerator RTK_BT_LE_GAP_ACT_CONNLESS_CTE_RX_START
enumerator RTK_BT_LE_GAP_ACT_CONNLESS_CTE_RX_STOP
enumerator RTK_BT_LE_GAP_ACT_CONN_CTE_TX_START
enumerator RTK_BT_LE_GAP_ACT_CONN_CTE_TX_STOP
enumerator RTK_BT_LE_GAP_ACT_CONN_CTE_RX_START
enumerator RTK_BT_LE_GAP_ACT_CONN_CTE_RX_STOP
enumerator RTK_BT_LE_GAP_ACT_PAWR_SET_SUBEVENT_DATA
enumerator RTK_BT_LE_GAP_ACT_PAWR_SET_RESPONSE_DATA
enumerator RTK_BT_LE_GAP_ACT_PAWR_SYNC_SUBEVENT
enumerator RTK_BT_LE_GAP_ACT_COC_REG_PSM
enumerator RTK_BT_LE_GAP_ACT_COC_SET_PSM_SECURITY
enumerator RTK_BT_LE_GAP_ACT_COC_SET_PARAM
enumerator RTK_BT_LE_GAP_ACT_COC_GET_CHAN_PARAM
enumerator RTK_BT_LE_GAP_ACT_COC_CONN
enumerator RTK_BT_LE_GAP_ACT_COC_DISCONN
enumerator RTK_BT_LE_GAP_ACT_COC_SEND_DATA
enumerator RTK_BT_LE_GAP_ACT_DTM_RX_TEST_V1
enumerator RTK_BT_LE_GAP_ACT_DTM_RX_TEST_V2
enumerator RTK_BT_LE_GAP_ACT_DTM_RX_TEST_V3
enumerator RTK_BT_LE_GAP_ACT_DTM_TX_TEST_V1
enumerator RTK_BT_LE_GAP_ACT_DTM_TX_TEST_V2
enumerator RTK_BT_LE_GAP_ACT_DTM_TX_TEST_V3
enumerator RTK_BT_LE_GAP_ACT_DTM_TX_TEST_V4
enumerator RTK_BT_LE_GAP_ACT_DTM_END_TEST
enumerator RTK_BT_LE_GAP_ACT_MAX
enum rtk_bt_le_gap_evt_t

Bluetooth LE GAP event indication Default event callback msg is send from stack(api task) to event task, and excuted in event task. But if event is direct calling, it will be directly excuted in stack(api task). This is designed for those event that will return a result and affect the stack's behaviour.

备注

BT api cannot be excuted in callback case when this callback event case is direct calling.

Values:

enumerator RTK_BT_LE_GAP_EVT_ADV_START_IND

Indicate LE adv started, with msg rtk_bt_le_adv_start_ind_t

enumerator RTK_BT_LE_GAP_EVT_ADV_STOP_IND

Indicate LE adv stopped, with msg rtk_bt_le_adv_stop_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONNECT_IND

Indicate LE connection complete, with msg rtk_bt_le_conn_ind_t

enumerator RTK_BT_LE_GAP_EVT_DISCONN_IND

Indicate LE disconnection complete, with msg rtk_bt_le_disconn_ind_t

enumerator RTK_BT_LE_GAP_EVT_SCAN_START_IND

Indicate LE scan started, with msg rtk_bt_le_scan_start_ind_t

enumerator RTK_BT_LE_GAP_EVT_SCAN_RES_IND

Indicate LE scan data report, with msg rtk_bt_le_scan_res_ind_t

enumerator RTK_BT_LE_GAP_EVT_SCAN_STOP_IND

Indicate LE scan stopped, with msg rtk_bt_le_scan_stop_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONN_UPDATE_IND

Indicate LE connection parameter updated, with msg rtk_bt_le_conn_update_ind_t

enumerator RTK_BT_LE_GAP_EVT_REMOTE_CONN_UPDATE_REQ_IND

Indicate LE remote device connection parameter change request, with msg rtk_bt_le_remote_conn_update_req_ind_t. Direct calling, BT api shall not be called in this event case.

enumerator RTK_BT_LE_GAP_EVT_DATA_LEN_CHANGE_IND

Indicate LE data length changed, with msg rtk_bt_le_data_len_change_ind_t

enumerator RTK_BT_LE_GAP_EVT_PHY_UPDATE_IND

Indicate LE PHY updated, with msg rtk_bt_le_phy_update_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_PAIRING_CONFIRM_IND

Indicate LE just work pairing need to confirm, with msg rtk_bt_le_auth_pair_cfm_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_PASSKEY_DISPLAY_IND

Indicate LE pairing passkey need to display, with msg rtk_bt_le_auth_key_display_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_PASSKEY_INPUT_IND

Indicate LE pairing need to input passkey, with msg rtk_bt_le_auth_key_input_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_PASSKEY_CONFIRM_IND

Indicate LE pairing passkey need to comfirm, with msg rtk_bt_le_auth_key_cfm_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_OOB_KEY_INPUT_IND

Indicate LE pairing need to input oob key, with msg rtk_bt_le_auth_oob_input_ind_t

enumerator RTK_BT_LE_GAP_EVT_AUTH_COMPLETE_IND

Indicate LE auth complete, with msg rtk_bt_le_auth_complete_ind_t

enumerator RTK_BT_LE_GAP_EVT_BOND_MODIFY_IND

Indicate LE bond info modified, with msg rtk_bt_le_bond_modify_ind_t

enumerator RTK_BT_LE_GAP_EVT_EXT_ADV_IND

Indicate LE ext adv state, with msg rtk_bt_le_ext_adv_ind_t

enumerator RTK_BT_LE_GAP_EVT_EXT_SCAN_RES_IND

Indicate LE ext scan data report, with msg rtk_bt_le_ext_scan_res_ind_t

enumerator RTK_BT_LE_GAP_EVT_PA_IND

Indicate LE periodic adv state, with msg rtk_bt_le_pa_ind_t

enumerator RTK_BT_LE_GAP_EVT_PA_SYNC_STATE_IND

Indicate LE periodic adv synchronization state, with msg rtk_bt_le_pa_sync_ind_t

enumerator RTK_BT_LE_GAP_EVT_PA_ADV_REPORT_IND

Indicate LE periodic adv synchronization adv report, with msg rtk_bt_le_pa_adv_report_ind_t

enumerator RTK_BT_LE_GAP_EVT_RESOLV_LIST_MODIFY_IND

Indicate LE resolving list modified, with msg rtk_bt_le_modify_resolv_list_ind_t

enumerator RTK_BT_LE_GAP_EVT_RESOLV_LIST_PENDING_IND

Indicate LE resolving list modification is pending, with msg rtk_bt_le_resolv_list_pending_ind_t

enumerator RTK_BT_LE_GAP_EVT_TXPOWER_REPORT_IND

Indicate LE Tx power report, with msg rtk_bt_le_txpower_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONNLESS_CTE_TX_STATE_IND

Indicate LE CTE transmit state, with msg rtk_bt_le_gap_connless_cte_tx_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONNLESS_IQ_REPORT_IND

Indicate LE connectionless IQ report, with msg rtk_bt_le_gap_connless_iq_report_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONN_IQ_REPORT_IND

Indicate LE connection IQ report, with msg rtk_bt_le_gap_conn_iq_report_ind_t

enumerator RTK_BT_LE_GAP_EVT_CONN_CTE_REQ_FAIL_IND

Indicate LE CTE request fail, with msg rtk_bt_le_gap_cte_req_fail_ind_t

enumerator RTK_BT_LE_GAP_EVT_PAWR_DATA_REQ_IND

Indicate LE periodic adv subevent data request, with msg rtk_bt_le_gap_pawr_data_req_ind_t

enumerator RTK_BT_LE_GAP_EVT_PAWR_RSP_IND

Indicate LE periodic adv response from synced device, with msg rtk_bt_le_gap_pawr_rsp_ind_t

enumerator RTK_BT_LE_GAP_EVT_COC_CONNECT_IND

Indicate LE l2cap credit based connection-oriented channel(coc) connect complete, with msg rtk_bt_le_coc_conn_state_ind_t

enumerator RTK_BT_LE_GAP_EVT_COC_DISCONNECT_IND

Indicate LE coc chan disconnect complete, with msg rtk_bt_le_coc_conn_state_ind_t

enumerator RTK_BT_LE_GAP_EVT_COC_SEND_DATA_RESULT_IND

Indicate LE coc send data result, with msg rtk_bt_le_coc_send_data_res_ind_t

enumerator RTK_BT_LE_GAP_EVT_COC_RECEIVE_DATA_IND

Indicate LE coc receive data from remote, with msg rtk_bt_le_coc_receive_data_ind_t

enumerator RTK_BT_LE_GAP_EVT_MAX
enum rtk_bt_gatts_act_t

Bluetooth GATTS action.

Values:

enumerator RTK_BT_GATTS_ACT_REGISTER_SERVICE
enumerator RTK_BT_GATTS_ACT_NOTIFY
enumerator RTK_BT_GATTS_ACT_INDICATE
enumerator RTK_BT_GATTS_ACT_READ_RSP
enumerator RTK_BT_GATTS_ACT_WRITE_RSP
enumerator RTK_BT_GATTS_ACT_SERVICE_CHANGED_INDICATE
enumerator RTK_BT_GATTS_ACT_MAX
enum rtk_bt_gatts_evt_t

Bluetooth GATTS event indication.

Values:

enumerator RTK_BT_GATTS_EVT_REGISTER_SERVICE

Indicate register service complete, with msg rtk_bt_gatts_reg_ind_t

enumerator RTK_BT_GATTS_EVT_MTU_EXCHANGE

Indicate mtu exchanged, with msg rtk_bt_gatt_mtu_exchange_ind_t

enumerator RTK_BT_GATTS_EVT_READ_IND

Indicate remote client read local server, with msg rtk_bt_gatts_read_ind_t

enumerator RTK_BT_GATTS_EVT_WRITE_IND

Indicate remote client write local server, with msg rtk_bt_gatts_write_ind_t

enumerator RTK_BT_GATTS_EVT_CCCD_IND

Indicate remote client write the cccd attribute, with msg rtk_bt_gatts_cccd_ind_t

enumerator RTK_BT_GATTS_EVT_INDICATE_COMPLETE_IND

Indicate local server indicate remote server complete, with msg rtk_bt_gatts_ntf_and_ind_ind_t

enumerator RTK_BT_GATTS_EVT_NOTIFY_COMPLETE_IND

Indicate local server notify remote server complete, with msg rtk_bt_gatts_ntf_and_ind_ind_t

enumerator RTK_BT_GATTS_EVT_CLIENT_SUPPORTED_FEATURES

Indicate remote client write Client Supported Features Characteristic, with msg rtk_bt_gatts_client_supported_features_ind_t

enumerator RTK_BT_GATTS_EVT_SERVICE_CHANGED_CCCD_IND

Indicate remote client write Service Changed Characteristic cccd in builtin gatt service, with msg rtk_bt_gatts_service_changed_cccd_ind_t

enumerator RTK_BT_GATTS_EVT_MAX
enum rtk_bt_gattc_act_t

Bluetooth GATTC action.

Values:

enumerator RTK_BT_GATTC_ACT_REGISTER_PROFILE
enumerator RTK_BT_GATTC_ACT_EXCHANGE_MTU
enumerator RTK_BT_GATTC_ACT_DISCOVER
enumerator RTK_BT_GATTC_ACT_READ
enumerator RTK_BT_GATTC_ACT_WRITE
enumerator RTK_BT_GATTC_ACT_CCCD_ENABLE
enumerator RTK_BT_GATTC_ACT_CCCD_DISABLE
enumerator RTK_BT_GATTC_ACT_FIND
enumerator RTK_BT_GATTC_ACT_MAX
enum rtk_bt_gattc_evt_t

Bluetooth GATTC event indication.

Values:

enumerator RTK_BT_GATTC_EVT_DISCOVER_RESULT_IND

Indicate local client discover remote server result, with msg rtk_bt_gattc_discover_ind_t

enumerator RTK_BT_GATTC_EVT_READ_RESULT_IND

Indicate local client read remote server result, with msg rtk_bt_gattc_read_ind_t

enumerator RTK_BT_GATTC_EVT_WRITE_RESULT_IND

Indicate local client write remote server result, with msg rtk_bt_gattc_write_ind_t

enumerator RTK_BT_GATTC_EVT_NOTIFY_IND

Indicate local client receive notify from remote server, with msg rtk_bt_gattc_cccd_value_ind_t

enumerator RTK_BT_GATTC_EVT_INDICATE_IND

Indicate local client receive indicate from remote server, with msg rtk_bt_gattc_cccd_value_ind_t

enumerator RTK_BT_GATTC_EVT_CCCD_ENABLE_IND

Indicate local client enable remote server's cccd notify bit complete, with msg rtk_bt_gattc_cccd_update_ind_t

enumerator RTK_BT_GATTC_EVT_CCCD_DISABLE_IND

Indicate local client disable remote server's cccd notify bit complete, with msg rtk_bt_gattc_cccd_update_ind_t

enumerator RTK_BT_GATTC_EVT_MTU_EXCHANGE

Indicate local client mtu exchange complete, with msg rtk_bt_gatt_mtu_exchange_ind_t

enumerator RTK_BT_GATTC_EVT_DISCOVER_ALL_STATE_IND

Indicate local client discover all attributes of remote server state, with msg rtk_bt_gattc_discover_all_state_ind_t

enumerator RTK_BT_GATTC_EVT_GATT_SERVICE_INFO_IND

Indicate local client discover GATT service info, with msg rtk_bt_gattc_gatt_service_info_ind_t

enumerator RTK_BT_GATTC_EVT_MAX
enum rtk_bt_le_iso_act_t

Action of BLE ISO Management.

Values:

enumerator RTK_BT_LE_ISO_ACT_CIG_START_SETTING
enumerator RTK_BT_LE_ISO_ACT_CIG_SETUP_PATH
enumerator RTK_BT_LE_ISO_ACT_CIG_REMOVE_PATH
enumerator RTK_BT_LE_ISO_ACT_ISO_DATA_SEND
enumerator RTK_BT_LE_ISO_ACT_CIG_GET_ISOCH_INFO
enumerator RTK_BT_LE_ISO_ACT_CIG_READ_ISO_TX_SYNC
enumerator RTK_BT_LE_ISO_ACT_CIG_INITIATOR_SET_CIS_ACL_LINK
enumerator RTK_BT_LE_ISO_ACT_CIG_INITIATOR_CREATE_CIS_BY_CIG_ID
enumerator RTK_BT_LE_ISO_ACT_CIG_INITIATOR_CREATE_CIS_BY_CIG_CONN_HANDLE
enumerator RTK_BT_LE_ISO_ACT_CIG_DISCONNECT
enumerator RTK_BT_LE_ISO_ACT_CIG_INITIATOR_REMOVE_CIG
enumerator RTK_BT_LE_ISO_ACT_CIG_ACCEPTOR_ACCEPT_CIS
enumerator RTK_BT_LE_ISO_ACT_CIG_ACCEPTOR_REJECT_CIS
enumerator RTK_BT_LE_ISO_ACT_CIG_ACCEPTOR_CONFIG_CIS_REQ_ACTION
enumerator RTK_BT_LE_ISO_ACT_CIG_ACCEPTOR_REGISTER_CALLBACK
enumerator RTK_BT_LE_ISO_ACT_BIG_SETUP_PATH
enumerator RTK_BT_LE_ISO_ACT_BIG_REMOVE_PATH
enumerator RTK_BT_LE_ISO_ACT_BIG_BROADCASTER_CREATE
enumerator RTK_BT_LE_ISO_ACT_BIG_BROADCASTER_TERMINATE
enumerator RTK_BT_LE_ISO_ACT_BIG_BROADCASTER_READ_TX_SYNC
enumerator RTK_BT_LE_ISO_ACT_BIG_RECEIVER_CREATE_SYNC
enumerator RTK_BT_LE_ISO_ACT_BIG_RECEIVER_TERMINATE_SYNC
enumerator RTK_BT_LE_ISO_ACT_SYNC_INFO
enumerator RTK_BT_LE_ISO_ACT_GET_ISO_CONN_HANDLE
enumerator RTK_BT_LE_ISO_ACT_MAX
enum rtk_bt_le_iso_evt_code_t

Bluetooth LE ISO management event code definition.

Values:

enumerator RTK_BT_LE_ISO_EVT_CIG_DISCONNECT_INFO

comes when receive disconnection notification

enumerator RTK_BT_LE_ISO_EVT_CIG_CIS_ESTABLISHED_INFO

comes when receive CIS established indication

enumerator RTK_BT_LE_ISO_EVT_CIG_ACCEPTOR_REQUEST_CIS_IND

comes when receive a request to establish a CIS for acceptor

enumerator RTK_BT_LE_ISO_EVT_CIG_SETUP_DATA_PATH

comes when receive a cig setup data path successfully event

enumerator RTK_BT_LE_ISO_EVT_CIG_REMOVE_DATA_PATH

comes when receive a cig remove data path successfully event

enumerator RTK_BT_LE_ISO_EVT_BIG_BROADCASTER_CREATE_CMPL_INFO

comes when RTK_BT_LE_ISO_ACT_BIG_BROADCASTER_CREATE is done

enumerator RTK_BT_LE_ISO_EVT_BIG_BROADCASTER_SYNC_STATE_IND

comes when broadcaster synchronization state change

enumerator RTK_BT_LE_ISO_EVT_BIG_RECEIVER_SYNC_ESTABLISHED_INFO

comes when RTK_BT_LE_ISO_ACT_BIG_RECEIVER_CREATE_SYNC is done

enumerator RTK_BT_LE_ISO_EVT_BIG_RECEIVER_SYNC_STATE_IND

comes when receiver synchronization state change

enumerator RTK_BT_LE_ISO_EVT_BIG_SETUP_DATA_PATH

comes when receive a big setup data path successfully event

enumerator RTK_BT_LE_ISO_EVT_BIG_REMOVE_DATA_PATH

comes when receive a big remove data path successfully event

enumerator RTK_BT_LE_ISO_EVT_DATA_SEND_DONE

comes when RTK_BT_LE_ISO_ACT_ISO_DATA_SEND is done

enumerator RTK_BT_LE_ISO_EVT_DATA_RECEIVE_IND

comes when receive iso data. Direct calling, BT api shall not be called in this event case.

enumerator RTK_BT_LE_ISO_EVT_MAX
enum rtk_bt_le_audio_bap_act_t

Bluetooth LE audio bap action.

Values:

enumerator RTK_BT_LE_AUDIO_ACT_ISO_DATA_SEND
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_SOURCE_CREATE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_SOURCE_START
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_SOURCE_STOP
enumerator RTK_BT_LE_AUDIO_ACT_EXT_SCAN_ACT
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_PA_SYNC_CREATE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_PA_SYNC_TERMINATE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_BIG_SYNC_CREATE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_BIG_SYNC_TERMINATE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_BIG_SYNC_TERMINATE_BY_HANDLE
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_ASSISTANT_REMOTE_SCAN_ACT
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_ASSISTANT_RECEPTION_START
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_ASSISTANT_RECEPTION_STOP
enumerator RTK_BT_LE_AUDIO_ACT_BROADCAST_ASSISTANT_RECEPTION_REMOVE
enumerator RTK_BT_LE_AUDIO_ACT_GROUP_ALLOCATE
enumerator RTK_BT_LE_AUDIO_ACT_GROUP_RELEASE
enumerator RTK_BT_LE_AUDIO_ACT_CLIENT_START
enumerator RTK_BT_LE_AUDIO_ACT_CLIENT_STOP
enumerator RTK_BT_LE_AUDIO_ACT_CLIENT_RELEASE
enumerator RTK_BT_LE_AUDIO_ACT_BAP_PARAM_CONFIG
enumerator RTK_BT_LE_AUDIO_ACT_BAP_MAX
enum rtk_bt_le_audio_bap_evt_t

Bluetooth LE audio event indication.

Values:

enumerator RTK_BT_LE_AUDIO_EVT_ISO_DATA_RECEIVE_IND
enumerator RTK_BT_LE_AUDIO_EVT_BAP_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_CIS_CONN_INFO
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_SETUP_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_REMOVE_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_ASE_STATE_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_CP_CODEC_CFG_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_CP_QOS_CFG_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_CP_ENABLE_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_CP_DISABLE_IND
enumerator RTK_BT_LE_AUDIO_EVT_ASCS_GET_PREFER_QOS_IND
enumerator RTK_BT_LE_AUDIO_EVT_BASS_GET_PA_SYNC_PARAM_IND
enumerator RTK_BT_LE_AUDIO_EVT_BASS_GET_BIG_SYNC_PARAM_IND
enumerator RTK_BT_LE_AUDIO_EVT_PA_SYNC_STATE_IND
enumerator RTK_BT_LE_AUDIO_EVT_BIG_SETUP_DATA_PATH
enumerator RTK_BT_LE_AUDIO_EVT_BIG_REMOVE_DATA_PATH
enumerator RTK_BT_LE_AUDIO_EVT_BROADCAST_SOURCE_STATE_IND
enumerator RTK_BT_LE_AUDIO_EVT_BROADCAST_SOURCE_SETUP_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_BROADCAST_SOURCE_REMOVE_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_GROUP_DEV_MSG_IND
enumerator RTK_BT_LE_AUDIO_EVT_BAP_SETUP_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_BAP_REMOVE_DATA_PATH_IND
enumerator RTK_BT_LE_AUDIO_EVT_BAP_MAX
enum rtk_bt_le_audio_cap_act_t

Bluetooth LE audio cap action.

Values:

enumerator RTK_BT_LE_AUDIO_ACT_CSIS_GEN_RSI
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_UPDATE_SIRK
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_UPDATE_SIZE
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_SET_COORDINATOR_CHECK_ADV_RSI
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_SET_COORDINATOR_CFG_DISCOVER
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_SET_COORDINATOR_ADD_GROUP
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_SET_COORDINATOR_ADD_DEVICE
enumerator RTK_BT_LE_AUDIO_ACT_CSIS_SET_COORDINATOR_WRITE_LOCK
enumerator RTK_BT_LE_AUDIO_ACT_MCP_SERVER_SEND_DATA
enumerator RTK_BT_LE_AUDIO_ACT_MCP_SERVER_READ_CFM
enumerator RTK_BT_LE_AUDIO_ACT_MCP_CLIENT_WRITE_MEDIA_CP
enumerator RTK_BT_LE_AUDIO_ACT_MCP_CLIENT_READ_CHAR_VALUE
enumerator RTK_BT_LE_AUDIO_ACT_MCP_CLIENT_CFG_CCCD
enumerator RTK_BT_LE_AUDIO_ACT_VCS_SET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_VCS_GET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_VCS_WRITE_CP
enumerator RTK_BT_LE_AUDIO_ACT_VCS_GET_VOLUME_STATE
enumerator RTK_BT_LE_AUDIO_ACT_VCS_GET_VOLUME_FLAGS
enumerator RTK_BT_LE_AUDIO_ACT_VCS_CHANGE_MUTE
enumerator RTK_BT_LE_AUDIO_ACT_VCS_CHANGE_VOLUME
enumerator RTK_BT_LE_AUDIO_ACT_MICS_CHANGE_MUTE
enumerator RTK_BT_LE_AUDIO_ACT_MICS_SET_MUTE_VALUE
enumerator RTK_BT_LE_AUDIO_ACT_MICS_GET_MUTE_VALUE
enumerator RTK_BT_LE_AUDIO_ACT_MICS_SET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_MICS_GET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_SET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_GET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_CFG_CCCD
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_READ_CHAR_VALUE
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_WRITE_CP
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_WRITE_CP_BY_GROUP
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_WRITE_AUDIO_LOCATION
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_WRITE_OUTPUT_DES
enumerator RTK_BT_LE_AUDIO_ACT_VOCS_GET_SRV_DATA
enumerator RTK_BT_LE_AUDIO_ACT_AICS_SET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_AICS_GET_PARAM
enumerator RTK_BT_LE_AUDIO_ACT_AICS_CFG_CCCD
enumerator RTK_BT_LE_AUDIO_ACT_AICS_READ_CHAR_VALUE
enumerator RTK_BT_LE_AUDIO_ACT_AICS_WRITE_CP
enumerator RTK_BT_LE_AUDIO_ACT_AICS_WRITE_CP_BY_GROUP
enumerator RTK_BT_LE_AUDIO_ACT_AICS_WRITE_INPUT_DES
enumerator RTK_BT_LE_AUDIO_ACT_AICS_GET_SRV_DATA
enumerator RTK_BT_LE_AUDIO_ACT_CAP_PARAM_CONFIG
enumerator RTK_BT_LE_AUDIO_CAP_ACT_MAX
enum rtk_bt_le_audio_cap_evt_t

Bluetooth LE audio cap event indication.

Values:

enumerator RTK_BT_LE_AUDIO_EVT_CAP_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_CSIS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_CSIS_CLIENT_READ_RESULT_IND
enumerator RTK_BT_LE_AUDIO_EVT_CSIS_CLIENT_SEARCH_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_CSIS_CLIENT_SET_MEM_FOUND_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_SERVER_WRITE_MEDIA_CP_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_SERVER_READ_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_READ_RESULT_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_NOTIFY_IND
enumerator RTK_BT_LE_AUDIO_EVT_MCP_CLIENT_MEDIA_CP_NOTIFY_IND
enumerator RTK_BT_LE_AUDIO_EVT_VCS_VOLUME_CP_IND
enumerator RTK_BT_LE_AUDIO_EVT_VCS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_VCS_CLIENT_VOLUME_STATE_IND
enumerator RTK_BT_LE_AUDIO_EVT_VCS_CLIENT_VOLUME_FLAG_IND
enumerator RTK_BT_LE_AUDIO_EVT_MICS_WRITE_MUTE_IND
enumerator RTK_BT_LE_AUDIO_EVT_MICS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_MICS_CLIENT_NOTIFY_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_WRITE_OFFSET_STATE_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_WRITE_AUDIO_LOCATION_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_WRITE_OUTPUT_DES_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_READ_RESULT_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_NOTIFY_IND
enumerator RTK_BT_LE_AUDIO_EVT_VOCS_CLIENT_CP_RESULT_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_CP_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_WRITE_INPUT_DES_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_READ_RESULT_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_NOTIFY_IND
enumerator RTK_BT_LE_AUDIO_EVT_AICS_CLIENT_CP_RESULT_IND
enumerator RTK_BT_LE_AUDIO_CAP_EVT_MAX
enum rtk_bt_le_audio_tmap_act_t

Bluetooth LE audio tmap action.

Values:

enumerator RTK_BT_LE_AUDIO_ACT_TMAS_READ_ROLE
enumerator RTK_BT_LE_AUDIO_TMAP_ACT_MAX
enum rtk_bt_le_audio_tmap_evt_t

Bluetooth LE audio tmap event indication.

Values:

enumerator RTK_BT_LE_AUDIO_EVT_TMAS_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_EVT_TMAS_CLIENT_READ_ROLE_RESULT
enumerator RTK_BT_LE_AUDIO_TMAP_EVT_MAX
enum rtk_bt_le_audio_gmap_act_t

Bluetooth LE audio gmap action.

Values:

enumerator RTK_BT_LE_AUDIO_GMAS_ACT_READ_ROLE
enumerator RTK_BT_LE_AUDIO_GMAS_ACT_READ_FEATURES
enumerator RTK_BT_LE_AUDIO_GMAP_ACT_MAX
enum rtk_bt_le_audio_gmap_evt_t

Bluetooth LE audio gmap event indication.

Values:

enumerator RTK_BT_LE_AUDIO_GMAS_EVT_READ_IND
enumerator RTK_BT_LE_AUDIO_GMAS_EVT_CLIENT_DISCOVERY_DONE_IND
enumerator RTK_BT_LE_AUDIO_GMAS_EVT_CLIENT_READ_ROLE_RESULT
enumerator RTK_BT_LE_AUDIO_GMAS_EVT_CLIENT_READ_FEATURES_RESULT
enumerator RTK_BT_LE_AUDIO_GMAP_EVT_MAX
enum br_gap_uuid_type_t

gap uuid type

Values:

enumerator BR_GAP_UUID16

UUID type 16 bits

enumerator BR_GAP_UUID32

UUID type 32 bits

enumerator BR_GAP_UUID128

UUID type 128 bits

enum rtk_bt_br_group_t

Bluetooth BR action group.

Values:

enumerator RTK_BT_BR_GP_GAP
enumerator RTK_BT_BR_GP_AVRCP

BR/EDR avrcp group

enumerator RTK_BT_BR_GP_A2DP

BR/EDR a2dp group

enumerator RTK_BT_BR_GP_SPP

BR/EDR spp group

enumerator RTK_BT_BR_GP_RFC

BR/EDR rfcom group

enumerator RTK_BT_BR_GP_HFP

BR/EDR hfp group

enumerator RTK_BT_BR_GP_SDP

BR/EDR sdp group

enumerator RTK_BT_BR_GP_HID

BR/EDR hid group

enumerator RTK_BT_BR_GP_PBAP

BR/EDR phone book access profile

enumerator RTK_BT_BR_GP_MAX
enum rtk_bt_br_gap_act_t

Bluetooth BR/EDR GAP action.

Values:

enumerator RTK_BT_BR_GAP_ACT_SET_DEFAULT_PARAM
enumerator RTK_BT_BR_GAP_ACT_GET_DEVICE_ADDR
enumerator RTK_BT_BR_GAP_ACT_SET_DEVICE_NAME
enumerator RTK_BT_BR_GAP_ACT_SET_PAGE_PARAM
enumerator RTK_BT_BR_GAP_ACT_CFG_PAGE_PARAM
enumerator RTK_BT_BR_GAP_ACT_SET_INQUIRY_PARAM
enumerator RTK_BT_BR_GAP_ACT_CFG_INQUIRY_PARAM
enumerator RTK_BT_BR_GAP_ACT_SET_SEC_PARAM
enumerator RTK_BT_BR_GAP_ACT_DISCONNECT
enumerator RTK_BT_BR_GAP_ACT_START_INQUIRY
enumerator RTK_BT_BR_GAP_ACT_GET_REMOTE_NAME
enumerator RTK_BT_BR_GAP_ACT_MAX_BOND_NUM_GET
enumerator RTK_BT_BR_GAP_ACT_BOND_NUM_GET
enumerator RTK_BT_BR_GAP_ACT_BOND_ADDR_GET
enumerator RTK_BT_BR_GAP_ACT_BOND_INDEX_GET
enumerator RTK_BT_BR_GAP_ACT_BOND_KEY_GET
enumerator RTK_BT_BR_GAP_ACT_BOND_KEY_SET
enumerator RTK_BT_BR_GAP_ACT_BOND_PRIORITY_SET
enumerator RTK_BT_BR_GAP_ACT_BOND_DELETE
enumerator RTK_BT_BR_GAP_ACT_SET_PINCODE
enumerator RTK_BT_BR_GAP_ACT_SET_RADIO_MODE
enumerator RTK_BT_BR_GAP_ACT_SET_SNIFF_MODE
enumerator RTK_BT_BR_GAP_ACT_SET_COD
enumerator RTK_BT_BR_GAP_ACT_SET_SUPV_TIMEOUT
enumerator RTK_BT_BR_GAP_ACT_BOND_CLEAR
enumerator RTK_BT_BR_GAP_ACT_MAX
enum rtk_bt_br_gap_evt_t

Bluetooth BR/EDR GAP event.

Values:

enumerator RTK_BT_BR_GAP_INQUIRY_RESULT
enumerator RTK_BT_BR_GAP_REMOTE_NAME_RSP
enumerator RTK_BT_BR_GAP_ACL_CONN_IND
enumerator RTK_BT_BR_GAP_ACL_CONN_SUCCESS
enumerator RTK_BT_BR_GAP_ACL_CONN_FAIL
enumerator RTK_BT_BR_GAP_ACL_SNIFF
enumerator RTK_BT_BR_GAP_ACL_ACTIVE
enumerator RTK_BT_BR_GAP_ACL_DISCONN
enumerator RTK_BT_BR_GAP_EVT_MAX
enum rtk_bt_a2dp_act_t

Bluetooth A2DP action.

Values:

enumerator RTK_BT_A2DP_ACT_CODEC_CFG
enumerator RTK_BT_A2DP_ACT_CONNECT
enumerator RTK_BT_A2DP_ACT_DISCONNECT
enumerator RTK_BT_A2DP_ACT_START
enumerator RTK_BT_A2DP_ACT_SUSPEND
enumerator RTK_BT_A2DP_ACT_SEND_DATA
enumerator RTK_BT_A2DP_ACT_MAX
enum rtk_bt_a2dp_evt_t

Bluetooth A2DP event indication.

Values:

enumerator RTK_BT_A2DP_EVT_CONN_IND

A2DP connection indication

enumerator RTK_BT_A2DP_EVT_CONN_CMPL

A2DP connection complete

enumerator RTK_BT_A2DP_EVT_DISCONN_CMPL

A2DP disconnection complete

enumerator RTK_BT_A2DP_EVT_CONFIG_CMPL

A2DP configure complete

enumerator RTK_BT_A2DP_EVT_STREAM_OPEN

A2DP stream open

enumerator RTK_BT_A2DP_EVT_STREAM_START_IND

A2DP stream start indication

enumerator RTK_BT_A2DP_EVT_STREAM_START_RSP

A2DP stream start response

enumerator RTK_BT_A2DP_EVT_STREAM_STOP

A2DP stream stop

enumerator RTK_BT_A2DP_EVT_STREAM_CLOSE

A2DP stream close

enumerator RTK_BT_A2DP_EVT_STREAM_DATA_IND

A2DP stream data indication. Direct calling, BT api shall not be called in this event case.

enumerator RTK_BT_A2DP_EVT_STREAM_DATA_RSP

A2DP stream data recev rsp

enumerator RTK_BT_A2DP_EVT_SDP_ATTR_INFO

A2DP SRC get sink sdp data info

enumerator RTK_BT_A2DP_EVT_MAX
enum rtk_bt_avrcp_act_t

Bluetooth AVRCP action.

Values:

enumerator RTK_BT_AVRCP_ACT_CONNECT
enumerator RTK_BT_AVRCP_ACT_DISCONNECT
enumerator RTK_BT_AVRCP_ACT_PLAY_STATUS_CHANGE_REQ
enumerator RTK_BT_AVRCP_ACT_PLAY_STATUS_CHANGE_REG_RSP
enumerator RTK_BT_AVRCP_ACT_PLAY
enumerator RTK_BT_AVRCP_ACT_PAUSE
enumerator RTK_BT_AVRCP_ACT_STOP
enumerator RTK_BT_AVRCP_ACT_FORWARD
enumerator RTK_BT_AVRCP_ACT_BACKWARD
enumerator RTK_BT_AVRCP_ACT_REWIND_START
enumerator RTK_BT_AVRCP_ACT_REWIND_STOP
enumerator RTK_BT_AVRCP_ACT_FAST_FORWARD_START
enumerator RTK_BT_AVRCP_ACT_FAST_FORWARD_STOP
enumerator RTK_BT_AVRCP_ACT_ABSOLUTE_VOLUME_SET
enumerator RTK_BT_AVRCP_ACT_VOLUME_CHANGE_REQ
enumerator RTK_BT_AVRCP_ACT_GET_ELEMENT_ATTR
enumerator RTK_BT_AVRCP_ACT_CONN_COVER_ART
enumerator RTK_BT_AVRCP_ACT_APP_SETTING_ATTRS_LIST
enumerator RTK_BT_AVRCP_ACT_APP_SETTING_VALUES_LIST
enumerator RTK_BT_AVRCP_ACT_APP_SETTING_VALUE_GET
enumerator RTK_BT_AVRCP_ACT_APP_SETTING_VALUE_SET
enumerator RTK_BT_AVRCP_ACT_GET_PLAY_STATUS_REQ
enumerator RTK_BT_AVRCP_ACT_MAX
enum rtk_bt_avrcp_evt_t

Bluetooth AVRCP event indication.

Values:

enumerator RTK_BT_AVRCP_EVT_CONN_IND

AVRCP connection indication

enumerator RTK_BT_AVRCP_EVT_ABSOLUTE_VOLUME_SET

AVRCP absolute volume set

enumerator RTK_BT_AVRCP_EVT_VOLUME_CHANGED

AVRCP volume changed

enumerator RTK_BT_AVRCP_EVT_VOLUME_UP

AVRCP volume up

enumerator RTK_BT_AVRCP_EVT_VOLUME_DOWN

AVRCP volume down

enumerator RTK_BT_AVRCP_EVT_REG_VOLUME_CHANGED

AVRCP volume reg changed

enumerator RTK_BT_AVRCP_EVT_ELEMENT_ATTR_INFO

AVRCP element attr information

enumerator RTK_BT_AVRCP_EVT_APP_SETTING_ATTRS_LIST_RSP

AVRCP app settings attrs lit

enumerator RTK_BT_AVRCP_EVT_APP_SETTING_VALUES_LIST_RSP

AVRCP app values attrs lit

enumerator RTK_BT_AVRCP_EVT_APP_SETTING_GET_RSP

AVRCP app setting get response

enumerator RTK_BT_AVRCP_EVT_COVER_ART_DATA_IND

AVRCP cover art data indication

enumerator RTK_BT_AVRCP_EVT_CONN_CMPL

AVRCP conn completion

enumerator RTK_BT_AVRCP_EVT_DISCONN_CMPL

AVRCP disconn completion

enumerator RTK_BT_AVRCP_EVT_PLAY_STATUS_CHANGED_REG_REQ

AVRCP play status changed

enumerator RTK_BT_AVRCP_EVT_TRACK_CHANGED

AVRCP track changed

enumerator RTK_BT_AVRCP_EVT_PLAY_REQ_EVENT

AVRCP play request event

enumerator RTK_BT_AVRCP_EVT_PAUSE_REQ_EVENT

AVRCP pause request event

enumerator RTK_BT_AVRCP_EVT_STOP_REQ_EVENT

AVRCP stop request event

enumerator RTK_BT_AVRCP_EVT_FORWARD_REQ_EVENT

AVRCP forward request event

enumerator RTK_BT_AVRCP_EVT_BACKWARD_REQ_EVENT

AVRCP backward request event

enumerator RTK_BT_AVRCP_EVT_FAST_FORWARD_START_REQ_EVENT

AVRCP fast forward start request event

enumerator RTK_BT_AVRCP_EVT_FAST_FORWARD_STOP_REQ_EVENT

AVRCP fast forward stop request event

enumerator RTK_BT_AVRCP_EVT_REWIND_START_REQ_EVENT

AVRCP rewind start request event

enumerator RTK_BT_AVRCP_EVT_REWIND_STOP_REQ_EVENT

AVRCP rewind stop request event

enumerator RTK_BT_AVRCP_EVT_GET_PLAY_STATUS_RSP_EVENT

AVRCP get play status response event

enumerator RTK_BT_AVRCP_EVT_MAX
enum rtk_bt_spp_act_t

Bluetooth SPP action.

Values:

enumerator RTK_BT_SPP_ACT_INIT_CFG
enumerator RTK_BT_SPP_ACT_SRV_CFG
enumerator RTK_BT_SPP_ACT_CONNECT
enumerator RTK_BT_SPP_ACT_DISCONNECT
enumerator RTK_BT_SPP_ACT_DISCONNECT_ALL
enumerator RTK_BT_SPP_ACT_SEND_DATA
enumerator RTK_BT_SPP_ACT_GIVE_CREDITS
enumerator RTK_BT_SPP_ACT_MAX
enum rtk_bt_spp_evt_t

Bluetooth SPP event indication.

Values:

enumerator RTK_BT_SPP_EVT_CONN_COMPL

SPP connection establishment completed

enumerator RTK_BT_SPP_EVT_CREDIT_RCVD

SPP link credits received

enumerator RTK_BT_SPP_EVT_DATA_IND

SPP data indication

enumerator RTK_BT_SPP_EVT_DATA_RSP

SPP data response

enumerator RTK_BT_SPP_EVT_CONN_IND

SPP connection indication

enumerator RTK_BT_SPP_EVT_DISCONN_CMPL

SPP disconnection completed

enumerator RTK_BT_SPP_EVT_SDP_ATTR_INFO

SPP get sdp attribute info

enumerator RTK_BT_SPP_EVT_SDP_DISCOV_CMPL

SPP sdp discovery completed

enumerator RTK_BT_SPP_EVT_MAX
enum rtk_bt_rfc_act_t

Bluetooth RFC action.

Values:

enumerator RTK_BT_RFC_ACT_CONNECT
enumerator RTK_BT_RFC_ACT_DISCONNECT
enumerator RTK_BT_RFC_ACT_SEND_DATA
enumerator RTK_BT_RFC_ACT_CREDITS_GIVE
enumerator RTK_BT_RFC_ACT_MAX
enum rtk_bt_rfc_evt_t

Bluetooth RFC event indication.

Values:

enumerator RTK_BT_RFC_EVT_RFC_ATTR_INFO

RFC get sdp attribute info

enumerator RTK_BT_RFC_EVT_CONN_IND

RFC connection establishment completed

enumerator RTK_BT_RFC_EVT_CONN_CMPL

RFC link credits received

enumerator RTK_BT_RFC_EVT_DISCONN_CMPL

RFC data indication

enumerator RTK_BT_RFC_EVT_DATA_IND

RFC data response

enumerator RTK_BT_RFC_EVT_CREDITS_INFO

RFC credits information

enumerator RTK_BT_RFC_EVT_MAX
enum rtk_bt_hid_act_t

Bluetooth HID action.

Values:

enumerator RTK_BT_HID_ACT_DESCRIPTOR_ADD
enumerator RTK_BT_HID_ACT_CONNECT
enumerator RTK_BT_HID_ACT_DISCONNECT
enumerator RTK_BT_HID_ACT_GET_REPORT_RSP
enumerator RTK_BT_HID_ACT_INPUT_DATA_SEND
enumerator RTK_BT_HID_ACT_MAX
enum rtk_bt_hid_evt_t

Bluetooth HID event indication.

Values:

enumerator RTK_BT_HID_EVT_CONN_IND

HID connection indication

enumerator RTK_BT_HID_EVT_CONN_CMPL

HID connection complete indication

enumerator RTK_BT_HID_EVT_DISCONN_CMPL

HID disconnection complete indication

enumerator RTK_BT_HID_EVT_MAX
enum rtk_bt_sdp_act_t

Bluetooth SDP action.

Values:

enumerator RTK_BT_SDP_ACT_RECORD_ADD
enumerator RTK_BT_SDP_ACT_DISCOV_START
enumerator RTK_BT_SDP_ACT_MAX
enum rtk_bt_sdp_evt_t

Bluetooth SDP event indication.

Values:

enumerator RTK_BT_SDP_EVT_DID_ATTR_INFO
enumerator RTK_BT_SDP_EVT_DISCOV_CMPL
enumerator RTK_BT_SDP_EVT_MAX
enum rtk_bt_hfp_act_t

Bluetooth HFP action.

Values:

enumerator RTK_BT_HFP_ACT_CONFIG_HF
enumerator RTK_BT_HFP_ACT_CONFIG_AG
enumerator RTK_BT_HFP_ACT_CONNECT
enumerator RTK_BT_HFP_ACT_DISCONNECT
enumerator RTK_BT_HFP_ACT_SCO_CONNECT
enumerator RTK_BT_HFP_ACT_SCO_DISCONNECT
enumerator RTK_BT_HFP_ACT_CALL_INCOMING
enumerator RTK_BT_HFP_ACT_CALL_ANSWER
enumerator RTK_BT_HFP_ACT_CALL_TERMINATE
enumerator RTK_BT_HFP_ACT_DIAL_WITH_NUMBER
enumerator RTK_BT_HFP_ACT_DIAL_LAST_NUMBER
enumerator RTK_BT_HFP_ACT_SEND_SCO_DATA
enumerator RTK_BT_HFP_ACT_REPORT_BATT_LEVEL
enumerator RTK_BT_HFP_ACT_REPORT_SPEAKER_GAIN
enumerator RTK_BT_HFP_ACT_REPORT_MICROPHONE_GAIN
enumerator RTK_BT_HFP_ACT_MAX
enum rtk_bt_hfp_evt_t

Bluetooth HFP event indication.

Values:

enumerator RTK_BT_HFP_EVT_SDP_ATTR_INFO

HFP AG get hf sdp data info

enumerator RTK_BT_HFP_EVT_SUPPORTED_FEATURES_IND

HFP AG supported features indication

enumerator RTK_BT_HFP_EVT_CONN_IND

HFP connection indication

enumerator RTK_BT_HFP_EVT_CONN_CMPL

HFP connection completed

enumerator RTK_BT_HFP_EVT_CALL_STATUS

HFP CALL status indication

enumerator RTK_BT_HFP_EVT_CALLER_ID_IND

HFP CALLER number indication

enumerator RTK_BT_HFP_EVT_DISCONN_CMPL

HFP disconnection completed

enumerator RTK_BT_HFP_EVT_HF_BATTERY_IND

HFP HF battery indicator req

enumerator RTK_BT_HFP_EVT_HF_SPEAKER_VOL_CHANGED_IND

HFP HF speaker volumer changed indicate

enumerator RTK_BT_HFP_EVT_HF_MIC_VOL_CHANGED_IND

HFP HF mic volumer changed indicate

enumerator RTK_BT_HFP_EVT_SCO_CONN_IND

HFP sco connection indication

enumerator RTK_BT_HFP_EVT_SCO_CONN_CMPL

HFP sco connection completed

enumerator RTK_BT_HFP_EVT_SCO_DATA_IND

HFP sco data indication. Direct calling, BT api shall not be called in this event case.

enumerator RTK_BT_HFP_EVT_SCO_DISCONNCTED_IND

HFP sco disconnected indication

enumerator RTK_BT_HFP_EVT_AG_CONN_IND

HFP ag conn indication

enumerator RTK_BT_HFP_EVT_AG_CONN_CMPL

HFP ag conn complete

enumerator RTK_BT_HFP_EVT_AG_DISCONN_CMPL

HFP ag disconnection complete

enumerator RTK_BT_HFP_EVT_AG_INDICATORS_STATUS_REQ

HFP ag disconnection complete

enumerator RTK_BT_HFP_EVT_AG_CURR_CALLS_LIST_QUERY

HFP ag current call list query

enumerator RTK_BT_HFP_EVT_AG_DIAL_LAST_NUMBER

HFP ag dial last number

enumerator RTK_BT_HFP_EVT_AG_CALL_ANSWER_REQ

HFP ag call answer request

enumerator RTK_BT_HFP_EVT_AG_CALL_TERMINATE_REQ

HFP ag call terminate request

enumerator RTK_BT_HFP_EVT_AG_CALL_STATUS

HFP ag call status incoming

enumerator RTK_BT_HFP_EVT_MAX
enum rtk_bt_pbap_act_t

Bluetooth PBAP action.

Values:

enumerator RTK_BT_PBAP_ACT_CONNECT
enumerator RTK_BT_PBAP_ACT_DISCONNECT
enumerator RTK_BT_PBAP_ACT_SET_PHONE_BOOK
enumerator RTK_BT_PBAP_ACT_PHONE_BOOK_PULL
enumerator RTK_BT_PBAP_ACT_PHONE_BOOK_PULL_CONTINUE
enumerator RTK_BT_PBAP_ACT_PHONE_BOOK_PULL_ABORT
enumerator RTK_BT_PBAP_ACT_PHONE_BOOK_SIZE_GET
enumerator RTK_BT_PBAP_ACT_PULL_CALLER_ID_NAME
enumerator RTK_BT_PBAP_ACT_MAX
enum rtk_bt_pbap_evt_t

Bluetooth PBAP event indication.

Values:

enumerator RTK_BT_PBAP_EVT_CONN_CMPL

PBAP connection completion

enumerator RTK_BT_PBAP_EVT_CONN_FAIL

PBAP connection fail

enumerator RTK_BT_PBAP_EVT_DISCONN_CMPL

PBAP disconnectoin completion

enumerator RTK_BT_PBAP_EVT_SET_PHONE_BOOK_CMPL

PBAP set phone book completion

enumerator RTK_BT_PBAP_EVT_GET_PHONE_BOOK_CMPL

PBAP get phone book completion

enumerator RTK_BT_PBAP_EVT_CALLER_ID_NAME

PBAP caller id name indication

enumerator RTK_BT_PBAP_EVT_GET_PHONE_BOOK_SIZE_CMPL

PBAP get phone book size completion

enumerator RTK_BT_PBAP_EVT_MAX
enum rtk_bt_group_t

Bluetooth common action group.

Values:

enumerator RTK_BT_COMMON_GP_GAP
enumerator RTK_BT_COMMON_GP_MAX
enum rtk_bt_gap_act_t

Bluetooth common GAP action.

Values:

enumerator RTK_BT_GAP_ACT_ECFC_SET_PARAM
enumerator RTK_BT_GAP_ACT_ECFC_SEC_REG_REQ
enumerator RTK_BT_GAP_ACT_ECFC_REGISTER
enumerator RTK_BT_GAP_ACT_ECFC_CONN_REQ
enumerator RTK_BT_GAP_ACT_ECFC_CONN_CFM
enumerator RTK_BT_GAP_ACT_ECFC_DISCONN_REQ
enumerator RTK_BT_GAP_ACT_ECFC_SEND_DATA
enumerator RTK_BT_GAP_ACT_ECFC_RECONF_REQ
enumerator RTK_BT_GAP_ACT_VENDOR_CMD_REQ
enumerator RTK_BT_GAP_ACT_MAX
enum rtk_bt_gap_evt_t

Bluetooth common GAP event indication.

Values:

enumerator RTK_BT_GAP_EVT_ECFC_CONN_CMPL_IND

Indicate ECFC connection establish result, with msg rtk_bt_ecfc_conn_cmpl_ind_t

enumerator RTK_BT_GAP_EVT_ECFC_DATA_IND

Indicate ECFC data reception, with msg rtk_bt_ecfc_data_ind_t

enumerator RTK_BT_GAP_EVT_ECFC_CONN_REQ_IND

Indicate ECFC connection request, with msg rtk_bt_ecfc_conn_req_ind_t

enumerator RTK_BT_GAP_EVT_ECFC_DISCONN_IND

Indicate ECFC disconnect, with msg rtk_bt_ecfc_disconn_ind_t

enumerator RTK_BT_GAP_EVT_ECFC_RECONF_REQ_IND

Indicate ECFC reconfiguration request, with msg rtk_bt_ecfc_reconf_req_ind_t. Direct calling, BT api shall not be called in this event case.

enumerator RTK_BT_GAP_EVT_ECFC_RECONF_RSP_IND

Indicate ECFC reconfiguration response, with msg rtk_bt_ecfc_reconf_rsp_ind_t

enumerator RTK_BT_GAP_EVT_MAX
enum rtk_bt_audio_err_common

Bluetooth audio API common err code.

Values:

enumerator RTK_BT_AUDIO_OK

0, means success

enumerator RTK_BT_AUDIO_FAIL

1, means common failure

enumerator RTK_BT_AUDIO_GET_VALUE_FAIL

0xFF, means get value fail

enum rtk_bt_audio_codec_t

Bluetooth audio codec type bit mask.

Values:

enumerator RTK_BT_AUDIO_CODEC_SBC
enumerator RTK_BT_AUDIO_CODEC_mSBC
enumerator RTK_BT_AUDIO_CODEC_AAC
enumerator RTK_BT_AUDIO_CODEC_LC3
enumerator RTK_BT_AUDIO_CODEC_CVSD
enumerator RTK_BT_AUDIO_CODEC_MAX
enum rtk_bt_evt_cb_ret_t

Bluetooth event callback exucute result.

Values:

enumerator RTK_BT_EVT_CB_OK
enumerator RTK_BT_EVT_CB_ACCEPT
enumerator RTK_BT_EVT_CB_REJECT
enumerator RTK_BT_EVT_CB_FAIL
typedef rtk_bt_evt_cb_ret_t (*rtk_bt_evt_cb_t)(uint8_t evt_code, void *data, uint32_t data_len)

Bluetooth event callback function type definition.

Param evt_code:

[in] event code

Param data:

[in] event data

Param data_len:

[in] event data length

union br_gap_uuid_data_t
#include <rtk_bt_common.h>

gap uuid data

Public Members

uint16_t uuid_16

UUID data in 16 bits

uint32_t uuid_32

UUID data in 32 bits

uint8_t uuid_128[16]

UUID data in 128 bits

BT Def Types

enum rtk_bt_status_t

Bluetooth API status definition.

Values:

enumerator RTK_BT_STATUS_DONE
enumerator RTK_BT_STATUS_CONTINUE
enumerator RTK_BT_STATUS_FAIL
enum rtk_bt_err_group

Bluetooth API err group mask.

Values:

enumerator RTK_BT_ERR_COMMON_GROUP

BT API common err, ref rtk_bt_err_common

enumerator RTK_BT_ERR_HCI_GROUP

BT HCI err, ref rtk_bt_err_hci

enumerator RTK_BT_ERR_L2CAP_GROUP

BT L2CAP err, different L2CAP channel mode may have different sub err, For example, LE credited based connect-oriented channel(coc) err may ref rtk_bt_err_l2cap_le_coc

enumerator RTK_BT_ERR_ATT_GROUP

BT ATT err, ref rtk_bt_err_att

enumerator RTK_BT_ERR_SM_GROUP

BT SMP err, ref rtk_bt_err_smp

enumerator RTK_BT_ERR_GATT_GROUP

BT GATT err, ref rtk_bt_err_gatt

enum rtk_bt_err_common

Bluetooth API common sub err code.

Values:

enumerator RTK_BT_OK

0, means success

enumerator RTK_BT_FAIL

1, means common failure

enumerator RTK_BT_ERR_NO_PERM

2

enumerator RTK_BT_ERR_NOT_READY

3

enumerator RTK_BT_ERR_NO_MEMORY

4

enumerator RTK_BT_ERR_MISMATCH

5

enumerator RTK_BT_ERR_BUSY

6

enumerator RTK_BT_ERR_OS_OPERATION

7

enumerator RTK_BT_ERR_MSG_SEND

8

enumerator RTK_BT_ERR_UNSUPPORTED

9

enumerator RTK_BT_ERR_PARAM_INVALID

10

enumerator RTK_BT_ERR_UNHANDLED

11

enumerator RTK_BT_ERR_NEED_TRY_AGAIN

12

enumerator RTK_BT_ERR_ALREADY_DONE

13

enumerator RTK_BT_ERR_ALREADY_IN_PROGRESS

14

enumerator RTK_BT_ERR_POINTER_INVALID

15

enumerator RTK_BT_ERR_NO_CREDITS

16

enumerator RTK_BT_ERR_NO_BUFS

17

enumerator RTK_BT_ERR_NO_ENTRY

18

enumerator RTK_BT_ERR_NO_RESOURCE

19

enumerator RTK_BT_ERR_ADV_LENGTH_INVALID

20

enumerator RTK_BT_ERR_NO_CONNECTION

21

enumerator RTK_BT_ERR_IRK_NOT_FOUND

22

enumerator RTK_BT_ERR_STATE_INVALID

23

enumerator RTK_BT_ERR_QUEUE_FULL

24

enumerator RTK_BT_ERR_SEND_REQ_FAILURE

25

enumerator RTK_BT_ERR_PDU_SIZE_INVALID

26

enumerator RTK_BT_ERR_CONN_NUM_LIMIT

27

enumerator RTK_BT_ERR_NO_BOND

28

enumerator RTK_BT_ERR_SYNC_TIMEOUT

29

enumerator RTK_BT_ERR_LOWER_STACK_API

30

enumerator RTK_BT_ERR_LOWER_STACK_CB

31

enumerator RTK_BT_ERR_CREATE_CONN_TIMEOUT

32

enumerator RTK_BT_ERR_NO_CASE_ELEMENT

33

enumerator RTK_BT_ERR_UNKNOWN

255

enum rtk_bt_err_hci

Bluetooth API hci sub err code. Details ref bluetooth spec.

Values:

enumerator RTK_BT_HCI_ERR_UNKNOWN_CMD
enumerator RTK_BT_HCI_ERR_UNKNOWN_CONN_ID
enumerator RTK_BT_HCI_ERR_HARDWARE_FAIL
enumerator RTK_BT_HCI_ERR_PAGE_TIMEOUT
enumerator RTK_BT_HCI_ERR_AUTHEN_FAIL
enumerator RTK_BT_HCI_ERR_KEY_MISSING
enumerator RTK_BT_HCI_ERR_MEMORY_FULL
enumerator RTK_BT_HCI_ERR_CONN_TIMEOUT
enumerator RTK_BT_HCI_ERR_MAX_NUM_CONN
enumerator RTK_BT_HCI_ERR_MAX_NUM_SCO_CONN
enumerator RTK_BT_HCI_ERR_ACL_CONN_EXIST
enumerator RTK_BT_HCI_ERR_CMD_DISALLOWED
enumerator RTK_BT_HCI_ERR_REJECT_LIMITED_RESOURCE
enumerator RTK_BT_HCI_ERR_REJECT_SECURITY_REASON
enumerator RTK_BT_HCI_ERR_REJECT_UNACCEPTABLE_ADDR
enumerator RTK_BT_HCI_ERR_HOST_TIMEOUT
enumerator RTK_BT_HCI_ERR_UNSUPPORTED_PARAM
enumerator RTK_BT_HCI_ERR_INVALID_PARAM
enumerator RTK_BT_HCI_ERR_REMOTE_USER_TERMINATE
enumerator RTK_BT_HCI_ERR_REMOTE_LOW_RESOURCE
enumerator RTK_BT_HCI_ERR_REMOTE_POWER_OFF
enumerator RTK_BT_HCI_ERR_LOCAL_HOST_TERMINATE
enumerator RTK_BT_HCI_ERR_REPEATED_ATTEMPTS
enumerator RTK_BT_HCI_ERR_PARING_NOT_ALLOWED
enumerator RTK_BT_HCI_ERR_UNKNOWN_LMP_PDU
enumerator RTK_BT_HCI_ERR_UNSUPPORTED_REMOTE_FEAT
enumerator RTK_BT_HCI_ERR_SCO_OFFSET_REJECTED
enumerator RTK_BT_HCI_ERR_SCO_INTERVAL_REJECTED
enumerator RTK_BT_HCI_ERR_SCO_AIR_MODE_REJECTED
enumerator RTK_BT_HCI_ERR_INVALID_LMP_PARAM
enumerator RTK_BT_HCI_ERR_UNSPECIFIED_ERROR
enumerator RTK_BT_HCI_ERR_UNSUPPORTED_LMP_PARAM
enumerator RTK_BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED
enumerator RTK_BT_HCI_ERR_LMP_RESPONSE_TIMEOUT
enumerator RTK_BT_HCI_ERR_LMP_ERROR_TRANS_COLLISION
enumerator RTK_BT_HCI_ERR_LMP_PDU_NOT_ALLOWED
enumerator RTK_BT_HCI_ERR_ENCRYPT_MODE_NOT_ACCEPTABLE
enumerator RTK_BT_HCI_ERR_UNIT_KEY_USED
enumerator RTK_BT_HCI_ERR_QOS_NOT_SUPPORTED
enumerator RTK_BT_HCI_ERR_INSTANT_PASSED
enumerator RTK_BT_HCI_ERR_PAIR_UNIT_KEY_NOT_SUPPORT
enumerator RTK_BT_HCI_ERR_DIFF_TRANS_COLLISION
enumerator RTK_BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM
enumerator RTK_BT_HCI_ERR_QOS_REJECT
enumerator RTK_BT_HCI_ERR_CHANN_ASSESS_NOT_SUPPORT
enumerator RTK_BT_HCI_ERR_INSUFFICIENT_SECURITY
enumerator RTK_BT_HCI_ERR_PARAM_OUT_OF_RANGE
enumerator RTK_BT_HCI_ERR_ROLE_SWITCH_PANDING
enumerator RTK_BT_HCI_ERR_RESERVED_SLOT_VIOLATION
enumerator RTK_BT_HCI_ERR_ROLE_SWITCH_FAILED
enumerator RTK_BT_HCI_ERR_EXT_INQUIRY_RSP_TOO_LARGE
enumerator RTK_BT_HCI_ERR_SSP_NOT_SUPPORTED_BY_HOST
enumerator RTK_BT_HCI_ERR_HOST_BUSY_PAIRING
enumerator RTK_BT_HCI_ERR_REJECT_NO_SUITABLE_CHANN
enumerator RTK_BT_HCI_ERR_CONTROLLER_BUSY
enumerator RTK_BT_HCI_ERR_UNACCEPTABLE_CONN_INTERVAL
enumerator RTK_BT_HCI_ERR_DIRECTED_ADV_TIMEOUT
enumerator RTK_BT_HCI_ERR_MIC_FAILURE
enumerator RTK_BT_HCI_ERR_FAIL_TO_ESTABLISH_CONN
enumerator RTK_BT_HCI_ERR_MAC_CONN_FAIL
enumerator RTK_BT_HCI_ERR_COARSE_CLOCK_ADJUST_REJECTED
enumerator RTK_BT_HCI_ERR_TYPE0_SUBMAP_NOT_DEFINED
enumerator RTK_BT_HCI_ERR_UNKNOWN_ADVERTISING_IDENTIFIER
enumerator RTK_BT_HCI_ERR_LIMIT_REACHED
enumerator RTK_BT_HCI_ERR_OPERATION_CANCELLED_BY_HOST
enumerator RTK_BT_HCI_ERR_INVALID_ADDR
enumerator RTK_BT_HCI_ERR_TIMEOUT
enumerator RTK_BT_HCI_ERR_OUT_OF_SYNC
enumerator RTK_BT_HCI_ERR_NO_DESCRIPTOR
enumerator RTK_BT_HCI_ERR_NO_MEMORY
enum rtk_bt_err_l2cap_le_coc

Bluetooth API LE credit based connection-oriented channel(coc) err code. Details ref bluetooth spec.

Values:

enumerator RTK_BT_LE_COC_ERR_PSM_NOT_SUPPORTED
enumerator RTK_BT_LE_COC_ERR_NO_RESOURCES
enumerator RTK_BT_LE_COC_ERR_INSUFFICIENT_AUTHEN
enumerator RTK_BT_LE_COC_ERR_INSUFFICIENT_AUTHOR
enumerator RTK_BT_LE_COC_ERR_INSUFFICIENT_ENCRYP_KEY_SIZE
enumerator RTK_BT_LE_COC_ERR_INSUFFICIENT_ENCRYP
enumerator RTK_BT_LE_COC_ERR_INVALID_SOURCE_CID
enumerator RTK_BT_LE_COC_ERR_SOURCE_CID_ALREADY_ALLOC
enum rtk_bt_err_att

Bluetooth API att sub err code. Details ref bluetooth spec.

Values:

enumerator RTK_BT_ATT_ERR_INVALID_HANDLE
enumerator RTK_BT_ATT_ERR_READ_NOT_PERMITTED
enumerator RTK_BT_ATT_ERR_WRITE_NOT_PERMITTED
enumerator RTK_BT_ATT_ERR_INVALID_PDU
enumerator RTK_BT_ATT_ERR_INSUFFICIENT_AUTHEN
enumerator RTK_BT_ATT_ERR_UNSUPPORTED_REQ
enumerator RTK_BT_ATT_ERR_INVALID_OFFSET
enumerator RTK_BT_ATT_ERR_INSUFFICIENT_AUTHOR
enumerator RTK_BT_ATT_ERR_PREP_QUEUE_FULL
enumerator RTK_BT_ATT_ERR_ATTR_NOT_FOUND
enumerator RTK_BT_ATT_ERR_ATTR_NOT_LONG
enumerator RTK_BT_ATT_ERR_INSUFFICIENT_KEY_SIZE
enumerator RTK_BT_ATT_ERR_INVALID_VALUE_SIZE
enumerator RTK_BT_ATT_ERR_UNLIKELY
enumerator RTK_BT_ATT_ERR_INSUFFICIENT_ENCRYPT
enumerator RTK_BT_ATT_ERR_UNSUPPORTED_GROUP_TYPE
enumerator RTK_BT_ATT_ERR_INSUFFICIENT_RESOURCES
enumerator RTK_BT_ATT_ERR_DATABASE_OUT_OF_SYNC
enumerator RTK_BT_ATT_ERR_VALUE_NOT_ALLOWED
enumerator RTK_BT_ATT_ERR_INVALID_VALUE
enumerator RTK_BT_ATT_ERR_INVALID_CCC_BITS
enumerator RTK_BT_ATT_ERR_INVALID_SIGNED_COUNT
enumerator RTK_BT_ATT_ERR_INVALID_SIGNED_MAC_FAILED
enumerator RTK_BT_ATT_ERR_MIN_APPLIC_CODE
enumerator RTK_BT_ATT_ERR_WRITE_REQUEST_REJECTED
enumerator RTK_BT_ATT_ERR_CCCD_IMPROPERLY_CONFIGURED
enumerator RTK_BT_ATT_ERR_PROC_ALREADY_IN_PROGRESS
enumerator RTK_BT_ATT_ERR_OUT_OF_RANGE
enum rtk_bt_err_smp

Bluetooth API smp sub err code. Details ref bluetooth spec.

Values:

enumerator RTK_BT_SMP_ERR_PASSKEY_ENTRY_FAIL
enumerator RTK_BT_SMP_ERR_OOB_NOT_AVAIABLE
enumerator RTK_BT_SMP_ERR_AUTHEN_REQUIREMENTS
enumerator RTK_BT_SMP_ERR_CFM_VALUE_FAILED
enumerator RTK_BT_SMP_ERR_PAIRING_NOT_SUPPORTED
enumerator RTK_BT_SMP_ERR_ENCRYPTION_KEY_SIZE
enumerator RTK_BT_SMP_ERR_CMD_NOT_SUPPORTED
enumerator RTK_BT_SMP_ERR_UNSPECIFIED_REASON
enumerator RTK_BT_SMP_ERR_REPEATED_ATTEMPTS
enumerator RTK_BT_SMP_ERR_INVALID_PARAM
enumerator RTK_BT_SMP_ERR_DHKEY_CHECK_FAILED
enumerator RTK_BT_SMP_ERR_NUMERIC_COMPARISION_FAIL
enumerator RTK_BT_SMP_ERR_BREDR_PAIRING_IN_PROGRESS
enumerator RTK_BT_SMP_ERR_CRS_TRANS_KEY_GEN_NOT_ALLOW
enumerator RTK_BT_SM_ERR_NO_ENTRY
enumerator RTK_BT_SM_ERR_DB_FULL
enumerator RTK_BT_SM_ERR_INVALID_PARAM
enumerator RTK_BT_SM_ERR_LE_ADDR_NOT_RESOLVED
enumerator RTK_BT_SM_ERR_INVALID_STATE
enumerator RTK_BT_SM_ERR_NO_RESOURCE
enumerator RTK_BT_SM_ERR_DISCONNECT
enumerator RTK_BT_SM_ERR_PARING_NOT_ALLOWED
enumerator RTK_BT_SM_ERR_KEY_SAVE_FAILED
enumerator RTK_BT_SM_ERR_TIMEOUT
enumerator RTK_BT_SM_ERR_UNKNOWN
enumerator RTK_BT_SM_ERR_NO_PAIRABLE_MODE
enumerator RTK_BT_SM_ERR_VENDOR
enum rtk_bt_err_gatt

Bluetooth API gatt sub err code.

Values:

enumerator RTK_BT_GATT_ERR_OUT_OF_RESOURCE
enumerator RTK_BT_GATT_ERR_UNSUPPORTED
enumerator RTK_BT_GATT_ERR_INVALID_ROLE
enumerator RTK_BT_GATT_ERR_INVALID_STATE
enumerator RTK_BT_GATT_ERR_INVALID_CODING
enumerator RTK_BT_GATT_ERR_INVALID_HANDLE
enumerator RTK_BT_GATT_ERR_INVALID_PARAM
enumerator RTK_BT_GATT_ERR_INTERNAL
enumerator RTK_BT_GATT_ERR_NOT_ALLOWED
enumerator RTK_BT_GATT_ERR_NOTIF_IND_NOT_CFG
enumerator RTK_BT_GATT_ERR_NOTIF_IND_CFG
enumerator RTK_BT_GATT_ERR_NOTIF_IND_CONF_PD
enumerator RTK_BT_GATT_ERR_TIMEOUT
enumerator RTK_BT_GATT_ERR_NOT_AUTHENTICATED
enumerator RTK_BT_GATT_ERR_NOT_ENCRYPTED
enumerator RTK_BT_GATT_ERR_PROC_FAIL

BT GAP Types

enum rtk_bt_addr_type_t

Bluetooth device address type definition.

Values:

enumerator RTK_BT_ADDR_LE_PUBLIC

Public Device Address

enumerator RTK_BT_ADDR_LE_RANDOM

Random Device Address

enumerator RTK_BT_ADDR_LE_RPA_PUBLIC

Public Identity Address (RPA)

enumerator RTK_BT_ADDR_LE_RPA_RANDOM

Random (static) Identity Address (RPA)

enumerator RTK_BT_ADDR_CLASSIC

BR/EDR Device address type.

enumerator RTK_BT_ADDR_LE_ANONYMOUS

Anonymous Device Address

enum rtk_bt_gap_ecfc_sec_setting_t

Bluetooth GAP ECFC Security Setting.

Values:

enumerator RTK_BT_GAP_ECFC_SEC_BIT_AUTHEN

Authentication is required.

enumerator RTK_BT_GAP_ECFC_SEC_BIT_MITM

MITM authentication is required.

enumerator RTK_BT_GAP_ECFC_SEC_BIT_AUTHOR

User level authorization is required.

enumerator RTK_BT_GAP_ECFC_SEC_BIT_ENCRYPT

Encryption on link is required.

enumerator RTK_BT_GAP_ECFC_SEC_BIT_SC

Secure connection on link is required.

enum rtk_bt_gap_ecfc_data_path_t

Bluetooth GAP ECFC data path type.

Values:

enumerator RTK_BT_GAP_ECFC_DATA_PATH_APP

Application handles the data. ATT layer will not handle the data.

enumerator RTK_BT_GAP_ECFC_DATA_PATH_GATT

ATT layer handles the data.

enum rtk_bt_gap_ecfc_param_t

Bluetooth GAP ECFC paramter type.

Values:

enumerator RTK_BT_GAP_ECFC_PARAM_INIT_CREDITS

Local initial credits. Write Only. Default is 4. Range is 1 ~ 65535.

enumerator RTK_BT_GAP_ECFC_PARAM_LOCAL_MPS

Local MPS. Write Only. Default is 245. Range is 64 ~ 25533.

enum rtk_bt_gap_ecfc_conn_cfm_cause_t

Bluetooth GAP ECFC connection confirm cause definition.

Values:

enumerator RTK_BT_L2C_ECFC_ALL_CONN_SUCCESS
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_PSM_NOT_SUPPORTED
enumerator RTK_BT_L2C_ECFC_CONN_RSP_SOME_CONN_NO_RESOURCES
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_INSUFFICIENT_AUTHEN
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_INSUFFICIENT_AUTHOR
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_INSUFFICIENT_ENCRYP_KEY_SIZE
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_INSUFFICIENT_ENCRYP
enumerator RTK_BT_L2C_ECFC_CONN_RSP_SOME_CONN_INVALID_SOURCE_CID
enumerator RTK_BT_L2C_ECFC_CONN_RSP_SOME_CONN_SOURCE_CID_ALREADY_ALLOC
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_UNACCEPTABLE_PARAMS
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_INVALID_PARAMS
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_PENDING_NO_INFO
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_PENDING_AUTHER
enumerator RTK_BT_L2C_ECFC_CONN_RSP_ALL_CONN_PENDING_AUTHOR
struct rtk_bt_gap_ecfc_param_set_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC set paramter definition.

Public Members

rtk_bt_gap_ecfc_param_t type

Parameter type. rtk_bt_gap_ecfc_param_t.

uint16_t value

Value to set.

struct rtk_bt_gap_ecfc_register_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC register protocal definition.

Public Members

uint16_t psm

Protocol service multiplexer that the callback function is related to. Set to RTK_BT_PSM_EATT if channels are created for EATT.

bool is_le

Whether is LE transport.

uint16_t *p_proto_id

Protocol ID assigned by GAP ECFC module which will be used in rtk_gap_ecfc_send_conn_req.

rtk_bt_gap_ecfc_data_path_t data_path
struct rtk_bt_gap_ecfc_sec_reg_req_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC security register/deregister request definition.

Public Members

bool is_le

Whether is LE transport.

bool active

Register/Deregister the security entry.

uint16_t psm

PSM value for protocol. Set to RTK_BT_PSM_EATT if channels are created for EATT.

uint16_t uuid

BT Protocol/Profile UUID. Ignored when is_le is true.

uint8_t requirement

Security requirement of the entry. Valid values are combinations of rtk_bt_gap_ecfc_sec_setting_t.

uint8_t key_size

Key size requirement of the entry. MAX is 16.

struct rtk_bt_gap_ecfc_conn_req_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC connection request definition.

Public Members

uint16_t psm

Protocol service multiplexer of the L2CAP ECFC channel that will be established. Set to RTK_BT_PSM_EATT if channels are created for EATT.

uint16_t proto_id

Protocol ID created by bt_stack_gap_ecfc_register.

uint16_t local_mtu

Preferred MTU size value of the L2CAP ECFC channel.

uint8_t bd_addr[RTK_BD_ADDR_LEN]

Bluetooth address of remote device.

uint8_t bd_type

Bluetooth address type of remote device.

uint8_t cid_num

The number of the L2CAP ECFC channels request to establish. Range: (1 ~ RTK_BT_GAP_ECFC_CHANN_MAX_NUM)

struct rtk_bt_gap_ecfc_conn_cfm_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC connection confirm definition.

Public Members

uint16_t conn_handle

Connection handle. The value shall be get from RTK_BT_GAP_ACT_ECFC_CONN_REQ message.

uint16_t identity_id

Indentity id. The value shall be get from RTK_BT_GAP_ACT_ECFC_CONN_REQ message.

rtk_bt_gap_ecfc_conn_cfm_cause_t cause

Confirmation cause for the connection request from remote device.

uint16_t p_cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Confirmation the cid array allow to establish. The array shall be the subset of the p_cid get from RTK_BT_GAP_ACT_ECFC_CONN_REQ message.

uint8_t cid_num

Confirmation the number of the L2CAP ECFC channels allow to establish.

uint16_t local_mtu

Preferred MTU size value of the L2CAP ECFC channel.

struct rtk_bt_gap_ecfc_disconn_req_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC disconnection request definition.

Public Members

uint16_t conn_handle

Connection handle. The value shall be get from RTK_BT_GAP_ACT_ECFC_CONN_CFM message.

uint16_t cid

Local channel ID of the L2CAP ECFC channel to disconnect.

struct rtk_bt_gap_ecfc_send_data_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC send data request definition.

Public Members

uint16_t conn_handle

Connection handle. The value shall be get from RTK_BT_GAP_ACT_ECFC_CONN_CFM message.

uint16_t cid

Local channel ID. The value can be get from GAP_ECFC_CONN_CMPL message.

uint8_t *p_data

Point to data to be sent.

uint16_t length

Length of value to be sent. Range: 0 ~ local_mtu.

struct rtk_bt_gap_ecfc_reconf_req_t
#include <rtk_bt_gap.h>

Bluetooth GAP ECFC reconfigure request definition.

Public Members

uint16_t conn_handle

Connection handle. The value shall be get from RTK_BT_GAP_ACT_ECFC_CONN_CFM message.

uint16_t p_cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Local CID array need to reconfigure.

uint8_t cid_num

The cid number of p_cid array. Range: (1 ~ RTK_BT_GAP_ECFC_CHANN_MAX_NUM)

uint16_t local_mtu

Preferred Local MTU size value of the L2CAP ECFC channel.

uint16_t local_mps

Preferred Local MPS value of the L2CAP ECFC channel.

struct rtk_bt_ecfc_conn_cmpl_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC channel establish result indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t err

Result of establishing a L2CAP ECFC channels with remote device.

uint16_t conn_handle

Connection handle.

uint8_t cid_num

The number of the L2CAP ECFC channels successfully established.

uint16_t cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Local CID array assigned by Bluetooth stack.

uint16_t remote_mtu

Remote MTU value.

uint16_t local_mtu

Local MTU value.

uint16_t local_mps

Local MPS value.

uint16_t ds_data_offset

Offset used to fill user data when sending L2CAP data to remote.

uint8_t bd_addr[RTK_BD_ADDR_LEN]

Bluetooth address of remote device.

rtk_bt_addr_type_t bd_type

Bluetooth address type of remote device.

struct rtk_bt_ecfc_data_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC data reception indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t conn_handle

Connection handle.

uint16_t cid

Local CID assigned by Bluetooth stack.

uint16_t length

Length of L2CAP data.

uint8_t *data

L2CAP data.

struct rtk_bt_ecfc_conn_req_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC channel establish request indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t conn_handle

Connection handle.

uint16_t remote_mtu

Remote MTU value.

uint8_t cid_num

The number of the L2CAP ECFC channels successfully established.

uint16_t cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Local CID array assigned by Bluetooth stack.

uint8_t bd_addr[RTK_BD_ADDR_LEN]

Bluetooth address of remote device.

rtk_bt_addr_type_t bd_type

Bluetooth address type of remote device.

uint16_t identity_id

Identity id for rtk_bt_gap_ecfc_send_conn_cfm.

struct rtk_bt_ecfc_disconn_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC channel disconnection indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t conn_handle

Connection handle.

uint16_t cid

Local CID assigned by Bluetooth stack.

uint16_t cause

L2CAP channel disconnect reason received.

struct rtk_bt_ecfc_reconf_req_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC channel reconfigure request indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t conn_handle

Connection handle.

uint8_t cid_num

The number of the L2CAP ECFC channels need to reconfigure.

uint16_t cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Local CID array assigned by Bluetooth stack.

uint16_t remote_mtu

Remote MTU.

uint16_t remote_mps

REmote MPS.

struct rtk_bt_ecfc_reconf_rsp_ind_t
#include <rtk_bt_gap.h>

Bluetooth L2CAP ECFC channel reconfigure response indication.

Public Members

uint16_t proto_id

Protocol ID assigned by GAP ECFC Module.

uint16_t cause

Result of reconfiguration.

uint16_t conn_handle

Connection handle.

uint8_t cid_num

The number of the L2CAP ECFC channels successfully reconfigured.

uint16_t cid[RTK_BT_GAP_ECFC_CHANN_MAX_NUM]

Local CID array assigned by Bluetooth stack.

uint16_t local_mtu

Local MTU value.

uint16_t local_mps

Local MPS value.

struct rtk_bt_gap_vendor_cmd_param_t
#include <rtk_bt_gap.h>

Bluetooth GAP vendor cmd parameter.

Public Members

uint16_t op

Vendor cmd opcode

uint8_t len

Length of cmd parameters

uint8_t *cmd_param

Pointer to parameters to write

BT GATTC Types

enum rtk_bt_gattc_discover_type_t

Bluetooth GATT client discover type.

Values:

enumerator RTK_BT_GATT_DISCOVER_PRIMARY_ALL

Discover all primary services

enumerator RTK_BT_GATT_DISCOVER_PRIMARY_BY_UUID

Discover primary services By service UUID

enumerator RTK_BT_GATT_DISCOVER_INCLUDE

Find included services

enumerator RTK_BT_GATT_DISCOVER_CHARACTERISTIC_ALL

Discover all characteristic of a service

enumerator RTK_BT_GATT_DISCOVER_CHARACTERISTIC_BY_UUID

Discover characteristic by UUID

enumerator RTK_BT_GATT_DISCOVER_DESCRIPTORS_ALL

Discover all characteristic descriptors

enum rtk_bt_gattc_read_type_t

Bluetooth GATT client read type.

Values:

enumerator RTK_BT_GATT_CHAR_READ_BY_HANDLE

Read characteristic value

enumerator RTK_BT_GATT_CHAR_READ_BY_UUID

Read using characteristic UUID

enumerator RTK_BT_GATT_CHAR_READ_MULTIPLE

Read multiple characteristic values

enumerator RTK_BT_GATT_CHAR_READ_MULTIPLE_VARIABLE

Read multiple variable characteristic values

enum rtk_bt_gattc_write_type_t

Bluetooth GATT client write type.

Values:

enumerator RTK_BT_GATT_CHAR_WRITE_REQ

Write characteristic value request

enumerator RTK_BT_GATT_CHAR_WRITE_NO_RSP

Write characteristic value without response

enumerator RTK_BT_GATT_CHAR_WRITE_NO_RSP_SIGNED

Write characteristic value without response and with signed data

struct rtk_bt_gattc_discover_param_t
#include <rtk_bt_gattc.h>

Bluetooth GATT client discover paramter for different Operation.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_discover_type_t type

Discover type

uint8_t dummy

Useless, just for integrity

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_primary_all_param disc_primary_all

Discover All Primary Services

uint8_t uuid[16]

Discover UUID value, in little-endian format

uint8_t uuid_type

Discover UUID type rtk_bt_uuid_type_t

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_primary_by_uuid_param disc_primary_by_uuid

Discover primary service by service UUID

uint16_t start_handle

Included service start handle

uint16_t end_handle

Included service end handle

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_inc_param disc_inc

Find included services

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_char_all_param disc_char_all

Discover all characteristics of a service

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_char_by_uuid_param disc_char_by_uuid

Discover characteristics by UUID

struct rtk_bt_gattc_discover_param_t::[anonymous]::disc_descriptor_param disc_descriptor

Discover all characteristic descriptors

union rtk_bt_gattc_discover_param_t::[anonymous] [anonymous]

Anonymous union member in rtk_bt_gattc_discover_param_t

struct rtk_bt_gattc_discover_ind_t
#include <rtk_bt_gattc.h>

Bluetooth GATTC event discover result event msg.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_discover_type_t type

Discover type

rtk_bt_status_t status

GATTC discover status,

备注

: One discover request may raise multiple discover events because many attribute entries may be reported as results when discover complete. Each event reports one attribute entry. if status is RTK_BT_STATUS_CONTINUE, means one discover attribute entry is reported with this msg, discover data of union below is not empty, and still have another msg follow this. if status is RTK_BT_STATUS_DONE, means discover is finished, and discover data of union below is empty. if status is RTK_BT_STATUS_FAIL, means discover is failed, inquire err_code for the cause of failure

uint16_t err_code

GATTC discover err_code, 0: success, others: failure cause

uint16_t start_handle

Primary service start handle

Include service start handle

uint16_t end_handle

Primary service end handle

Include service end handle

uint8_t uuid[16]

Primary service UUID value, in little-endian format

Include service UUID value, in little-endian format

Characteristic UUID value, in little-endian format

Characteristic descriptor UUID value, in little-endian format

uint8_t uuid_type

Primary service UUID type rtk_bt_uuid_type_t

Include service UUID type rtk_bt_uuid_type_t

Characteristic UUID type rtk_bt_uuid_type_t

Characteristic descriptor UUID type rtk_bt_uuid_type_t

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_primary_all_per_param disc_primary_all_per

Discover primary all services result (per attribute)

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_primary_by_uuid_per_param disc_primary_by_uuid_per

Discover primary services by service UUID result (per attribute)

uint16_t handle

Include service declaration handle

Characteristic declaration handle

Characteristic descriptor attribute handle

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_inc_per_param disc_inc_per

Find included services result (per service)

uint8_t properties

Characteristic properties

uint16_t value_handle

Characteristic value attribute handle

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_char_all_per_param disc_char_all_per

Discover all characteristic of a service result (per attribute)

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_char_by_uuid_per_param disc_char_by_uuid_per

Discover characteristic by UUID result (per attribute)

struct rtk_bt_gattc_discover_ind_t::[anonymous]::disc_descriptor_per_param disc_descriptor_per

Discover all characteristic descriptors result (per attribute)

union rtk_bt_gattc_discover_ind_t::[anonymous] [anonymous]

Anonymous union member in rtk_bt_gattc_discover_ind_t

struct rtk_bt_gattc_read_param_t
#include <rtk_bt_gattc.h>

Bluetooth GATT client read paramter.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_read_type_t type

Characteristic value read type

uint16_t handle

Characteristic value handle

struct rtk_bt_gattc_read_param_t::[anonymous]::by_handle_param by_handle

Read Characteristic Value

uint16_t start_handle

Start of read handle range

uint16_t end_handle

End of read handle range

uint8_t uuid[16]

2 or 16 octet UUID

uint8_t uuid_type

Read UUID type rtk_bt_uuid_type_t

struct rtk_bt_gattc_read_param_t::[anonymous]::by_uuid_param by_uuid

Read using characteristic UUID

uint32_t handle_count

The number of multiple handles are used

uint16_t *handles

Characteristic value handles array

struct rtk_bt_gattc_read_param_t::[anonymous]::multiple_param multiple

Read multiple characteristic values

struct rtk_bt_gattc_read_param_t::[anonymous]::multiple_variable_param multiple_variable

Read multiple variable length characteristic values

union rtk_bt_gattc_read_param_t::[anonymous] [anonymous]

Anonymous union member in rtk_bt_gattc_read_param_t

struct rtk_bt_gattc_read_ind_t
#include <rtk_bt_gattc.h>

Bluetooth GATTC event read result event msg.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_read_type_t type

Characteristic value read type

rtk_bt_status_t status

GATTC read status,

备注

: One read request may raise multiple read events because many attribute entries may be reported as results when read complete. Each event reports one attribute entry. if status is RTK_BT_STATUS_CONTINUE, means one read attribute entry is reported with this msg, read data of union below is not empty, and still have another msg follow this. if status is RTK_BT_STATUS_DONE, means read is finished, and read data of union below is empty. if status is RTK_BT_STATUS_FAIL, means read is failed, inquire err_code for the cause of failure

uint16_t err_code

GATTC read err_code, 0: success, others: failure cause

uint16_t handle

Characteristic value handle

uint16_t len

The length of characteristic value

uint8_t *value

Characteristic value

struct rtk_bt_gattc_read_ind_t::[anonymous]::by_handle_res_param by_handle

Read characteristic value result

struct rtk_bt_gattc_read_ind_t::[anonymous]::by_uuid_per_param by_uuid_per

Read using characteristic UUID result (per attribute)

uint16_t dummy

Useless, just for padding, make the 4 union element the same memory structure

struct rtk_bt_gattc_read_ind_t::[anonymous]::multiple_per_param multiple_per

Read multiple characteristic values (per attribute)

struct rtk_bt_gattc_read_ind_t::[anonymous]::multiple_variable_per_param multiple_variable_per

Read multiple variable length characteristic values (per attribute)

union rtk_bt_gattc_read_ind_t::[anonymous] [anonymous]

Anonymous union member in rtk_bt_gattc_read_ind_t

struct rtk_bt_gattc_write_param_t
#include <rtk_bt_gattc.h>

Bluetooth GATT client write paramter.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_write_type_t type

Characteristic value write type

uint16_t handle

Characteristic value handle

uint16_t length

Length of the data

void *data

Data to be written

struct rtk_bt_gattc_write_ind_t
#include <rtk_bt_gattc.h>

Bluetooth GATTC event write result event msg.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_gattc_write_type_t type

Characteristic value write type

rtk_bt_status_t status

GATTC write status, if status is RTK_BT_STATUS_DONE, means write is success, if status is RTK_BT_STATUS_FAIL, means write is failed, inquire err_code for the cause of failure

uint16_t err_code

GATTC write err_code, 0: success, others: failure cause

uint16_t handle

Characteristic value handle

struct rtk_bt_gattc_update_cccd_param_t
#include <rtk_bt_gattc.h>

Bluetooth GATT client write cccd paramter.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

uint16_t char_val_handle

Characteristic value handle

uint16_t cccd_handle

Client characteristic configuration descriptor(CCCD) handle

bool bnotify

If notify bit need to write

bool bindicate

If indicate bit need to write

struct rtk_bt_gattc_cccd_update_ind_t
#include <rtk_bt_gattc.h>

Bluetooth GATT client write cccd complete event msg.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t seq

Sequence number, for convinience, not mandatory

rtk_bt_status_t status

GATTC cccd update status, if status is RTK_BT_STATUS_DONE, means write is success, if status is RTK_BT_STATUS_FAIL, means write is failed, inquire err_code for the cause of failure

uint16_t err_code

GATTC write err_code, 0: success, others: failure cause

uint16_t cccd_handle

Client characteristic configuration descriptor(CCCD) handle

bool bnotify

If notify bit is writed

bool bindicate

If indicate bit is writed

struct rtk_bt_gattc_cccd_value_ind_t
#include <rtk_bt_gattc.h>

Bluetooth GATTC client receive remote server's notify or indicate, transfer notify/indicate data to event callback by this event msg.

Public Members

uint16_t profile_id

Profile ID

uint16_t conn_handle

Connection handle

uint16_t value_handle

Characteristic value handle

uint16_t len

The length of characteristic value

uint8_t *value

characteristic value

BT GATTS Types

enum rtk_bt_gatts_client_supported_features_t

GATT Service Client Supported Features bit field.

Values:

enumerator RTK_BT_GATTS_CLIENT_SUPPORTED_FEATURES_ROBUST_CACHING_BIT

The client supports robust caching.

enumerator RTK_BT_GATTS_CLIENT_SUPPORTED_FEATURES_EATT_BEARER_BIT

The client supports Enhanced ATT bearer.

enumerator RTK_BT_GATTS_CLIENT_SUPPORTED_FEATURES_MULTI_NOTIF_BIT

The client supports receiving ATT_MULTIPLE_HANDLE_VALUE_NTF PDUs.

enum rtk_bt_gatts_server_supported_features_t

GATT Service Server Supported Features bit field.

Values:

enumerator RTK_BT_GATTS_SERVER_SUPPORTED_FEATURES_EATT_BIT

The server supports Enhanced ATT bearer.

enum rtk_bt_gatts_srv_type_t

Service type.

Values:

enumerator GATT_SERVICE_OVER_BREDR

0, Service over BREDR.

enumerator GATT_SERVICE_OVER_BLE

1, Service over BLE.

enumerator GATT_SERVICE_TYPE_RESERVED

2, RESERVED.

enum rtk_bt_gatts_write_type_t

Bluetooth GATT server received remote write request type definition.

Values:

enumerator RTK_BT_GATTS_WRITE_REQ

GATT client write request

enumerator RTK_BT_GATTS_WRITE_NO_RESP

GATT client write cmd

enumerator RTK_BT_GATTS_WRITE_NO_RESP_SIGNED

GATT client write cmd (signed)

enumerator RTK_BT_GATTS_WRITE_LONG

GATT client write long

RTK_BT_GATT_ATTRIBUTE(_uuid, _perm, _user_data, _len, _flag)

Declaration Macro. Helper macro to declare an attribute.

参数:
  • _uuid -- Attribute uuid.

  • _perm -- Attribute access permissions.

  • _user_data -- Attribute user data.

  • _len -- Attribute user data length.

  • _flag -- Attribute flag.

RTK_BT_GATT_PRIMARY_SERVICE(_service)

Primary Service Declaration Macro. Helper macro to declare a primary service attribute.

参数:
  • _service -- Service attribute value. struct bt_uuid *

RTK_BT_GATT_SECONDARY_SERVICE(_service)

Secondary Service Declaration Macro. Helper macro to declare a secondary service attribute.

参数:
  • _service -- Service attribute value. struct bt_uuid *

RTK_BT_GATT_INCLUDE_SERVICE(_service_incl)

Include Service Declaration Macro. Helper macro to declare database internal include service attribute.

参数:
RTK_BT_GATT_CHRC_INIT(_uuid, _handle, _props)

Initialization Macro. Helper macro to init an attribute.

参数:
  • _uuid -- Attribute uuid.

  • _handle -- Attribute handle.

  • _props -- Attribute access properties.

RTK_BT_GATT_CHARACTERISTIC(_uuid, _props, _perm)

Characteristic and Value Declaration Macro. Helper macro to declare a characteristic attribute along with its attribute value.

参数:
  • _uuid -- Characteristic attribute uuid.

  • _props -- Characteristic attribute properties.

  • _perm -- Characteristic Attribute access permissions.

RTK_BT_GATT_DESCRIPTOR(_uuid, _perm, _user_data, _len, _flag)

Descriptor Declaration Macro. Helper macro to declare a descriptor attribute.

备注

If use RTK_BT_GATT_DESCRIPTOR directly, MUST use _user_data as a raw data!

参数:
  • _uuid -- Descriptor attribute uuid.

  • _perm -- Descriptor attribute access permissions.

  • _user_data -- Descriptor attribute user data.

  • _len -- Attribute user data length.

  • _flag -- Attribute flag.

RTK_BT_GATT_CEP(_value)

Characteristic Extended Properties Declaration Macro. Helper macro to declare a CEP attribute.

参数:
RTK_BT_GATT_CUD(_value, _perm)

Characteristic User Format Descriptor Declaration Macro. Helper macro to declare a CUD attribute.

参数:
  • _value -- User description NULL-terminated C string. (const uint8_t *value)

  • _perm -- Descriptor attribute access permissions.

RTK_BT_GATT_CCC(_perm)

Client Characteristic Configuration Declaration Macro. Helper macro to declare a CCC attribute.

备注

Although CCCD value read/write will be handled internally, but User APP will be notified

参数:
  • _perm -- CCC access permissions.

RTK_BT_GATT_SCC(_value, _perm)

Server Characteristic Configuration Declaration Macro. Helper macro to declare a CCC attribute.

参数:
  • _value -- Poniter to Server Characteristic Configuration bits. (struct rtk_bt_gatt_scc *)

  • _perm -- CCC access permissions.

RTK_BT_GATT_CPF(_value)

Characteristic Presentation Format Descriptor Declaration Macro. Helper macro to declare a CPF attribute.

参数:
RTK_BT_GATT_CAF(_value)

Characteristic Aggregate Format Descriptor Declaration Macro. Helper macro to declare a CAF attribute.

参数:
RTK_BT_GATT_SERVICE(_attrs, _app_id)

Service Structure Declaration Macro. Helper macro to declare a service structure.

参数:
  • _attrs -- Service attributes.

  • _app_id -- Service app id.

struct rtk_bt_gatt_chrc
#include <rtk_bt_gatts.h>

Characteristic Attribute Value.

Public Members

const struct bt_uuid *uuid

Characteristic UUID.

uint16_t value_handle

Characteristic Value handle.

uint8_t properties

Characteristic properties.

struct rtk_bt_gatt_cpf
#include <rtk_bt_gatts.h>

GATT Characteristic Presentation Format Attribute Value.

Public Members

uint8_t format

Format of the value of the characteristic

int8_t exponent

Exponent field to determine how the value of this characteristic is further formatted

uint16_t unit

Unit of the characteristic

uint8_t name_space

Name space of the description

uint16_t description

Description of the characteristic as defined in a higher layer profile

struct rtk_bt_gatt_caf
#include <rtk_bt_gatts.h>

GATT Characteristic Aggregate Format Attribute Value.

Public Members

uint16_t count

The count of List of Attribute Handles

uint16_t *handles

List of Attribute Handles

struct rtk_bt_gatt_cep
#include <rtk_bt_gatts.h>

Characteristic Extended Properties Attribute Value.

Public Members

uint16_t properties

Characteristic Extended properties

struct rtk_bt_gatt_scc
#include <rtk_bt_gatts.h>

Server Characterestic Configuration Attribute Value.

Public Members

uint16_t flags

Server Characteristic Configuration flags

struct rtk_bt_gatt_attr_t
#include <rtk_bt_gatts.h>

GATT Attribute structure.

Public Members

const struct bt_uuid *uuid

Attribute UUID

void *read

Attribute read callback

uint16_t flag

Attribute flag (RTK_BT_GATT_INTERNAL/RTK_BT_GATT_APP)

union rtk_bt_gatt_attr_t::[anonymous] [anonymous]
void *write

Attribute write callback

uint16_t len

Attribute user data length

union rtk_bt_gatt_attr_t::[anonymous] [anonymous]
void *user_data

Attribute user data

uint16_t handle

Attribute handle

uint8_t perm

Attribute permissions

struct rtk_bt_gatts_read_resp_param_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server response paramter for remote client's read request.

Public Members

uint16_t seq

Sequence number, for convinience, not mandatory

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

ID of L2CAP channel to send the response, MUST be same as cid in rtk_bt_gatts_read_ind_t. Ignored when RTK_BT_5_2_EATT_SUPPORT is 0.

uint16_t index

Attribute index in service

uint8_t err_code

Error code, rtk_bt_err_att , if NOT ERR_RESP, equals 0

uint16_t len

Response Value length, when err_code == 0

const void *data

Response Value data, when err_code == 0

struct rtk_bt_gatts_write_resp_param_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server response paramter for remote client's write request.

Public Members

uint16_t seq

Sequence number, for convinience, not mandatory

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

ID of L2CAP channel to send the response, 0 indicates auto-select. Ignored when RTK_BT_5_2_EATT_SUPPORT is 0.

uint16_t index

Attribute index in service

uint8_t type

Write type

uint8_t err_code

Error code, rtk_bt_err_att , if NOT ERR_RESP, equals 0

struct rtk_bt_gatts_ntf_and_ind_param_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server indicate paramter definition.

Public Members

uint16_t seq

Sequence number, for convinience, not mandatory

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

ID of L2CAP channel to send the response, 0 indicates auto-select. Ignored when RTK_BT_5_2_EATT_SUPPORT is 0.

uint16_t index

Attribute index in service

uint16_t len

Indicate Value length

const void *data

Indicate Value data

struct rtk_bt_gatts_service_changed_indicate_param_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server service changed indicate paramter definition.

Public Members

uint16_t conn_handle

Connection handle for a client

uint16_t cid

ID of L2CAP channel, 0 indicates auto-select. Ignored when RTK_BT_5_2_EATT_SUPPORT is 0.

uint16_t start_handle

Start of affected attribute handle range

uint16_t end_handle

End of affected attribute handle range

struct rtk_bt_gatt_service
#include <rtk_bt_gatts.h>

GATT Service structure.

Public Members

struct list_head list

Service List

uint8_t alloc_ind

indicate whether this rtk_bt_gatt_service is mallocated

uint16_t app_id

Service app_id

rtk_bt_gatt_attr_t *attrs

Service Attributes

uint16_t attr_count

Service Attribute count

bool assgin_handle_flag

Flag of if the service start attr handle is assigned by user

uint16_t start_handle

User assigned start attr handle of service

rtk_bt_gatts_srv_type_t type

Service type

uint8_t register_status

Service register status

void *user_data

Service user data

uint32_t server_info

Service info

struct rtk_bt_gatts_reg_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT service register event msg.

Public Members

uint16_t reg_status

Service register status

uint16_t app_id

Registered service's app_id

struct rtk_bt_gatt_mtu_exchange_ind_t
#include <rtk_bt_gatts.h>

MTU exchange indication.

Public Members

uint16_t result

MTU exchange result

uint16_t conn_handle

Connection handle

uint16_t mtu_size

MTU size

struct rtk_bt_gatts_read_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server received remote client read request event msg.

Public Members

uint16_t app_id

Every service has a app_id

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID to indicate which channel the request is received from

uint16_t index

Attribute index in service

uint16_t offset

offset in data, for blob read

struct rtk_bt_gatts_write_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server received remote client write request event msg.

Public Members

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID to indicate which channel the request is received from

uint16_t index

Attribute index in service

uint16_t offset

offset in data, for queue write

rtk_bt_gatts_write_type_t type

Write type

uint16_t len

Length of write data

uint8_t *value

Write data

struct rtk_bt_gatts_cccd_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATTS cccd updated event msg.

Public Members

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID to indicate which channel the request is received from

uint16_t index

Attribute index in service

uint16_t value

cccd value

struct rtk_bt_gatts_ntf_and_ind_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server send notify or indicate complete msg.

Public Members

uint16_t app_id

Every service has a app_id.

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID to indicate which channel the data is sent to

uint16_t index

Attribute index in service

uint16_t seq

Sequence number, for convinience, not mandatory

uint16_t err_code

Error code, if no error is 0.

struct rtk_bt_gatts_client_supported_features_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server's Client Supported Features Characteristic writed event msg.

Public Members

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID to indicate which channel the write procedure is processed.

uint8_t features

Client Supported Features after writed, which is bit combination of rtk_bt_gatts_client_supported_features_t.

struct rtk_bt_gatts_service_changed_cccd_ind_t
#include <rtk_bt_gatts.h>

Bluetooth GATT server's Service Changed Characteristic cccd updated event msg.

Public Members

uint16_t conn_handle

Connection handle for a client

uint16_t cid

L2CAP channel ID

bool cccd_enable

cccd bits is enabled or disabled

BT HFP Types

enum rtk_bt_hfp_role_t

hfp role

Values:

enumerator RTK_BT_AUDIO_HFP_ROLE_AG

HFP Role Audio Gate

enumerator RTK_BT_AUDIO_HFP_ROLE_HF

HFP Role Hand Free

enum rtk_bt_hfp_call_status_t

hfp call status

Values:

enumerator RTK_BT_HFP_CALL_IDLE
enumerator RTK_BT_HFP_CALL_INCOMING
enumerator RTK_BT_HFP_CALL_OUTGOING
enumerator RTK_BT_HFP_CALL_ACTIVE
enumerator RTK_BT_HFP_CALL_HELD
enumerator RTK_BT_HFP_CALL_ACTIVE_WITH_CALL_WAITING
enumerator RTK_BT_HFP_CALL_ACTIVE_WITH_CALL_HELD
enum rtk_bt_hfp_ag_call_status_t

hfp ag call status

Values:

enumerator RTK_BT_HFP_AG_CALL_IDLE
enumerator RTK_BT_HFP_AG_CALL_INCOMING
enumerator RTK_BT_HFP_AG_CALL_OUTGOING
enumerator RTK_BT_HFP_AG_CALL_ACTIVE
enumerator RTK_BT_HFP_AG_CALL_ACTIVE_WITH_CALL_WAITING
enumerator RTK_BT_HFP_AG_CALL_ACTIVE_WITH_CALL_HOLD
enum rtk_bt_cvsd_frame_duration

hfp call status

Values:

enumerator RTK_BT_AUDIO_CVSD_FRAME_DURATION_3_75_MS
enumerator RTK_BT_AUDIO_CVSD_FRAME_DURATION_7_5_MS
enum rtk_bt_hfp_ag_service_indicator

Define BT HFP AG service indicator.

Values:

enumerator RTK_BT_HFP_AG_SERVICE_STATUS_AVAILABLE
enumerator RTK_BT_HFP_AG_SERVICE_STATUS_UNAVAILABLE
enum rtk_bt_hfp_ag_call_indicator

Define BT HFP AG call indicator.

Values:

enumerator RTK_BT_HFP_AG_NO_CALL_IN_PROGRESS
enumerator RTK_BT_HFP_AG_CALL_IN_PROGRESS
enum rtk_bt_hfp_ag_call_setup_indicator

Define BT HFP AG call setup indicator.

Values:

enumerator RTK_BT_HFP_AG_CALL_SETUP_STATUS_IDLE
enumerator RTK_BT_HFP_AG_CALL_SETUP_STATUS_INCOMING_CALL
enumerator RTK_BT_HFP_AG_CALL_SETUP_STATUS_OUTGOING_CALL
enumerator RTK_BT_HFP_AG_CALL_SETUP_STATUS_ALERTING
enum rtk_bt_hfp_ag_call_held_indicator

Define BT HFP AG call held indicator.

Values:

enumerator RTK_BT_HFP_AG_CALL_HELD_STATUS_IDLE
enumerator RTK_BT_HFP_AG_CALL_HELD_STATUS_HOLD_AND_ACTIVE_CALL
enumerator RTK_BT_HFP_AG_CALL_HELD_STATUS_HOLD_NO_ACTIVE_CALL
enum rtk_bt_hfp_ag_roaming_indicator

Define BT HFP AG roaming indicator.

Values:

enumerator RTK_BT_HFP_AG_ROAMING_STATUS_INACTIVE
enumerator RTK_BT_HFP_AG_ROAMING_STATUS_ACTIVE
struct rtk_bt_hfp_ag_conf_t
#include <rtk_bt_hfp.h>

hfp ag configuration data structure.

Public Members

HFP HF/HSP AG maximum connected link number

uint8_t rfc_hfp_ag_chann_num

RFCOMM channel num used for hfp

uint8_t rfc_hsp_ag_chann_num

RFCOMM channel num used for hsp

int ag_supported_features

HFP AG hf supported features BT_HFP_AG_LOCAL_SUPPORTED_FEATURE

uint8_t ag_supported_codecs

HFP AG supported codecs

struct rtk_bt_hfp_hf_conf_t
#include <rtk_bt_hfp.h>

hfp hf configuration data structure.

Public Members

HFP/HSP maximum connected link number

uint8_t rfc_hfp_chann_num

RFCOMM channel num used for hfp

uint8_t rfc_hsp_chann_num

RFCOMM channel num used for hsp

int hf_supported_features

HFP hf supported features BT_HFP_HF_LOCAL_SUPPORTED_FEATURE

uint8_t hf_supported_codecs

HFP HF supported codecs

struct rtk_bt_hfp_batt_level_t
#include <rtk_bt_hfp.h>

hfp ag configuration data structure.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t level

level The current battery level, range from 0 to 100.

struct rtk_bt_hfp_microphone_gain_t
#include <rtk_bt_hfp.h>

hfp hf report microphone gain structure.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t gain

level The current battery level, range from 0 to 100.

struct rtk_bt_hfp_speaker_gain_t
#include <rtk_bt_hfp.h>

hfp hf report speaker gain structure.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t gain

level The current battery level, range from 0 to 100.

struct rtk_bt_hfp_hf_battery_ind_t
#include <rtk_bt_hfp.h>

hfp hf receive battery indicate req.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t state

state

uint8_t *ret_info

pointer of directly calling return info

struct rtk_bt_hfp_hf_speaker_volume_changed_ind_t
#include <rtk_bt_hfp.h>

hfp hf receive speaker volume changed indication from ag.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t volume

volume

struct rtk_bt_hfp_hf_mic_volume_changed_ind_t
#include <rtk_bt_hfp.h>

hfp hf receive mic volume changed indication from ag.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t volume

volume

struct rtk_bt_hfp_call_incoming_t
#include <rtk_bt_hfp.h>

hfp calling data structure.

Public Members

uint8_t bd_addr[6]

Remote BT address

const char call_num[RTK_BT_HFP_MAX_PHONE_NUMBER]

HFP AG incoming call number

uint8_t call_num_len

HFP AG incoming call number length with the maximum of 20 including '\0'

uint8_t call_num_type

HFP AG incoming call number type

struct rtk_bt_hfp_sdp_attr_info_t
#include <rtk_bt_hfp.h>

Bluetooth hfp sdp attr information struct.

Public Members

uint8_t bd_addr[6]

address

br_gap_uuid_type_t srv_class_uuid_type

Service class UUID type

br_gap_uuid_data_t srv_class_uuid_data

Service class UUID data

uint16_t profile_version

Remote profile version

uint16_t protocol_version

Remote protocol version

uint8_t server_channel

Server channel number

uint16_t supported_feat

Supported features

uint16_t l2c_psm

L2CAP PSM value

uint8_t supported_repos

Supported repositories

uint32_t pbap_supported_feat

PBAP supported features

struct rtk_bt_hfp_ag_features_ind_t
#include <rtk_bt_hfp.h>

hfp audio gating features indication sturct.

Public Members

uint16_t capability

features

struct rtk_bt_hfp_conn_ind_t
#include <rtk_bt_hfp.h>

hfp connection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hfp_disconn_ind_t
#include <rtk_bt_hfp.h>

hfp disconnection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hfp_call_status_ind_t
#include <rtk_bt_hfp.h>

hfp call status indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t prev_status

previous status

uint8_t curr_status

curr status

struct rtk_bt_hfp_caller_id_ind_t
#include <rtk_bt_hfp.h>

hfp caller number indication.

Public Members

uint8_t bd_addr[6]

address

char number[RTK_BT_HFP_MAX_PHONE_NUMBER]

number

uint8_t type

number type

struct rtk_bt_hfp_codec_t
#include <rtk_bt_hfp.h>

Bluetooth HFP codec status.

Public Members

uint8_t bd_addr[6]

address

uint8_t codec_type

indicate codec

uint8_t channel_mode

indicate channel mode

int sample_rate

indicate sample frequence

uint8_t bitpool

indicate min bitpool

uint8_t allocation_method

indicate allocation method

uint8_t subbands

indicate subbands

uint8_t block_length

indicate block length

struct rtk_bt_hfp_codec_t::[anonymous]::[anonymous] msbc
uint8_t channel_num

indicate channel number

uint8_t frame_duration

indicate frame duration

struct rtk_bt_hfp_codec_t::[anonymous]::[anonymous] cvsd
union rtk_bt_hfp_codec_t::[anonymous] [anonymous]
struct rtk_bt_hfp_sco_data_ind_t
#include <rtk_bt_hfp.h>

Bluetooth hfp sco data receive indication.

Public Members

uint32_t length

stream data length

uint8_t data[RTK_BT_HFP_MAX_SCO_DATA_LENGTH]

stream data

struct rtk_bt_hfp_dial_number_t
#include <rtk_bt_hfp.h>

Bluetooth HFP dial call number struct.

Public Members

uint8_t bd_addr[6]

Remote BT address

const char number[RTK_BT_HFP_MAX_PHONE_NUMBER]
struct rtk_bt_hfp_sco_data_send_t
#include <rtk_bt_hfp.h>

Bluetooth HFP sco data send.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t seq_num

SCO data seq number

uint8_t len

SCO buffer length

uint8_t *buf

SCO buffer to send

struct rtk_bt_hfp_ag_indicators_status_req_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag indicators status request.

Public Members

uint8_t bd_addr[6]

address

uint8_t *ret_info

pointer of directly calling return info

struct rtk_bt_hfp_ag_indicators_status_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag indicators status struct.

Public Members

rtk_bt_hfp_ag_service_indicator service_indicator

HFP AG service availability indicator.

rtk_bt_hfp_ag_call_indicator call_indicator

HFP AG standard call status indicator.

rtk_bt_hfp_ag_call_setup_indicator call_setup_indicator

HFP AG call set up status indicator.

rtk_bt_hfp_ag_call_held_indicator call_held_indicator

HFP AG call hold status indicator.

uint8_t signal_indicator

HFP AG signal strength indicator.

rtk_bt_hfp_ag_roaming_indicator roaming_indicator

HFP AG roaming status indicator.

uint8_t batt_chg_indicator

HFP AG battery charge indicator.

struct rtk_bt_hfp_ag_curr_calls_list_query_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag query current calls list.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hfp_ag_dial_last_number_ind_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag dial last number indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hfp_ag_call_answer_req_ind_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag call answer requset indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hfp_ag_call_terminate_req_ind_t
#include <rtk_bt_hfp.h>

Bluetooth hfp ag call terminate requset indication.

Public Members

uint8_t bd_addr[6]

address

BT HID Types

enum rtk_bt_hid_role_t

hid role

Values:

enumerator RTK_BT_HID_ROLE_GAMEPAD

BT HID GAMEPAD

enumerator RTK_BT_HID_ROLE_MOUSE

BT HID MOUSE

struct rtk_bt_hid_des_t
#include <rtk_bt_hid.h>

hid descriptor struct.

Public Members

uint8_t des[RTK_BT_HID_MAX_DESCRIPTOR_LENGTH]

descriptor

uint32_t len

descriptor data length

struct rtk_bt_hid_input_data_t
#include <rtk_bt_hid.h>

hid interrupt input data struct.

Public Members

uint8_t bd_addr[6]

address

uint8_t data[RTK_BT_HID_MAX_INPUT_DATA_LENGTH]

data

uint32_t len

indicate data length

struct rtk_bt_hid_conn_ind_t
#include <rtk_bt_hid.h>

hid connection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_hid_disconn_ind_t
#include <rtk_bt_hid.h>

hid disconnection indication.

Public Members

uint8_t bd_addr[6]

address

uint16_t cause

disconnection cause

BT LE Audio Types

BT BAP Types

enum rtk_bt_le_audio_codec_cfg_item_t

Bluetooth LE audio codec cfg item. see in BAP P86 and P111.

rtk_bt_le_audio_codec_cfg_item_t

Values:

enumerator RTK_BT_LE_CODEC_CFG_ITEM_8_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_8_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_16_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_16_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_24_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_24_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_32_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_32_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_441_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_441_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_1
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_2
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_3
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_4
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_5
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_6
enumerator RTK_BT_LE_CODEC_CFG_ITEM_LC3_MAX
enum rtk_bt_le_audio_qos_cfg_type_t

Bluetooth LE audio qos cfg type item. see in BAP P86 and P111.

rtk_bt_le_audio_qos_cfg_type_t

Values:

enumerator RTK_BT_LE_QOS_CFG_CIS_LOW_LATENCY
enumerator RTK_BT_LE_QOS_CFG_CIS_HIG_RELIABILITY
enumerator RTK_BT_LE_QOS_CFG_BIS_LOW_LATENCY
enumerator RTK_BT_LE_QOS_CFG_BIS_HIG_RELIABILITY
enumerator RTK_BT_LE_QOS_CFG_MAX
enum rtk_bt_le_audio_unicast_cfg_type_t

Bluetooth LE audio unicast cfg type. see in BAP P50.

rtk_bt_le_audio_unicast_cfg_type_t

Values:

enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_UNKNOWN
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_1
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_2
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_3
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_4
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_5
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_6_I
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_6_II
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_7_I
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_7_II
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_8_I
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_8_II
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_9_I
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_9_II
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_10
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_11_I
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_11_II
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_MAX
enum rtk_bt_le_audio_unicast_cfg_type_bit_mask_t

Bluetooth LE audio codec cfg type bit mask.

rtk_bt_le_audio_unicast_cfg_type_bit_mask_t

Values:

enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_1_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_2_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_3_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_4_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_5_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_6_I_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_6_II_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_7_I_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_7_II_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_8_I_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_8_II_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_9_I_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_9_II_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_10_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_11_I_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_11_II_BIT
enumerator RTK_BT_LE_UNICAST_AUDIO_CFG_MASK
enum rtk_bt_le_audio_codec_cfg_item_bit_mask_t

Bluetooth LE audio codec cfg item bit mask.

rtk_bt_le_audio_codec_cfg_item_bit_mask_t

Values:

enumerator RTK_BT_LE_CODEC_CFG_ITEM_8_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_8_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_16_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_16_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_24_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_24_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_32_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_32_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_441_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_441_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_1_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_2_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_3_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_4_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_5_BIT
enumerator RTK_BT_LE_CODEC_CFG_ITEM_48_6_BIT
enum rtk_bt_le_audio_bap_role_t

Bluetooth LE AUDIO BAP Role.

rtk_bt_le_audio_bap_role_t

Values:

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_UNKNOWN
enumerator RTK_BT_LE_AUDIO_BAP_ROLE_BRO_SOUR

BAP Broadcast Source role.

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_BRO_SINK

BAP Broadcast Sink role.

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_BRO_ASSI

BAP Broadcast Assistant role.

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_SCAN_DELE

BAP Scan Delegate role.

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_UNI_SER

BAP Unicast Server role.

enumerator RTK_BT_LE_AUDIO_BAP_ROLE_UNI_CLI

BAP Unicast Client role.

enum rtk_bt_le_audio_initiator_status_t

Values:

enumerator RTK_BT_LE_AUDIO_INITIATOR_DISABLE
enumerator RTK_BT_LE_AUDIO_INITIATOR_ENABLE
enumerator RTK_BT_LE_AUDIO_INITIATOR_CONN
enumerator RTK_BT_LE_AUDIO_INITIATOR_UNICAST_START
enumerator RTK_BT_LE_AUDIO_INITIATOR_UNICAST_STOP
enumerator RTK_BT_LE_AUDIO_INITIATOR_DISC
enumerator RTK_BT_LE_AUDIO_INITIATOR_BROADCAST_START
enumerator RTK_BT_LE_AUDIO_INITIATOR_BROADCAST_STOP
enumerator RTK_BT_LE_AUDIO_INITIATOR_NOT_SUPPORT
enum rtk_bt_le_audio_acceptor_status_t

Values:

enumerator RTK_BT_LE_AUDIO_ACCEPTOR_DISABLE
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_ENABLE
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_CONN
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_TX_READY
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_DISC
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_START
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_STOP
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_BIG_SYNC
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_BIG_SYNC_TERMINATE
enumerator RTK_BT_LE_AUDIO_ACCEPTOR_NOT_SUPPORT
enum rtk_bt_le_audio_commander_status_t

Values:

enumerator RTK_BT_LE_AUDIO_COMMANDER_DISABLE
enumerator RTK_BT_LE_AUDIO_COMMANDER_ENABLE
enumerator RTK_BT_LE_AUDIO_COMMANDER_CONN
enumerator RTK_BT_LE_AUDIO_COMMANDER_DISC
enumerator RTK_BT_LE_AUDIO_COMMANDER_NOT_SUPPORT
enum rtk_bt_le_audio_broadcast_source_state_t

Bluetooth LE audio state for broadcast source.

rtk_bt_le_audio_broadcast_source_state_t

Values:

enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_IDLE
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_CONFIGURED_STARTING
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_CONFIGURED
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_CONFIGURED_STOPPING
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_STREAMING_STARTING
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_STREAMING
enumerator RTK_BT_LE_AUDIO_BROADCAST_SOURCE_STATE_STREAMING_STOPPING
enum rtk_bt_le_audio_iso_data_path_direction_t

Specify which directions have been configured.Or use the combination of macro definitions to specify which directions are to have the data path removed.

rtk_bt_le_audio_iso_data_path_direction_t

Values:

enumerator RTK_BLE_AUDIO_ISO_DATA_PATH_TX

Input (Host to Controller). Source or Tx

enumerator RTK_BLE_AUDIO_ISO_DATA_PATH_RX

Output (Controller to Host). Sink or Rx

enum rtk_bt_le_audio_ascs_ase_state_t

enum of LE audio ascs ase state

rtk_bt_le_audio_ascs_ase_state_t

Values:

enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_IDLE
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_CODEC_CONFIGURED
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_QOS_CONFIGURED
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_ENABLING
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_STREAMING
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_DISABLING
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_RELEASING
enumerator RTK_BLE_AUDIO_ASCS_ASE_STATE_UNKNOWN
enum rtk_bt_le_audio_framed_t

enum of LE audio support unframed or framed iso pdu

rtk_bt_le_audio_framed_t

Values:

enumerator RTK_BLE_AUDIO_UNFRAMED
enumerator RTK_BLE_AUDIO_FRAMED
enum rtk_bt_le_audio_ascs_ase_target_latency_t

enum of LE audio ascs ase target latency

rtk_bt_le_audio_ascs_ase_target_latency_t

Values:

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_LOWER_LATENCY

Target low latency.

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_BALANCED

Target balanced latency and reliability.

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_HIGHER_RELIABILITY

Target high reliability.

enum rtk_bt_le_audio_ascs_ase_target_phy_t

enum of LE audio ascs ase target phy

rtk_bt_le_audio_ascs_ase_target_phy_t

Values:

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_PHY_1M

LE 1M PHY.

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_PHY_2M

LE 2M PHY.

enumerator RTK_BLE_AUDIO_ASCS_ASE_TARGET_PHY_CODED

LE Coded PHY.

enum rtk_bt_le_audio_group_dev_msg_type_t

Bluetooth LE audio group device message type.

rtk_bt_le_audio_group_dev_msg_type_t

Values:

enumerator RTK_BT_LE_AUDIO_GROUP_MSG_DEV_CONN
enumerator RTK_BT_LE_AUDIO_GROUP_MSG_DEV_DISCONN
enumerator RTK_BT_LE_AUDIO_GROUP_MSG_DEV_BOND_REMOVE
enumerator RTK_BT_LE_AUDIO_GROUP_MSG_DEV_BOND_CLEAR
enumerator RTK_BT_LE_AUDIO_GROUP_MSG_DEV_EMPTY
enum rtk_bt_le_audio_isoch_data_pkt_status_t

Packet Status Flag in Bluetooth LE HCI ISO Datat packet sent by the Controller.

rtk_bt_le_iso_isoch_data_pkt_status_t

Values:

enumerator RTK_BT_LE_ISO_ISOCH_DATA_PKT_STATUS_VALID_DATA

Valid data. The complete SDU was received correctly.

enumerator RTK_BT_LE_ISO_ISOCH_DATA_PKT_STATUS_POSSIBLE_ERROR_DATA

Possibly invalid data. The contents of the SDU may contain errors or part of the SDU may be missing. This is reported as "data with possible errors".

enumerator RTK_BT_LE_ISO_ISOCH_DATA_PKT_STATUS_LOST_DATA

Part(s) of the SDU were not received correctly. This is reported as "lost data".

enum rtk_bt_le_audio_stream_state_t

Bluetooth LE audio stream state.

rtk_bt_le_audio_stream_state_t

Values:

enumerator RTK_BT_LE_AUDIO_STREAM_STATE_IDLE
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_IDLE_CONFIGURED
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_CONFIGURED
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_STARTING
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_STREAMING
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_PARTIAL_STREAMING
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_STOPPING
enumerator RTK_BT_LE_AUDIO_STREAM_STATE_RELEASING
enum rtk_bt_le_audio_location_t

Define Audio Locations.

rtk_bt_le_audio_location_t

Values:

enumerator RTK_BT_LE_AUDIO_LOCATION_MONO
enumerator RTK_BT_LE_AUDIO_LOCATION_FL
enumerator RTK_BT_LE_AUDIO_LOCATION_FR
enumerator RTK_BT_LE_AUDIO_LOCATION_FC
enumerator RTK_BT_LE_AUDIO_LOCATION_LFE1
enumerator RTK_BT_LE_AUDIO_LOCATION_BL
enumerator RTK_BT_LE_AUDIO_LOCATION_BR
enumerator RTK_BT_LE_AUDIO_LOCATION_FLC
enumerator RTK_BT_LE_AUDIO_LOCATION_FRC
enumerator RTK_BT_LE_AUDIO_LOCATION_BC
enumerator RTK_BT_LE_AUDIO_LOCATION_LFE2
enumerator RTK_BT_LE_AUDIO_LOCATION_SIL
enumerator RTK_BT_LE_AUDIO_LOCATION_SIR
enumerator RTK_BT_LE_AUDIO_LOCATION_TPFL
enumerator RTK_BT_LE_AUDIO_LOCATION_TPFR
enumerator RTK_BT_LE_AUDIO_LOCATION_TPFC
enumerator RTK_BT_LE_AUDIO_LOCATION_TPC
enumerator RTK_BT_LE_AUDIO_LOCATION_TPBL
enumerator RTK_BT_LE_AUDIO_LOCATION_TPBR
enumerator RTK_BT_LE_AUDIO_LOCATION_TPSIL
enumerator RTK_BT_LE_AUDIO_LOCATION_TPSIR
enumerator RTK_BT_LE_AUDIO_LOCATION_TPBC
enumerator RTK_BT_LE_AUDIO_LOCATION_BTFC
enumerator RTK_BT_LE_AUDIO_LOCATION_BTFL
enumerator RTK_BT_LE_AUDIO_LOCATION_BTFR
enumerator RTK_BT_LE_AUDIO_LOCATION_FLW
enumerator RTK_BT_LE_AUDIO_LOCATION_FRW
enumerator RTK_BT_LE_AUDIO_LOCATION_LS
enumerator RTK_BT_LE_AUDIO_LOCATION_RS
enumerator RTK_BT_LE_AUDIO_LOCATION_RFU
enumerator RTK_BT_LE_AUDIO_LOCATION_MASK
enum rtk_bt_le_audio_big_sync_state_t

Bluetooth LE audio paramsters for big sync.

rtk_bt_le_audio_big_sync_state_t

Values:

enumerator RTK_BT_LE_AUDIO_BIG_SYNC_STATE_TERMINATED

Terminated.

enumerator RTK_BT_LE_AUDIO_BIG_SYNC_STATE_SYNCHRONIZING

Start synchronizing to a BIG. A temporary state, haven't received the result.

enumerator RTK_BT_LE_AUDIO_BIG_SYNC_STATE_SYNCHRONIZED

Synchronized to a BIG.

enumerator RTK_BT_LE_AUDIO_BIG_SYNC_STATE_TERMINATING

Terminate synchronization to the BIG. A temporary state, haven't received the result.

enum rtk_bt_le_audio_pa_sync_state_t

Bluetooth LE audio pa sync state.

rtk_bt_le_audio_pa_sync_state_t

Values:

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_TERMINATED

Terminated.

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_SYNCHRONIZING_SCAN_IDLE

Start synchronizing when extended scanning is disabled. A temporary state, haven't received the result.

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_SYNCHRONIZING_WAIT_SCANNING

No attempt to synchronize will take place while extended scanning is disabled.

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_SYNCHRONIZING

Start synchronizing when extended scanning is enabled.

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_SYNCHRONIZED

Synchronized.

enumerator RTK_BT_LE_AUDIO_PA_SYNC_STATE_TERMINATING

Terminate synchronization. A temporary state, haven't received the result.

enum rtk_bt_le_audio_bass_past_type_t

Bluetooth LE audio BASS PAST TYPE.

rtk_bt_le_audio_bass_past_type_t

Values:

enumerator RTK_BT_LE_AUDIO_BASS_PAST_BY_LOCAL_SRC

Initiating PAST for local PA

enumerator RTK_BT_LE_AUDIO_BASS_PAST_BY_REMOTE_SRC

Initiating PAST for remote PA

enum rtk_bt_le_audio_bass_brs_big_encrption_t

Bluetooth LE audio broadcast receive state BIG_Encryption field.

rtk_bt_le_audio_bass_brs_big_encrption_t

Values:

enumerator RTK_BT_LE_AUDIO_BASS_BRS_BIG_NOT_ENCRYPTED

Not encrypted

enumerator RTK_BT_LE_AUDIO_BASS_BRS_BIG_BROADCAST_CODE_REQUIRED

Broadcast_Code required

enumerator RTK_BT_LE_AUDIO_BASS_BRS_BIG_DECRYPTING

Decrypting

enumerator RTK_BT_LE_AUDIO_BASS_BRS_BIG_BAD_CODE

Bad_Code (incorrect encryption key)

enum rtk_bt_le_audio_bap_param_config_type_t

Bluetooth LE audio bap config type.

rtk_bt_le_audio_bap_param_config_type_t

Values:

enumerator RTK_BT_LE_AUDIO_BAP_BROADCAST_SOURCE_CONFIG

rtk_bt_le_audio_broadcast_source_config_t.

enumerator RTK_BT_LE_AUDIO_BAP_BROADCAST_CODE_CONFIG

broadcast_code.

enumerator RTK_BT_LE_AUDIO_BAP_ASE_QOS_CONFIG

rtk_bt_le_audio_unicast_ase_qos_t.

typedef void *rtk_bt_le_audio_group_handle_t

Bluetooth LE AUDIO group handle.

rtk_bt_le_audio_group_handle_t

typedef void *rtk_bt_le_audio_stream_session_handle_t

Bluetooth LE AUDIO stream session handle.

rtk_bt_le_audio_stream_session_handle_t

typedef void *rtk_bt_le_audio_device_handle_t

Bluetooth LE AUDIO device handle.

rtk_bt_le_audio_device_handle_t

typedef void *rtk_bt_le_audio_broadcast_source_handle_t

Bluetooth LE audio broadcast source handle.

rtk_bt_le_audio_broadcast_source_handle_t

typedef void *rtk_bt_le_audio_sync_handle_t

Bluetooth LE audio sync handle.

rtk_bt_le_audio_sync_handle_t

typedef void *rtk_bt_le_audio_base_data_mapping_t

Bluetooth LE audio base data mapping.

rtk_bt_le_audio_base_data_mapping_t

typedef rtk_bt_le_audio_ascs_cp_enable_ind_t rtk_bt_le_audio_ascs_cp_disable_ind_t

structure of LE audio ascs disable control point indication

rtk_bt_le_audio_ascs_cp_disable_ind_t

struct rtk_bt_le_audio_broadcast_source_config_t
#include <rtk_bt_bap.h>

Bluetooth LE audio param for config broadcast source.

Public Members

uint32_t primary_adv_interval_min
uint32_t primary_adv_interval_max

Minimum advertising interval for undirected and low duty cycle

directed advertising.

Range: 0x000020 to 0xFFFFFF

Time = N * 0.625 ms

Time Range: 20 ms to 10,485.759375 s

uint8_t primary_adv_channel_map

Maximum advertising interval for undirected and low duty cycle

directed advertising.

Range: 0x000020 to 0xFFFFFF

Time = N * 0.625 ms

Time Range: 20 ms to 10,485.759375 s

rtk_bt_le_addr_t own_addr

Advertising_Primary_Channel_Map

rtk_bt_le_adv_filter_t filter_policy

Own_Address_Type_and_Address

uint8_t tx_power

Advertising_Filter_Policy

rtk_bt_le_phy_prim_adv_t primary_adv_phy

Advertising_TX_Power: indicates max Tx power.

Range: -127 to +20

Units: dBm

0x7F: Host has no preference.

uint8_t secondary_adv_max_skip

Primary_Advertising_PHY

rtk_bt_le_phy_type_t secondary_adv_phy

Secondary_Advertising_Max_Skip

uint16_t periodic_adv_interval_min

Secondary_Advertising_PHY

uint16_t periodic_adv_interval_max

Minimum advertising interval for periodic advertising.

Must be different from periodic_adv_interval_max.

Range: 0x0006 to 0xFFFF

Time = N * 1.25 ms

Time Range: 7.5 ms to 81.91875 s

uint16_t periodic_adv_prop

Maximum advertising interval for periodic advertising.

Must be different from periodic_adv_interval_min.

Range: 0x0006 to 0xFFFF

Time = N * 1.25 ms

Time Range: 7.5 ms to 81.91875 s

struct rtk_bt_le_audio_bap_discovery_done_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio info for bap discovery all done indication.

rtk_bt_le_audio_bap_discovery_done_ind_t

Public Members

uint16_t conn_handle
bool pacs_is_found
uint8_t sink_pac_num
uint8_t source_pac_num
bool ascs_is_found
uint8_t sink_ase_num
uint8_t source_ase_num
bool bass_is_found
uint8_t brs_char_num
uint8_t group_idx
struct rtk_bt_le_audio_qos_cfg_preferred_t
#include <rtk_bt_bap.h>

Bluetooth LE audio qos cfg preferred item. see in BAP P86 and P111.

rtk_bt_le_audio_qos_cfg_preferred_t

Public Members

uint32_t sdu_interval
uint8_t framing
uint16_t max_sdu
uint8_t retransmission_number
uint16_t max_transport_latency
uint32_t presentation_delay
struct rtk_bt_le_audio_unicast_ase_qos_t
#include <rtk_bt_bap.h>

Bluetooth LE audio unicast ase qos.

rtk_bt_le_audio_unicast_ase_qos_t

Public Members

uint8_t phy
uint8_t retransmission_number
uint16_t max_sdu
struct rtk_bt_le_audio_bis_conn_handle_info_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bis connetion handle information.

rtk_bt_le_audio_bis_conn_handle_info_t

Public Members

uint8_t bis_idx

bis index

uint16_t bis_conn_handle

Connection handle of a BIS.

struct rtk_bt_le_audio_bis_conn_info_t
#include <rtk_bt_bap.h>

Public Members

void *sync_handle
uint16_t bis_conn_handle
uint8_t bis_idx
uint8_t path_direction
struct rtk_bt_le_audio_bass_cp_bis_info_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bass broadcast receive state characteristic subgroup info.

rtk_bt_le_audio_bass_cp_bis_info_t

Public Members

uint32_t bis_sync_state

BIS_Sync_State for the subgroup

uint8_t metadata_len
uint8_t *p_metadata
struct rtk_bt_le_audio_pa_sync_establish_t
#include <rtk_bt_bap.h>

Bluetooth LE audio paramsters for pa sync establish.

rtk_bt_le_audio_pa_sync_establish_t

Public Members

uint8_t options

rtk_bt_le_pa_sync_create_opt_t

uint8_t sync_cte_type

rtk_bt_le_pa_sync_cte_t

uint16_t skip

The maximum number of periodic advertising events that can be skipped after a successful receive. Range: 0x0000 to 0x01F3

uint16_t sync_timeout

Synchronization timeout for the periodic advertising train. Range: 0x000A to 0x4000 Time = N*10 ms Time Range: 100 ms to 163.84 s

struct rtk_bt_le_audio_bass_brs_data_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bass broadcast receive state characteristic data.

rtk_bt_le_audio_bass_brs_data_t

Public Members

bool brs_is_used
uint8_t source_id

Broadcast Receive State Field

rtk_bt_le_addr_t source_address
uint8_t source_adv_sid
uint8_t broadcast_id[RTK_BT_LE_AUDIO_BROADCAST_ID_LEN]
uint8_t pa_sync_state

rtk_bt_le_audio_pa_sync_state_t

uint8_t big_encryption

rtk_bt_le_audio_bass_brs_big_encrption_t

uint8_t bad_code[RTK_BT_LE_AUDIO_BROADCAST_CODE_LEN]
uint8_t num_subgroups
uint16_t bis_info_size
rtk_bt_le_audio_bass_cp_bis_info_t *p_cp_bis_info

rtk_bt_le_audio_bass_cp_bis_info_t

struct rtk_bt_le_audio_ascs_cis_conn_info_t
#include <rtk_bt_bap.h>

structure of LE audio cis connection information

rtk_bt_le_audio_ascs_cis_conn_info_t

Public Members

uint16_t conn_handle
uint16_t cis_conn_handle
uint8_t cig_id
uint8_t cis_id
struct rtk_bt_le_audio_cfg_codec_t
#include <rtk_bt_bap.h>

structure of LE audio codec config

rtk_bt_le_audio_codec_config_t

Public Members

uint16_t type_exist
uint8_t frame_duration
uint8_t sample_frequency
uint8_t codec_frame_blocks_per_sdu
uint16_t octets_per_codec_frame
uint32_t audio_channel_allocation
struct rtk_bt_le_audio_iso_chann_t
#include <rtk_bt_bap.h>

structure of LE audio iso channel struct

rtk_bt_le_audio_iso_chann_t

Public Members

void *p_iso_chann

iso channel handle

uint16_t iso_conn_handle
rtk_bt_le_audio_iso_data_path_direction_t path_direction

audio path direction

struct rtk_bt_le_audio_ascs_setup_data_path_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs setup data path indication

rtk_bt_le_audio_ascs_setup_data_path_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_id
rtk_bt_le_audio_iso_data_path_direction_t path_direction

rtk_bt_le_audio_iso_data_path_direction_t.

uint16_t cis_conn_handle

connection handle of the CIS

rtk_bt_le_audio_cfg_codec_t codec_cfg

rtk_bt_le_audio_cfg_codec_t

rtk_bt_le_audio_iso_chann_t iso_chann_t

iso channel struct

uint8_t dev_num

for tx path waiting all devices ready

struct rtk_bt_le_audio_ascs_remove_data_path_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs remove data path indication

rtk_bt_le_audio_ascs_remove_data_path_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_id
rtk_bt_le_audio_iso_data_path_direction_t path_direction

rtk_bt_le_audio_iso_data_path_direction_t.

uint16_t cis_conn_handle

connection handle of the CIS

struct rtk_bt_le_audio_ascs_ase_state_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs state

rtk_bt_le_audio_ascs_asc_state_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_id
uint8_t direction
rtk_bt_le_audio_ascs_ase_state_t ase_state

rtk_bt_le_audio_ascs_ase_state_t

struct rtk_bt_le_audio_ascs_cp_codec_cfg_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs codec config control point indication

rtk_bt_le_audio_ascs_cp_codec_cfg_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_id
rtk_bt_le_audio_cfg_codec_t codec_cfg

rtk_bt_le_audio_cfg_codec_t

struct rtk_bt_le_audio_ascs_cp_qos_cfg_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs qos config control point indication

rtk_bt_le_audio_ascs_cp_qos_config_t

Public Members

uint16_t conn_handle
uint8_t ase_id
uint8_t cig_id
uint8_t cis_id
uint8_t framing
uint8_t phy
uint8_t retransmission_number
uint16_t max_sdu
uint16_t max_transport_latency
uint32_t sdu_interval
uint32_t presentation_delay
struct rtk_bt_le_audio_ascs_cp_enable_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs enable control point indication

rtk_bt_le_audio_ascs_cp_enable_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_num
uint8_t ase_id[RTK_BT_LE_ASCS_AES_CHAR_NUM]
struct rtk_bt_le_audio_ascs_prefer_qos_data_t
#include <rtk_bt_bap.h>

structure of LE audio ascs prefer qos data

rtk_bt_le_audio_ascs_prefer_qos_data_t

Public Members

uint8_t supported_framing
uint8_t preferred_phy
uint8_t preferred_retrans_number
uint16_t max_transport_latency
uint32_t presentation_delay_min
uint32_t presentation_delay_max
uint32_t preferred_presentation_delay_min
uint32_t preferred_presentation_delay_max
struct rtk_bt_le_audio_ascs_get_prefer_qos_ind_t
#include <rtk_bt_bap.h>

structure of LE audio ascs get prefer qos indication

rtk_bt_le_audio_ascs_get_prefer_qos_ind_t

Public Members

uint16_t conn_handle
uint8_t ase_id
uint8_t direction
rtk_bt_le_audio_cfg_codec_t codec_cfg
rtk_bt_le_audio_ascs_ase_target_latency_t target_latency
rtk_bt_le_audio_ascs_ase_target_phy_t target_phy
rtk_bt_le_audio_ascs_prefer_qos_data_t *p_prefer_qos_data
struct rtk_bt_le_audio_bass_pa_sync_param_t
#include <rtk_bt_bap.h>

Public Members

uint8_t pa_sync_options

rtk_bt_le_pa_sync_create_opt_t

uint16_t pa_sync_skip

The maximum number of periodic advertising events that can be skipped after a successful receive. Range: 0x0000 to 0x01F3

uint16_t pa_sync_timeout

Synchronization timeout for the periodic advertising train. Range: 0x000A to 0x4000 Time = N*10 ms Time Range: 100 ms to 163.84 s

uint16_t past_timeout

Synchronization timeout for PAST. Range: 0x000A to 0x4000 Time = N*10 ms Time Range: 100 ms to 163.84 s

struct rtk_bt_le_audio_bass_get_pa_sync_param_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bass set pa sync parameter.

rtk_bt_le_audio_bass_get_pa_sync_param_ind_t

Public Members

rtk_bt_le_audio_sync_handle_t sync_handle

Synchronization handle

uint8_t source_id
bool is_past
uint16_t pa_interval
rtk_bt_le_audio_bass_pa_sync_param_t *p_pa_sync_param

rtk_bt_le_audio_bass_pa_sync_param_t

struct rtk_bt_le_audio_bass_big_sync_param_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bass big sync param.

rtk_bt_le_audio_bass_big_sync_param_t

Public Members

uint8_t big_mse

The maximum number of subevents that a Controller should use to receive data payloads in each interval for a BIS. 0x00: The Controller can schedule reception of any number of subevents up to NSE. 0x01 to 0x1F: Maximum number of subevents that should be used to receive data payloads in each BIS event

uint16_t big_sync_timeout

Specify the maximum permitted time between successful receptions of BIS PDUs. Range: 0x000A to 0x4000 Time = N*10 ms Time Range: 100 ms to 163.84 s

struct rtk_bt_le_audio_bass_get_big_sync_param_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bass set big sync parameter.

rtk_bt_le_audio_bass_get_big_sync_param_ind_t

Public Members

rtk_bt_le_audio_sync_handle_t sync_handle

Synchronization handle

uint8_t source_id
rtk_bt_le_audio_bass_big_sync_param_t *p_big_sync_param

rtk_bt_le_audio_bass_big_sync_param_t

struct rtk_bt_le_audio_pa_sync_state_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio pa sync indication infomation.

rtk_bt_le_audio_pa_sync_state_ind_t

Public Members

uint8_t cause

process result

rtk_bt_le_audio_sync_handle_t sync_handle

Synchronization handle

uint8_t sync_state

PA Synchronization state. rtk_bt_le_audio_pa_sync_state_t

uint16_t action

PA Synchronization action. rtk_bt_le_audio_pa_action_t.

struct rtk_bt_le_audio_big_setup_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio setup data path indication infomation.

rtk_bt_le_audio_big_setup_data_path_ind_t

Public Members

uint8_t bis_idx

bis index

uint16_t bis_conn_handle

bis connection handle

uint16_t cause

result

rtk_bt_le_audio_iso_chann_t iso_chann_t

iso channel struct

rtk_bt_le_audio_cfg_codec_t codec_t

codec config

rtk_bt_le_audio_sync_handle_t sync_handle

Synchronization handle

struct rtk_bt_le_audio_big_remove_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio remove data path indication infomation.

rtk_bt_le_audio_big_remove_data_path_ind_t

Public Members

uint8_t bis_idx

bis index

uint16_t bis_conn_handle

bis connection handle

uint16_t cause

result

rtk_bt_le_audio_iso_data_path_direction_t path_direction

audio path direction

rtk_bt_le_audio_sync_handle_t sync_handle

Synchronization handle

struct rtk_bt_le_audio_broadcast_source_state_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio broadcast source state indication.

rtk_bt_le_audio_broadcast_source_state_ind_t

Public Members

uint8_t cause

process result

rtk_bt_le_audio_broadcast_source_handle_t broadcast_source_handle

Broadcast source handle

uint8_t broadcast_source_state

Broadcast source state. rtk_bt_le_audio_broadcast_source_state_t

struct rtk_bt_le_audio_bap_big_setup_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bap big setup data path indication.

rtk_bt_le_audio_bap_big_setup_data_path_ind_t

Public Members

uint8_t bis_idx

bis index

uint16_t bis_conn_handle

Connection handle of a BIS.

uint16_t cause
rtk_bt_le_audio_iso_chann_t iso_chann_t

iso channel struct

rtk_bt_le_audio_cfg_codec_t codec_t

codec config

struct rtk_bt_le_audio_bap_big_remove_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bap big remove data path indication.

rtk_bt_le_audio_bap_big_remove_data_path_ind_t

Public Members

uint8_t bis_idx

bis index

uint16_t bis_conn_handle

Connection handle of a BIS.

uint16_t cause
rtk_bt_le_audio_iso_data_path_direction_t path_direction

audio path direction

struct rtk_bt_le_audio_group_dev_msg_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio group msg device indication.

rtk_bt_le_audio_group_dev_msg_ind_t

struct rtk_bt_le_audio_unicast_session_qos_t
#include <rtk_bt_bap.h>

Bluetooth LE audio unicast session qos.

rtk_bt_le_audio_unicast_session_qos_t

Public Members

uint8_t sca
uint8_t packing
uint8_t framing
uint32_t sdu_interval_m_s
uint32_t sdu_interval_s_m
uint16_t latency_m_s
uint16_t latency_s_m
uint32_t sink_presentation_delay
uint32_t source_presentation_delay
struct rtk_bt_le_audio_bap_setup_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bap setup data path indication.

rtk_bt_le_audio_bap_setup_data_path_ind_t

Public Members

rtk_bt_le_audio_group_handle_t group_handle

group handle. rtk_bt_le_audio_group_handle_t

rtk_bt_le_audio_stream_session_handle_t stream_session_handle

stream session handle. rtk_bt_le_audio_stream_session_handle_t

rtk_bt_le_audio_device_handle_t device_handle

device handle. rtk_bt_le_audio_device_handle_t

uint8_t ase_id
uint8_t path_direction

path direction. rtk_bt_le_audio_iso_data_path_direction_t

uint16_t cis_conn_handle

connection handle of the CIS

rtk_bt_le_audio_cfg_codec_t codec_parsed_data

rtk_bt_le_audio_cfg_codec_t

rtk_bt_le_audio_iso_chann_t iso_chann_t

iso channel struct

uint8_t dev_num

for tx path waiting all devices

struct rtk_bt_le_audio_bap_remove_data_path_ind_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bap remove data path indication.

rtk_bt_le_audio_bap_remove_data_path_ind_t

Public Members

rtk_bt_le_audio_group_handle_t group_handle

group handle. rtk_bt_le_audio_group_handle_t

rtk_bt_le_audio_stream_session_handle_t stream_session_handle

stream session handle. rtk_bt_le_audio_stream_session_handle_t

rtk_bt_le_audio_device_handle_t device_handle

device handle. rtk_bt_le_audio_device_handle_t

uint8_t ase_id
uint8_t path_direction

path direction. rtk_bt_le_audio_iso_data_path_direction_t

uint16_t cis_conn_handle

connection handle of the CIS

uint16_t cause
struct rtk_bt_le_audio_direct_iso_data_ind_t
#include <rtk_bt_bap.h>

Indication of ISO Datat packet with cb_type RTK_BT_LE_ISO_EVT_DATA_RECEIVE_IND .

rtk_bt_le_iso_direct_iso_data_ind_t

Public Members

uint16_t iso_conn_handle

Connection handle of the ISO.

rtk_bt_le_audio_isoch_data_pkt_status_t pkt_status_flag

rtk_bt_le_audio_isoch_data_pkt_status_t.

uint16_t offset

Offset from start of the SDU to p_buf. e.g. p_buf + offset indicates the start of the SDU.

uint16_t iso_sdu_len

Length of the SDU.

uint16_t pkt_seq_num

The sequence number of the SDU.

bool ts_flag

Indicates whether contains time_stamp. True: contain time_stamp. False: not contain time_stamp.

uint32_t time_stamp

A time in microseconds. time_stamp is valid when ts_flag is True.

uint16_t buf_len

indicate buffer length.

uint8_t *p_buf

Point the buffer that needs to release.

struct rtk_bt_le_audio_ext_scan_config_t
#include <rtk_bt_bap.h>

Extend scan config struct.

rtk_bt_le_audio_ext_scan_config_t

Public Members

rtk_bt_le_ext_scan_param_t *p_param

extended scan parameter

bool enable

start or stop ext scan

struct rtk_bt_le_audio_iso_data_send_info_t
#include <rtk_bt_bap.h>

Bluetooth LE audio mgr data send info definition .

rtk_bt_le_audio_iso_data_send_info_t

Public Members

uint16_t iso_conn_handle

connection handle of the ISO

bool ts_flag

indicates whether contains time_stamp, true: contain time_stamp; false: not contain time_stamp

uint32_t time_stamp

a time in microseconds. time_stamp is used when ts_flag is True

uint16_t pkt_seq_num

sequence number of the SDU

uint16_t data_len

length of the SDU to be sent

uint8_t *p_data

point to data to be sent

struct rtk_bt_le_audio_unicast_client_start_t
#include <rtk_bt_bap.h>

Bluetooth LE audio unicast client start struct.

rtk_bt_le_audio_unicast_client_start_t

Public Members

uint8_t group_idx
uint16_t sink_context
uint16_t source_context
struct rtk_bt_le_audio_unicast_client_stop_t
#include <rtk_bt_bap.h>

Bluetooth LE audio unicast client stop struct.

rtk_bt_le_audio_unicast_client_stop_t

Public Members

uint8_t group_idx
uint32_t cis_timeout_ms
union rtk_bt_le_audio_bap_param_config_t
#include <rtk_bt_bap.h>

Bluetooth LE audio bap parameter config struct .

rtk_bt_le_audio_bap_param_config_t

Public Members

rtk_bt_le_audio_bap_param_config_type_t cfg_type
rtk_bt_le_audio_broadcast_source_config_t brs_config
uint8_t broadcast_code[RTK_BT_LE_AUDIO_BROADCAST_CODE_LEN]
rtk_bt_le_audio_unicast_ase_qos_t bap_ase_qos
union rtk_bt_le_audio_bap_param_config_t::[anonymous] cfg
struct rtk_bt_le_audio_broadcast_source_create_param_t
#include <rtk_bt_bap.h>

Bluetooth LE audio broadcast source create parameter.

rtk_bt_le_audio_broadcast_source_create_param_t

Public Members

rtk_bt_le_audio_codec_cfg_item_t cfg_codec_index
rtk_bt_le_audio_qos_cfg_type_t cfg_qos_type
bool manual_qos_flag

this flag is used for manual qos

rtk_bt_le_audio_qos_cfg_preferred_t *p_manual_qos_cfg

manual qos parameter structure pointer

rtk_bt_le_addr_type_t local_addr_type
bool encryption
uint16_t stream_audio_contexts
struct rtk_bt_le_audio_broadcast_sync_create_param_t
#include <rtk_bt_bap.h>

Bluetooth LE audio broadcast sink pa sync create parameter.

rtk_bt_le_audio_broadcast_sync_create_param_t

Public Members

rtk_bt_le_addr_t adv_addr
uint8_t adv_sid
uint8_t broadcast_id[RTK_BT_LE_AUDIO_BROADCAST_ID_LEN]
struct rtk_bt_le_audio_broadcast_assistant_remote_scan_param_t
#include <rtk_bt_bap.h>

Bluetooth LE audio broadcast assistant remote scan parameter.

rtk_bt_le_audio_broadcast_assisatant_remote_scan_param_t

Public Members

bool enable
uint8_t group_idx
struct rtk_bt_le_audio_broadcast_assistant_reception_act_param_t
#include <rtk_bt_bap.h>

Bluetooth LE audio broadcast assistant reception action parameter.

rtk_bt_le_audio_broadcast_assistant_reception_act_param_t

Public Members

rtk_bt_le_addr_t addr
uint8_t group_idx

BT CAP Types

enum rtk_bt_le_audio_cap_role_t

Bluetooth LE AUDIO CAP Role.

Values:

enumerator RTK_BT_LE_AUDIO_CAP_ROLE_UNKNOWN
enumerator RTK_BT_LE_AUDIO_CAP_ROLE_INITIATOR

CAP Initiator.

enumerator RTK_BT_LE_AUDIO_CAP_ROLE_ACCEPTOR

CAP Acceptor.

enumerator RTK_BT_LE_AUDIO_CAP_ROLE_COMMANDER

CAP Commander.

enum rtk_bt_le_audio_cap_param_config_type_t

Bluetooth LE audio cap config type.

Values:

enumerator RTK_BT_LE_AUDIO_CAP_CSIS_SIRK_CONFIG

rtk_bt_le_audio_broadcast_source_config_t.

struct rtk_bt_le_audio_cap_discovery_done_ind_t
#include <rtk_bt_cap.h>

Bluetooth LE audio info for cap discovery done indication. Common Audio Profile Client Discover Service Result.

Public Members

uint16_t conn_handle
bool load_from_ftl

Whether the service table is loaded from FTL.

bool cas_is_found

Whether to find CAS.

bool cas_inc_csis

Whether the CAS instance include the CSIS instance.

bool vcs_is_found

Whether to find VCS.

bool mics_is_found

Whether to find MICS.

union rtk_bt_le_audio_cap_param_config_t
#include <rtk_bt_cap.h>

Bluetooth LE audio cap parameter config struct .

Public Members

rtk_bt_le_audio_cap_param_config_type_t cfg_type
uint8_t csis_sirk[RTK_BT_LE_CSIS_SIRK_LEN]
union rtk_bt_le_audio_cap_param_config_t::[anonymous] cfg

BT GMAP Types

enum rtk_bt_le_audio_gmap_role_t

Define BT GMAP role.

Values:

enumerator RTK_BT_LE_AUDIO_GMAP_ROLE_UNKNOWN
enumerator RTK_BT_LE_AUDIO_GMAP_ROLE_UGG

GMAP Unicast Game Gateway.

enumerator RTK_BT_LE_AUDIO_GMAP_ROLE_UGT

GMAP Unicast Game Terminal.

enumerator RTK_BT_LE_AUDIO_GMAP_ROLE_BGS

GMAP Broadcast Game Sender.

enumerator RTK_BT_LE_AUDIO_GMAP_ROLE_BGR

GMAP Broadcast Game Receiver.

struct rtk_bt_le_audio_gmas_read_ind_t
#include <rtk_bt_gmap.h>

gmas client read result indication structure.

Public Members

uint16_t conn_handle
uint16_t cid
uint16_t char_uuid
struct rtk_bt_le_audio_gmas_client_dis_t
#include <rtk_bt_gmap.h>

gmas client discovery result structure.

Public Members

uint16_t conn_handle
bool is_found
bool load_from_ftl
struct rtk_bt_le_audio_gmas_client_read_role_result_t
#include <rtk_bt_gmap.h>

gmas client read role result structure.

Public Members

uint16_t conn_handle
rtk_bt_le_audio_gmap_role_t gmap_role
uint16_t cause
struct rtk_bt_le_audio_gmas_client_read_features_t
#include <rtk_bt_gmap.h>

gmas client read features structure.

Public Members

uint16_t conn_handle
uint16_t char_uuid
struct rtk_bt_le_audio_gmas_client_read_features_result_t
#include <rtk_bt_gmap.h>

gmas client read features result structure.

Public Members

uint16_t conn_handle
uint16_t char_uuid
uint8_t features
uint16_t cause

BT TMAP Types

enum rtk_bt_le_audio_tmap_role_t

Bluetooth LE AUDIO TMAP Role.

Values:

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_UNKNOWN
enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_CG

TMAP Call Gateway.

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_CT

TMAP Call Terminal.

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_UMS

TMAP Unicast Media Sender.

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_UMR

TMAP Unicast Media Receiver.

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_BMS

TMAP Broadcast Media Sender.

enumerator RTK_BT_LE_AUDIO_TMAP_ROLE_BMR

TMAP Broadcast Media Receiver.

struct rtk_bt_le_audio_tmas_client_discovery_done_ind_t
#include <rtk_bt_tmap.h>

Bluetooth LE audio TMAS client discovery done indication.

Public Members

uint16_t conn_handle

connect handle.

bool is_found

Whether to find service.

bool load_from_ftl

Whether the service table is loaded from FTL.

struct rtk_bt_le_audio_tmas_read_role_result_t
#include <rtk_bt_tmap.h>

Bluetooth LE audio TMAS client read TMAP role result.

Public Members

uint16_t conn_handle
uint16_t role

rtk_bt_le_audio_tmap_role_t

uint16_t cause

BT LE GAP Types

enum rtk_bt_le_appearance_t

Bluetooth LE device appearance definition.

Values:

enumerator RTK_BT_LE_GAP_APPEARANCE_UNKNOWN

0x0000

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_PHONE

0x0040

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_COMPUTER

0x0080

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_WATCH

0x00C0

enumerator RTK_BT_LE_GAP_APPEARANCE_SPORTS_WATCH

0x00C1

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_CLOCK

0x0100

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_DISPLAY

0x0140

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_REMOTE

0x0180

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_EYEGLASSES

0x01C0

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_TAG

0x0200

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_KEYRING

0x0240

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_MEDIA_PLAYER

0x0280

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_BARCODE_SCANNER

0x02C0

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_THERMOMETER

0x0300

enumerator RTK_BT_LE_GAP_APPEARANCE_THERMOMETER_EAR

0x0301

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_HEART_RATE

0x0340

enumerator RTK_BT_LE_GAP_APPEARANCE_HEART_RATE_BELT

0x0341

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_BLOOD_PRESSURE

0x0380

enumerator RTK_BT_LE_GAP_APPEARANCE_BLOOD_PRESSURE_ARM

0x0381

enumerator RTK_BT_LE_GAP_APPEARANCE_BLOOD_PRESSURE_WRIST

0x0382

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_HID

0x03C0

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_KEYBOARD

0x03C1

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_MOUSE

0x03C2

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_JOYSTICK

0x03C3

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_GAMEPAD

0x03C4

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_DIGITIZER_TABLET

0x03C5

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_CARD_READER

0x03C6

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_DIGITAL_PEN

0x03C7

enumerator RTK_BT_LE_GAP_APPEARANCE_HID_BARCODE_SCANNER

0x03C8

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_GLUCOSE

0x0400

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_WALKING

0x0440

enumerator RTK_BT_LE_GAP_APPEARANCE_WALKING_IN_SHOE

0x0441

enumerator RTK_BT_LE_GAP_APPEARANCE_WALKING_ON_SHOE

0x0442

enumerator RTK_BT_LE_GAP_APPEARANCE_WALKING_ON_HIP

0x0443

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_CYCLING

0x0480

enumerator RTK_BT_LE_GAP_APPEARANCE_CYCLING_COMPUTER

0x0481

enumerator RTK_BT_LE_GAP_APPEARANCE_CYCLING_SPEED

0x0482

enumerator RTK_BT_LE_GAP_APPEARANCE_CYCLING_CADENCE

0x0483

enumerator RTK_BT_LE_GAP_APPEARANCE_CYCLING_POWER

0x0484

enumerator RTK_BT_LE_GAP_APPEARANCE_CYCLING_SPEED_CADENCE

0x0485

enumerator RTK_BT_LE_GAP_APPEARANCE_EARBUD

0x0941

enumerator RTK_BT_LE_GAP_APPEARANCE_HEADSET

0x0942

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_PULSE_OXIMETER

0x0C40

enumerator RTK_BT_LE_GAP_APPEARANCE_PULSE_OXIMETER_FINGERTIP

0x0C41

enumerator RTK_BT_LE_GAP_APPEARANCE_PULSE_OXIMETER_WRIST

0x0C42

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_WEIGHT

0x0C80

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_PERSONAL_MOBILITY_DEVICE

0x0CC0

enumerator RTK_BT_LE_GAP_APPEARANCE_POWERED_WHEELCHAIR

0x0CC1

enumerator RTK_BT_LE_GAP_APPEARANCE_MOBILITY_SCOOTER

0x0CC2

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_CONTINUOUS_GLUCOSE_MONITOR

0x0D00

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_INSULIN_PUMP

0x0D40

enumerator RTK_BT_LE_GAP_APPEARANCE_INSULIN_PUMP_DURABLE_PUMP

0x0D41

enumerator RTK_BT_LE_GAP_APPEARANCE_INSULIN_PUMP_PATCH_PUMP

0x0D44

enumerator RTK_BT_LE_GAP_APPEARANCE_INSULIN_PEN

0x0D48

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_MEDICATION_DELIVERY

0x0D80

enumerator RTK_BT_LE_GAP_APPEARANCE_GENERIC_OUTDOOR_SPORTS

0x1440

enumerator RTK_BT_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_LOCATION

0x1441

enumerator RTK_BT_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_LOCATION_AND_NAV

0x1442

enumerator RTK_BT_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_LOCATION_POD

0x1443

enumerator RTK_BT_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_LOCATION_POD_AND_NAV

0x1444

enum rtk_bt_le_gap_ad_type_t

Bluetooth ble gap advertising data type definition.

Values:

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS

0x01, The Flags data type contains one bit Boolean flags.

enumerator RTK_BT_LE_GAP_ADTYPE_16BIT_MORE

0x02, Service: More 16-bit UUIDs available

enumerator RTK_BT_LE_GAP_ADTYPE_16BIT_COMPLETE

0x03, Service: Complete list of 16-bit UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_32BIT_MORE

0x04, Service: More 32-bit UUIDs available

enumerator RTK_BT_LE_GAP_ADTYPE_32BIT_COMPLETE

0x05, Service: Complete list of 32-bit UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_128BIT_MORE

0x06, Service: More 128-bit UUIDs available

enumerator RTK_BT_LE_GAP_ADTYPE_128BIT_COMPLETE

0x07, Service: Complete list of 128-bit UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_LOCAL_NAME_SHORT

0x08, Shortened local name

enumerator RTK_BT_LE_GAP_ADTYPE_LOCAL_NAME_COMPLETE

0x09, Complete local name

enumerator RTK_BT_LE_GAP_ADTYPE_POWER_LEVEL

0x0A, TX Power Level: = 0xXX: -127 to +127 dBm

enumerator RTK_BT_LE_GAP_ADTYPE_OOB_CLASS_OF_DEVICE

0x0D, Simple Pairing OOB Tag: Class of device (3 octets)

enumerator RTK_BT_LE_GAP_ADTYPE_OOB_SIMPLE_PAIRING_HASHC

0x0E, Simple Pairing OOB Tag: Simple Pairing Hash C (16 octets)

enumerator RTK_BT_LE_GAP_ADTYPE_OOB_SIMPLE_PAIRING_RANDR

0x0F, Simple Pairing OOB Tag: Simple Pairing Randomizer R (16 octets)

enumerator RTK_BT_LE_GAP_ADTYPE_SM_TK

0x10, Security Manager TK Value

enumerator RTK_BT_LE_GAP_ADTYPE_SM_OOB_FLAG

0x11, Secutiry Manager OOB Flags

enumerator RTK_BT_LE_GAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE

0x12, Min and Max values of the connection interval (2 octets Min, 2 octets Max) (0xFFFF indicates no conn interval min or max)

enumerator RTK_BT_LE_GAP_ADTYPE_SIGNED_DATA

0x13, Signed Data field

enumerator RTK_BT_LE_GAP_ADTYPE_SERVICES_LIST_16BIT

0x14, Service Solicitation: list of 16-bit Service UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_SERVICES_LIST_128BIT

0x15, Service Solicitation: list of 128-bit Service UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_SERVICE_DATA

0x16, Service Data

enumerator RTK_BT_LE_GAP_ADTYPE_PUBLIC_TGT_ADDR

0x17, Public Target Address

enumerator RTK_BT_LE_GAP_ADTYPE_RANDOM_TGT_ADDR

0x18, Random Target Address

enumerator RTK_BT_LE_GAP_ADTYPE_APPEARANCE

0x19, Appearance

enumerator RTK_BT_LE_GAP_ADTYPE_ADV_INTERVAL

0x1A, Advertising Interval

enumerator RTK_BT_LE_GAP_ADTYPE_LE_BT_ADDR

0x1B, LE Bluetooth Device Address

enumerator RTK_BT_LE_GAP_ADTYPE_LE_ROLE

0x1C, LE Role

enumerator RTK_BT_LE_GAP_ADTYPE_SP_HASH_C256

0x1D, Simple Pairing Hash C-256

enumerator RTK_BT_LE_GAP_ADTYPE_SP_RAND_R256

0x1E, Simple Pairing Randomizer R-256

enumerator RTK_BT_LE_GAP_ADTYPE_LIST_32BIT_SILI

0x1F, List of 32-bit Service Solicitation UUIDs

enumerator RTK_BT_LE_GAP_ADTYPE_SERVICE_DATA_32BIT

0x20, Service Data - 32-bit UUID

enumerator RTK_BT_LE_GAP_ADTYPE_SERVICE_DATA_128BIT

0x21, Service Data - 128-bit UUID

enumerator RTK_BT_LE_GAP_ADTYPE_SC_CONF_VALUE

0x22, LE Secure Connections Confirmation Value

enumerator RTK_BT_LE_GAP_ADTYPE_SC_RAND_VALUE

0x23, LE Secure Connections Random Value

enumerator RTK_BT_LE_GAP_ADTYPE_URI

0x24, URI

enumerator RTK_BT_LE_GAP_ADTYPE_INDOOR_POSITION

0x25, Indoor Positioning

enumerator RTK_BT_LE_GAP_ADTYPE_TRANSPORT_DISCOVERY_DATA

0x26, Transport Discovery Data

enumerator RTK_BT_LE_GAP_ADTYPE_LE_SUPPORTED_FEATURES

0x27, LE Supported Features

enumerator RTK_BT_LE_GAP_ADTYPE_CHAN_MAP_UPDATE_IND

0x28, Channel Map Update Indication

enumerator RTK_BT_LE_GAP_ADTYPE_MESH_PB_ADV

0x29, Mesh Pb-Adv

enumerator RTK_BT_LE_GAP_ADTYPE_MESH_PACKET

0x2A, Mesh Packet

enumerator RTK_BT_LE_GAP_ADTYPE_MESH_BEACON

0x2B, Mesh Beacon

enumerator RTK_BT_LE_GAP_ADTYPE_RSI

0x2E, RSI

enumerator RTK_BT_LE_GAP_ADTYPE_BROADCAST_NAME

0x30, Broadcast Name

enumerator RTK_BT_LE_GAP_ADTYPE_3D_INFO_DATA

0x3D, 3D Information Data

enumerator RTK_BT_LE_GAP_ADTYPE_MANUFACTURER_SPECIFIC

0xFF, Manufacturer Specific Data

enum rtk_bt_le_gap_ad_flags_data_t

Bluetooth ble gap advertising data type data definition.

Values:

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS_LIMITED

0x01, Discovery Mode: LE Limited Discoverable Mode

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS_GENERAL

0x02, Discovery Mode: LE General Discoverable Mode

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED

0x04, Discovery Mode: BR/EDR Not Supported

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS_SIMULTANEOUS_LE_BREDR_CONTROLLER

0x08, Discovery Mode: Simultaneous LE and BR/EDR Controller Supported

enumerator RTK_BT_LE_GAP_ADTYPE_FLAGS_SIMULTANEOUS_LE_BREDR_HOST

0x10, Discovery Mode: Simultaneous LE and BR/EDR Host Supported

enum rtk_bt_le_adv_type_t

Bluetooth LE GAP adv type definition.

Values:

enumerator RTK_BT_LE_ADV_TYPE_IND

0x00, Connectable and scannable undirected advertising (ADV_IND) (default)

enumerator RTK_BT_LE_ADV_TYPE_DIRECT_IND_HIGH

0x01, Connectable high duty cycle directed advertising (ADV_DIRECT_IND, high duty cycle)

enumerator RTK_BT_LE_ADV_TYPE_SCAN_IND

0x02, Scannable undirected advertising (ADV_SCAN_IND)

enumerator RTK_BT_LE_ADV_TYPE_NONCONN_IND

0x03, Non connectable undirected advertising (ADV_NONCONN_IND)

enumerator RTK_BT_LE_ADV_TYPE_DIRECT_IND_LOW

0x04, Connectable low duty cycle directed advertising (ADV_DIRECT_IND, low duty cycle)

enumerator RTK_BT_LE_ADV_TYPE_RESERVED

reserved

enum rtk_bt_le_adv_ch_map_t

Bluetooth LE GAP adv channel map definition.

Values:

enumerator RTK_BT_LE_ADV_CHNL_37

0x01, Channel 37 shall be used

enumerator RTK_BT_LE_ADV_CHNL_38

0x02, Channel 38 shall be used

enumerator RTK_BT_LE_ADV_CHNL_39

0x04, Channel 39 shall be used

enumerator RTK_BT_LE_ADV_CHNL_ALL

0x07, Channel 37,38,39 shall be used

enumerator RTK_BT_LE_ADV_CHNL_RESERVED

reserved

enum rtk_bt_le_adv_filter_t

Bluetooth LE GAP adv filter type definition.

Values:

enumerator RTK_BT_LE_ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY

0, Allow both scan and connection requests from anyone

enumerator RTK_BT_LE_ADV_FILTER_ALLOW_SCAN_WLST_CON_ANY

1, Allow both scan requests from White List devices only and connection requests from anyone

enumerator RTK_BT_LE_ADV_FILTER_ALLOW_SCAN_ANY_CON_WLST

2, Allow both scan requests from anyone and connection requests from White List devices only

enumerator RTK_BT_LE_ADV_FILTER_ALLOW_SCAN_WLST_CON_WLST

3, Allow scan and connection requests from White List devices only

enumerator RTK_BT_LE_ADV_FILTER_RESERVED

All bigger value are reserved

enum rtk_bt_le_addr_type_t

Bluetooth device address type definition.

Values:

enumerator RTK_BT_LE_ADDR_TYPE_PUBLIC

Public Device Address

enumerator RTK_BT_LE_ADDR_TYPE_RANDOM

Random Device Address

enumerator RTK_BT_LE_ADDR_TYPE_RPA_PUBLIC

Public Identity Address (RPA)

enumerator RTK_BT_LE_ADDR_TYPE_RPA_RANDOM

Random (static) Identity Address (RPA)

enumerator RTK_BT_LE_ADDR_TYPE_PEER_ANONYMOUS

Anonymous Device Address

enum rtk_bt_le_ident_addr_type_t

Bluetooth LE indentity address type definition.

Values:

enumerator RTK_BT_LE_IDENT_ADDR_PUBLIC
enumerator RTK_BT_LE_IDENT_ADDR_RAND
enum rtk_bt_le_rand_addr_type_t

Bluetooth device address type definition.

Values:

enumerator RTK_BT_LE_RAND_ADDR_STATIC

Static random device address

enumerator RTK_BT_LE_RAND_ADDR_NON_RESOLVABLE

Non resolvable random device address

enumerator RTK_BT_LE_RAND_ADDR_RESOLVABLE

Resolvable random device address

enum rtk_bt_le_scan_type_t

Bluetooth LE GAP scan type definition.

Values:

enumerator RTK_BT_LE_SCAN_TYPE_PASSIVE

0, Passive scan

enumerator RTK_BT_LE_SCAN_TYPE_ACTIVE

1, Active scan

enumerator RTK_BT_LE_SCAN_TYPE_RESERVED

All bigger value are reserved

enum rtk_bt_le_conn_filter_t

Bluetooth LE GAP connection filter type definition.

Values:

enumerator RTK_BT_LE_CONN_FILTER_WITHOUT_WHITELIST

0, filter without whitelist

enumerator RTK_BT_LE_CONN_FILTER_WITH_WHITELIST

1, filter with whitelist

enumerator RTK_BT_LE_CONN_FILTER_RESERVED

All bigger value are reserved

enum rtk_bt_le_scan_filter_t

Bluetooth LE GAP scan filter type definition.

Values:

enumerator RTK_BT_LE_SCAN_FILTER_ALLOW_ALL

Accept all :

  1. advertisement packets except directed advertising packets not addressed to this device (default).

enumerator RTK_BT_LE_SCAN_FILTER_ALLOW_ONLY_WLST

Accept only :

  1. advertisement packets from devices where the advertiser's address is in the White list.

  2. Directed advertising packets which are not addressed for this device shall be ignored.

enumerator RTK_BT_LE_SCAN_FILTER_ALLOW_UND_RPA_DIR

Accept all :

  1. undirected advertisement packets, and

  2. directed advertising packets where the initiator address is a resolvable private address, and

  3. directed advertising packets addressed to this device.

enumerator RTK_BT_LE_SCAN_FILTER_ALLOW_WLIST_RPA_DIR

Accept all :

  1. advertisement packets from devices where the advertiser's address is in the White list, and

  2. directed advertising packets where the initiator address is a resolvable private address, and

  3. directed advertising packets addressed to this device.

enum rtk_bt_le_scan_duplicate_t

Bluetooth LE GAP scan duplicate filter type definition.

Values:

enumerator RTK_BT_LE_SCAN_DUPLICATE_DISABLE

0, Link Layer should generate advertising reports to the host for each packet received

enumerator RTK_BT_LE_SCAN_DUPLICATE_ENABLE

1, Link Layer should filter out duplicate advertising reports to the Host

enumerator RTK_BT_LE_SCAN_DUPLICATE_ENABLED_RESET_FOR_EACH_PERIOD

Duplicate filtering enabled, reset for each scan period.

enumerator RTK_BT_LE_SCAN_DUPLICATE_RESERVED

reserved

Bluetooth LE GAP link role definition.

Values:

0x00, means master

0x01, means slave

unknown

enum rtk_bt_le_adv_stop_reason_t

Bluetooth LE ADV type Definition.

Values:

enumerator RTK_BT_LE_ADV_STOP_BY_HOST

0, stopped by host

enumerator RTK_BT_LE_ADV_STOP_BY_CONN

1, stopped due to connection established

enumerator RTK_BT_LE_ADV_STOP_BY_DURATION

2, stopped due to duration expired or number of extended adv events exceeded

enumerator RTK_BT_LE_ADV_STOP_UNKNOWN

unknown

enum rtk_bt_le_wl_op_t

Bluetooth LE GAP whitelist operation type definition.

Values:

enumerator RTK_BT_LE_WHITELIST_CLEAR

Clear whitelist

enumerator RTK_BT_LE_WHITELIST_ADD

Add device to whitelist

enumerator RTK_BT_LE_WHITELIST_REMOVE

Remove device from whitelist

enumerator RTK_BT_LE_WHITELIST_RESERVED

All bigger value are reserved

enum rtk_bt_le_gap_init_state

Bluetooth LE GAP init state.

Values:

enumerator RTK_BT_LE_GAP_INIT_STATE_INIT

GAP is in initiating status

enumerator RTK_BT_LE_GAP_INIT_STATE_STACK_READY

GAP stack is ready

enum rtk_bt_le_adv_state

Bluetooth LE GAP adv state.

Values:

enumerator RTK_BT_LE_ADV_STATE_IDLE

Idle, no advertising

enumerator RTK_BT_LE_ADV_STATE_START

Start Advertising. A temporary state, haven't received the result

enumerator RTK_BT_LE_ADV_STATE_ADVERTISING

Advertising

enumerator RTK_BT_LE_ADV_STATE_STOP

Stop Advertising. A temporary state, haven't received the result

enum rtk_bt_le_scan_state

Bluetooth LE GAP scan state.

Values:

enumerator RTK_BT_LE_SCAN_STATE_IDLE

Idle, no scanning

enumerator RTK_BT_LE_SCAN_STATE_START

Start scanning. A temporary state, haven't received the result

enumerator RTK_BT_LE_SCAN_STATE_SCANNING

Scanning

enumerator RTK_BT_LE_SCAN_STATE_STOP

Stop scanning, A temporary state, haven't received the result

enum rtk_bt_le_conn_state

Bluetooth LE GAP connection state.

Values:

enumerator RTK_BT_LE_CONN_STATE_IDLE

Idle

enumerator RTK_BT_LE_CONN_STATE_INITIATING

Initiating Connection

enum rtk_bt_le_pairing_mode_t

Bluetooth BLE SM pairing mode definition.

Values:

enumerator RTK_PAIRING_MODE_NO_PAIRING
enumerator RTK_PAIRING_MODE_PAIRABLE
enum rtk_bt_le_io_cap_t

Bluetooth BLE SM IO capability type definition.

Values:

enumerator RTK_IO_CAP_DISPALY_ONLY

0x00 DisplayOnly

enumerator RTK_IO_CAP_DISPLAY_YES_NO

0x01 DisplayYesNo

enumerator RTK_IO_CAP_KEYBOARD_ONLY

0x02 KeyboardOnly

enumerator RTK_IO_CAP_NO_IN_NO_OUT

0x03 NoInputNoOutput

enumerator RTK_IO_CAP_KEYBOARD_DISPALY

0x04 KeyboardDisplay

enumerator RTK_IO_CAP_MAX

0x05-0xFF Reserved for future use

enum rtk_bt_le_adv_report_type_t

Bluetooth LE adv report event type.

Values:

enumerator RTK_BT_LE_EVT_CONN_ADV

ADV_IND

enumerator RTK_BT_LE_EVT_CONN_DIR_ADV

ADV_DIRECT_IND

enumerator RTK_BT_LE_EVT_SCAN_UNDIR_ADV

ADV_SCAN_IND

enumerator RTK_BT_LE_EVT_NON_CONN_ADV

ADV_NONCONN_IND

enumerator RTK_BT_LE_EVT_SCAN_RSP

SCAN_RSP

enum rtk_bt_le_scan_stop_reason_t

Bluetooth LE scan stop reason.

Values:

enumerator RTK_BT_LE_SCAN_STOP_BY_HOST

0, stopped by host

enumerator RTK_BT_LE_SCAN_STOP_BY_DURATION

1, stopped due to scan duration timeout

enumerator RTK_BT_LE_SCAN_STOP_UNKNOWN

unknown

enum rtk_bt_le_bond_op_t

Bluetooth LE bond operation definition.

Values:

enumerator RTK_BT_LE_BOND_DELETE

Delete bond device by address

enumerator RTK_BT_LE_BOND_ADD

Add bond device to bond list

enumerator RTK_BT_LE_BOND_CLEAR

Clear all bond device in bond list

enumerator RTK_BT_LE_BOND_FULL
enumerator RTK_BT_LE_BOND_KEY_MISSING
enumerator RTK_BT_LE_BOND_RESERVED

Reserved

enum rtk_bt_le_gap_cte_type_t

Values:

enumerator RTK_BT_LE_GAP_CTE_TYPE_NONE
enumerator RTK_BT_LE_GAP_CTE_TYPE_AOA
enumerator RTK_BT_LE_GAP_CTE_TYPE_AOD_1US
enumerator RTK_BT_LE_GAP_CTE_TYPE_AOD_2US
enum rtk_bt_le_dtm_rx_version_t

Receiver test version.

Values:

enumerator RTK_BT_LE_DTM_RX_VERSION_V1

Version 1.

enumerator RTK_BT_LE_DTM_RX_VERSION_V2

Version 2.

enumerator RTK_BT_LE_DTM_RX_VERSION_V3

Version 3.

enum rtk_bt_le_dtm_tx_version_t

Transmitter test version.

Values:

enumerator RTK_BT_LE_DTM_TX_VERSION_V1

Version 1.

enumerator RTK_BT_LE_DTM_TX_VERSION_V2

Version 2.

enumerator RTK_BT_LE_DTM_TX_VERSION_V3

Version 3.

enumerator RTK_BT_LE_DTM_TX_VERSION_V4

Version 4.

enum rtk_bt_le_dtm_phy_rx_t

Bluetooth LE PHY type for receiver.

Values:

enumerator RTK_BT_LE_DTM_RX_PHYS_1M

LE PHY 1M used.

enumerator RTK_BT_LE_DTM_RX_PHYS_2M

LE PHY 2M used.

enumerator RTK_BT_LE_DTM_RX_PHYS_CODED

LE Coded PHY used.

enum rtk_bt_le_dtm_phy_tx_t

Bluetooth LE PHY type for transmitter.

Values:

enumerator RTK_BT_LE_DTM_TX_PHYS_1M

LE PHY 1M used.

enumerator RTK_BT_LE_DTM_TX_PHYS_2M

LE PHY 2M used.

enumerator RTK_BT_LE_DTM_TX_PHYS_CODED_S8

LE Coded PHY with S=8 data coding used.

enumerator RTK_BT_LE_DTM_TX_PHYS_CODED_S2

LE Coded PHY with S=2 data coding used.

enum rtk_bt_le_dtm_mod_idx_t

Assume transmitter will have a certain type of modulation index.

Values:

enumerator RTK_BT_LE_DTM_MODULATION_INDEX_STANDARD

Standard modulation index.

enumerator RTK_BT_LE_DTM_MODULATION_INDEX_STABLE

Stable modulation index.

enum rtk_bt_le_dtm_cte_type_t

Constant Tone Extension type.

Values:

enumerator RTK_BT_LE_DTM_CTE_TYPE_AOA

AoA Constant Tone Extension.

enumerator RTK_BT_LE_DTM_CTE_TYPE_AOD_1US_SLOT

AoD Constant Tone Extension with 1 us slots.

enumerator RTK_BT_LE_DTM_CTE_TYPE_AOD_2US_SLOT

AoD Constant Tone Extension with 2 us slots.

enum rtk_bt_le_dtm_slot_durations_t

Switching and sampling slot duration type.

Values:

enumerator RTK_BT_LE_DTM_SLOT_DURATIONS_SWITCH_SAMPLE_1US

Switching and sampling slots are 1 us each.

enumerator RTK_BT_LE_DTM_SLOT_DURATIONS_SWITCH_SAMPLE_2US

Switching and sampling slots are 2 us each.

enum rtk_bt_le_dtm_packet_payload_t

Transmitted packet payload type.

Values:

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_PRBS9

PRBS9 sequence '11111111100000111101' (in transmission order).

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_1100

Repeated '11110000' (in transmission order) sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_10

Repeated '10101010' (in transmission order) sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_PRBS15

PRBS15 sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_ALL1

Repeated '11111111' (in transmission order) sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_ALL0

Repeated '00000000' (in transmission order) sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_0011

Repeated '00001111' (in transmission order) sequence.

enumerator RTK_BT_LE_DTM_PACKET_PAYLOAD_01

Repeated '01010101' (in transmission order) sequence.

RTK_BD_ADDR_LEN

Bluetooth device address length macro.

RTK_BT_LE_CHAN_MAP_LEN

Bluetooth LE GAP channel map size macro.

RTK_PAIRING_PASSKEY_MAX

Bluetooth LE SM max passkey value macro.

RTK_BT_LE_SM_OOB_KEY_LEN

Bluetooth LE SM max oob key length macro.

RTK_BT_LE_MAX_ADV_DATA_LEN

Bluetooth LE max adv data len.

RTK_BT_LE_MAX_EXT_ADV_DATA_LEN
struct rtk_bt_le_version_info_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP lower stack version information.

Public Members

uint16_t hci_revision

hci revision

uint16_t lmp_subversion

lmp subversion

uint16_t btgap_revision

btgap stack version

uint16_t btgap_buildnum

btgap stack build number

struct rtk_bt_le_get_conn_id_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP get connection id from connection handle.

Public Members

uint16_t conn_handle

connection handle

uint8_t *p_conn_id

LE connection id

struct rtk_bt_le_preferred_conn_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE preferred connection parameters definition.

Public Members

uint16_t conn_interval_min

Defines minimum value for the connection interval in the following manner: connIntervalmin = Conn_Interval_Min * 1.25 ms Conn_Interval_Min range: 0x0006 to 0x0C80 Value of 0xFFFF indicates no specific minimum. Values outside the range (except 0xFFFF) are reserved for future use.

uint16_t conn_interval_max

Defines maximum value for the connection interval in the following manner: connIntervalmax = Conn_Interval_Max * 1.25 ms Conn_Interval_Max range: 0x0006 to 0x0C80 Shall be equal to or greater than the Conn_Interval_Min. Value of 0xFFFF indicates no specific maximum. Values outside the range (except 0xFFFF) are reserved for future use.

uint16_t slave_latency

Defines the slave latency for the connection in number of connection events. Slave latency range: 0x0000 to 0x01F3 Values outside the range are reserved for future use.

uint16_t supv_timeout

Defines the connection supervison timeout multiplier as amultiple of 10ms. Range: 0xFFFF indicates no specific value requested. Range: 0x000A to 0x0C80 Time = N * 10 ms Time Range: 100 ms to 32 seconds Values outside the range (except 0xFFFF) are reserved for future use.

struct rtk_bt_le_addr_t
#include <rtk_bt_le_gap.h>

Bluetooth LE device address definition.

Public Members

rtk_bt_le_addr_type_t type

address type

uint8_t addr_val[RTK_BD_ADDR_LEN]

address

struct rtk_bt_le_ident_addr_t
#include <rtk_bt_le_gap.h>

Bluetooth LE indentity address definition.

Public Members

rtk_bt_le_ident_addr_type_t type

Identity address type

uint8_t addr_val[RTK_BD_ADDR_LEN]

Identity address value

struct rtk_bt_le_set_rand_addr_t
#include <rtk_bt_le_gap.h>

Bluetooth LE set random address parameter definition.

Public Members

bool auto_generate

Auto generate If true, set device random address to auto generated value according to type, and addr_val will return the generated random address. If false, set device random address to addr_val, and type will be ignored.

rtk_bt_le_rand_addr_type_t type

Random address type

uint8_t *addr_val

Random address

struct rtk_bt_le_adv_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP set adv data paramter definition.

Public Members

uint16_t interval_min

Minimum advertising interval for undirected and low duty cycle

directed advertising.

Range: 0x0020 to 0x4000

Default: 0x0800 (1.28 s)

Time = N * 0.625 ms

Time Range: 20 ms to 10.24 s

uint16_t interval_max

Maximum advertising interval for undirected and low duty cycle

directed advertising.

Range: 0x0020 to 0x4000

Default: 0x0800 (1.28 s)

Time = N * 0.625 ms

Time Range: 20 ms to 10.24 s

rtk_bt_le_adv_type_t type

Advertising_Type

rtk_bt_le_addr_type_t own_addr_type

Own_Address_Type

rtk_bt_le_addr_t peer_addr

Peer_Address

rtk_bt_le_adv_ch_map_t channel_map

Advertising_Channel_Map

rtk_bt_le_adv_filter_t filter_policy

Advertising_Filter_Policy

struct rtk_bt_le_scan_info_filter_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP scan info filter paramters definition.

Public Members

bool enable

Wether to enable the scan info comparison function

uint8_t offset

The start offset of the scan info to compare

uint8_t len

Length of data to compare

uint8_t *p_filter

Point the data to compare with the scan info

struct rtk_bt_le_scan_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP scan paramters definition.

Public Members

rtk_bt_le_scan_type_t type

LE_Scan_Type

uint16_t interval

This is defined as the time interval from when the Controller

started its last LE scan until it begins the subsequent LE scan.

Range: 0x0004 to 0x4000

Default: 0x0010 (10 ms)

Time = N * 0.625 ms

Time Range: 2.5 ms to 10.24 s

uint16_t window

The duration of the LE scan. LE_Scan_Window shall be less

than or equal to LE_Scan_Interval

Range: 0x0004 to 0x4000

Default: 0x0010 (10 ms)

Time = N * 0.625 ms

Time Range: 2.5 ms to 10.24 s

rtk_bt_le_addr_type_t own_addr_type

Own_Address_Type

rtk_bt_le_scan_filter_t filter_policy

Scanning_Filter_Policy

uint8_t duplicate_opt

Scanning_Filter_Duplicated_Option

struct rtk_bt_le_create_conn_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP create connect parameters definition.

Public Members

uint16_t scan_interval

This is defined as the time interval from when the Controller started

its last LE scan until it begins the subsequent LE scan.

Range: 0x0004 to 0x4000

Time = N * 0.625 ms

Time Range: 2.5 ms to 10.24 s

uint16_t scan_window

Amount of time for the duration of the LE scan. LE_Scan_Window

shall be less than or equal to LE_Scan_Interval

Range: 0x0004 to 0x4000

Time = N * 0.625 ms

Time Range: 2.5 ms to 10.24 s

rtk_bt_le_conn_filter_t filter_policy

Initiator_Filter_Policy

rtk_bt_le_addr_t peer_addr

Peer_Address

rtk_bt_le_addr_type_t own_addr_type

Own_Address_Type

uint16_t conn_interval_min

Minimum value for the connection interval. This shall be less

than or equal to Connection_Interval_Max.

Range: 0x0006 to 0x0C80

Time = N * 1.25 ms

Time Range: 7.5 ms to 4 s.

uint16_t conn_interval_max

Maximum value for the connection interval. This shall be

greater than or equal to Connection_Interval_Min.

Range: 0x0006 to 0x0C80

Time = N * 1.25 ms

Time Range: 7.5 ms to 4 s.

uint16_t conn_latency

Slave latency for the connection in number of connection events.

Range: 0x0000 to 0x01F3

uint16_t supv_timeout

Supervision timeout for the LE Link.

Range: 0x000A to 0x0C80

Time = N * 10 ms

Time Range: 100 ms to 32 s

uint16_t scan_timeout

scan timeout value

struct rtk_bt_le_update_conn_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP update connection parameters definition.

Public Members

uint16_t conn_handle

Connection handle

uint16_t conn_interval_min

Minimum value for the connection interval. This shall be less

than or equal to Connection_Interval_Max.

Range: 0x0006 to 0x0C80

Time = N * 1.25 ms

Time Range: 7.5 ms to 4 s.

uint16_t conn_interval_max

Maximum value for the connection interval. This shall be

greater than or equal to Connection_Interval_Min.

Range: 0x0006 to 0x0C80

Time = N * 1.25 ms

Time Range: 7.5 ms to 4 s.

uint16_t conn_latency

Slave latency for the connection in number of connection events.

Range: 0x0000 to 0x01F3

uint16_t supv_timeout

Supervision timeout for the LE Link.

Range: 0x000A to 0x0C80

Time = N * 10 ms

Time Range: 100 ms to 32 s

struct rtk_bt_le_modify_wl_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP whitelist operation paramters definition.

Public Members

rtk_bt_le_wl_op_t op

whitelist operation type

rtk_bt_le_addr_t addr

device address

struct rtk_bt_le_conn_info_t
#include <rtk_bt_le_gap.h>

Bluetooth LE connection info definition.

Public Members

rtk_bt_le_link_role_t role

Controller role

rtk_bt_le_addr_t remote

Remote device address used during connection setup.

uint16_t interval

Connection interval used on this connection.

Range: 0x0006 to 0x0C80

Time = N * 1.25 ms

Time Range: 7.5 ms to 4000 ms.

uint16_t latency

Slave latency for the connection in number of connection events.

Range: 0x0000 to 0x01F3

uint16_t supv_timeout

Connection supervision timeout. Range: 0x000A to 0x0C80 Time = N * 10 ms Time Range: 100 ms to 32 s

uint8_t tx_phy

connection tx phy

uint8_t rx_phy

connection rx phy

struct rtk_bt_le_gap_dev_state_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP dev state.

Public Members

uint8_t gap_init_state

rtk_bt_le_gap_init_state

uint8_t gap_adv_state

rtk_bt_le_adv_state

uint8_t gap_scan_state

rtk_bt_le_scan_state

uint8_t gap_conn_state

rtk_bt_le_conn_state

struct rtk_bt_le_get_active_conn_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP get active connection num and their handles.

Public Members

uint16_t conn_handle[RTK_BLE_GAP_MAX_LINKS]
uint16_t conn_num
struct rtk_bt_le_set_datalen_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP set connection data length parameters definition.

Public Members

uint16_t conn_handle

connction handle

uint16_t max_tx_octets

Maximum tx octects

uint16_t max_tx_time

Maximum tx time

struct rtk_bt_le_set_phy_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE GAP set connection phy parameters definition.

Public Members

uint16_t conn_handle

connection handle

uint8_t all_phys

preferred all phys, rtk_bt_le_all_phy_prefer_t

uint8_t tx_phys

preferred tx phys, rtk_bt_le_trx_phy_prefer_t

uint8_t rx_phys

preferred rx phys, rtk_bt_le_trx_phy_prefer_t

uint16_t phy_options

preferred phy options, rtk_bt_le_phy_option_t

struct rtk_bt_le_security_param_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM security parameter type definition.

Public Members

rtk_bt_le_io_cap_t io_cap

IO capabilities

uint8_t oob_data_flag

OOB data flag

uint8_t bond_flag

Bonding flags

uint8_t mitm_flag

MITM flag

uint8_t sec_pair_flag

Secure connection pairing support flag

uint8_t sec_pair_only_flag

Only accept secure connection pairing when local sec_pair_flag is set

uint8_t use_fixed_key

Pairing use fixed passkey

uint32_t fixed_key

Fixed passkey value

uint8_t auto_sec_req

Auto send security request when connected

struct rtk_bt_le_pair_cfm_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM pairing confirm parameter definition.

Public Members

uint16_t conn_handle

Connection handle

uint8_t confirm

Confirm value, 1: continue pairing, 0: stop pairing

struct rtk_bt_le_auth_key_confirm_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM key confirm definition.

Public Members

uint16_t conn_handle

Connection handle

uint8_t confirm

Confirm value, 1: passkey correct, 0: passkey incorrect

struct rtk_bt_le_auth_key_input_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM input auth key definition.

Public Members

uint16_t conn_handle

Connection handle

uint32_t passkey

Input passkey value

struct rtk_bt_le_set_oob_key_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM set OOB key parameter definition.

Public Members

uint16_t conn_handle

Connection handle

uint8_t oob_key[RTK_BT_LE_SM_OOB_KEY_LEN]

OOB KEY to input

struct rtk_bt_le_sc_local_oob_data_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM get secure connection pairing local OOB data definition.

Public Members

uint8_t rand[16]
uint8_t confirm[16]
struct rtk_bt_le_sc_peer_oob_data_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM input secure connection pairing peer OOB data definition.

Public Members

uint8_t addr[RTK_BD_ADDR_LEN]
uint8_t rand[16]
uint8_t confirm[16]
struct rtk_bt_le_bond_info_t
#include <rtk_bt_le_gap.h>

Bluetooth BLE SM bond information type definition.

Public Members

rtk_bt_le_addr_t remote_addr

Bonded device address

rtk_bt_le_ident_addr_t ident_addr

Identity address

struct rtk_bt_le_adv_start_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE adv start indication msg.

Public Members

uint16_t err

Error code

rtk_bt_le_adv_type_t adv_type

Adv type

struct rtk_bt_le_adv_stop_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE adv stop indication msg.

Public Members

uint16_t err

Error code

rtk_bt_le_adv_stop_reason_t stop_reason

Adv stop reason

struct rtk_bt_le_scan_start_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE scan start indication msg.

Public Members

uint16_t err

Error code

rtk_bt_le_scan_type_t scan_type

Scan type

struct rtk_bt_le_adv_report_t
#include <rtk_bt_le_gap.h>

Bluetooth LE adv report data.

Public Members

rtk_bt_le_adv_report_type_t evt_type
rtk_bt_le_addr_t addr
uint8_t len
uint8_t data[RTK_BT_LE_MAX_ADV_DATA_LEN]
int8_t rssi
struct rtk_bt_le_scan_res_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE scan result indication msg.

Public Members

uint8_t num_report

num of responses in event, here will be always 1

rtk_bt_le_adv_report_t adv_report

adv data to be reported from controller

struct rtk_bt_le_scan_stop_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE scan stop indication msg.

Public Members

uint16_t err

Error code

rtk_bt_le_scan_stop_reason_t stop_reason

scan stop reason

struct rtk_bt_le_conn_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE connection complete event msg.

Public Members

uint16_t err

Error code

rtk_bt_le_link_role_t role

Local device's role in this link

uint16_t conn_handle

Connection handle

rtk_bt_le_addr_t peer_addr

Peer address

uint16_t conn_interval

Connection interval

uint16_t conn_latency

Connection latency

uint16_t supv_timeout

Connection supervision timeout

struct rtk_bt_le_disconn_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE disconnect complete event msg.

Public Members

uint16_t reason

Disconnect reason

rtk_bt_le_link_role_t role

Local device's role in this link

uint16_t conn_handle

Connection handle

rtk_bt_le_addr_t peer_addr

Peer address

struct rtk_bt_le_conn_update_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE connection parameters updated event msg.

Public Members

uint16_t err

Error code

uint16_t conn_handle

Connection handle

uint16_t conn_interval

Connection interval

uint16_t conn_latency

Connection latency

uint16_t supv_timeout

Connection supervision timeout

struct rtk_bt_le_remote_conn_update_req_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE remote device connection parameters change request event msg.

Public Members

uint16_t conn_handle

Connection handle

uint16_t conn_interval_min

Mininum connection interval

uint16_t conn_interval_max

Maximum connection interval

uint16_t conn_latency

Connection latency

uint16_t supv_timeout

Connection supervision timeout

struct rtk_bt_le_auth_pair_cfm_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE just work pairing need to confirm event msg.

Public Members

uint16_t conn_handle

Connection handle

struct rtk_bt_le_auth_key_display_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE pairing key need to display event msg.

Public Members

uint16_t conn_handle

Connection handle

uint32_t passkey

Passkey value need to display

struct rtk_bt_le_auth_key_input_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE pairing key need to input event msg.

Public Members

uint16_t conn_handle

Connection handle

struct rtk_bt_le_auth_key_cfm_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE pairing key need to compare and confirm event msg.

Public Members

uint16_t conn_handle

Connection handle

uint32_t passkey

Passkey value need to compare and confirm

struct rtk_bt_le_auth_oob_input_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE pairing oob key need to input event msg.

Public Members

uint16_t conn_handle

Connection handle

struct rtk_bt_le_auth_complete_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE auth compeleted event msg.

Public Members

uint16_t err

Error code

uint16_t conn_handle

Connection handle

uint8_t dev_ltk_length

Device long term key length

uint8_t dev_ltk[32]

Device long term key

struct rtk_bt_le_data_len_change_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE data length changed event msg.

Public Members

uint16_t conn_handle

Connection handle

uint16_t max_tx_octets

Maximum tx octets

uint16_t max_tx_time

Maximum tx time

uint16_t max_rx_octets

Maximum rx octets

uint16_t max_rx_time

Maximum rx time

struct rtk_bt_le_phy_update_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE PHY updated event msg.

Public Members

uint16_t err

Error code

uint16_t conn_handle

Connection handle

uint8_t tx_phy

TX PHY

uint8_t rx_phy

RX PHY

struct rtk_bt_le_wl_modify_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE whitelist modified event msg.

Public Members

rtk_bt_le_wl_op_t op

Whitelist modify operation

uint16_t err

Error code

struct rtk_bt_le_bond_modify_ind_t
#include <rtk_bt_le_gap.h>

Bluetooth LE bond modified event msg.

Public Members

rtk_bt_le_bond_op_t op

Bond modify operation

rtk_bt_le_addr_t remote_addr

Bonded device address

rtk_bt_le_ident_addr_t ident_addr

Identity address

struct rtk_bt_le_read_rssi_param_t
#include <rtk_bt_le_gap.h>

Public Members

uint16_t conn_handle
int8_t *p_rssi
struct rtk_bt_le_disconn_with_reason_param_t
#include <rtk_bt_le_gap.h>

Public Members

uint16_t conn_handle
uint8_t reason
struct rtk_bt_le_get_conn_info_param_t
#include <rtk_bt_le_gap.h>

Public Members

uint16_t conn_handle
rtk_bt_le_conn_info_t *p_conn_info
struct rtk_bt_le_get_conn_handle_by_addr_param_t
#include <rtk_bt_le_gap.h>

Public Members

rtk_bt_le_addr_t addr
uint16_t *p_conn_handle
struct rtk_bt_le_get_mtu_size_param_t
#include <rtk_bt_le_gap.h>

Public Members

uint16_t conn_handle
uint16_t *p_mtu_size
struct rtk_bt_le_get_bond_info_param_t
#include <rtk_bt_le_gap.h>

Public Members

rtk_bt_le_bond_info_t *p_bond_info
uint8_t *p_size
uint8_t size
struct rtk_bt_le_get_tx_pending_num_param_t
#include <rtk_bt_le_gap.h>

Public Members

uint16_t conn_handle
uint16_t *p_tx_pending_num
struct rtk_bt_le_dtm_rx_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE receiver test parameters.

Public Members

uint8_t rx_channel

Channel to receive packets. Range: 0x00 - 0x27. Frequency Range: 2402 - 2480 MHz.

rtk_bt_le_dtm_phy_rx_t phy

PHY used by the receiver: rtk_bt_le_dtm_phy_rx_t.

rtk_bt_le_dtm_mod_idx_t mod_idx

Modulation index to receive packets: rtk_bt_le_dtm_mod_idx_t.

uint8_t exp_cte_len

Expected length of the Constant Tone Extensions in received test reference packets. Range: 0x00 (No Constant Tone Extension expected (default)) or 0x02 to 0x14. Units: 8 us.

rtk_bt_le_dtm_cte_type_t exp_cte_type

Expected type of the Constant Tone Extensions in received test reference packets: rtk_bt_le_dtm_cte_type_t.

rtk_bt_le_dtm_slot_durations_t slot_durations

Slot durations to receive packets and shall be ignored when exp_cte_type is not set to RTK_BT_LE_DTM_CTE_TYPE_AOA: rtk_bt_le_dtm_slot_durations_t.

uint8_t sw_pattern_len

The number of Antenna IDs in the pattern and shall be ignored when exp_cte_type is not set to RTK_BT_LE_DTM_CTE_TYPE_AOA. Range: 0x02 to max_switching_pattern_length supported by controller, max_switching_pattern_length shall be less than or equal to 0x4B.

uint8_t *p_antenna_ids

Antenna ID in the pattern and shall be ignored when exp_cte_type is not set to RTK_BT_LE_DTM_CTE_TYPE_AOA.

struct rtk_bt_le_dtm_tx_param_t
#include <rtk_bt_le_gap.h>

Bluetooth LE transmitter test paramters.

Public Members

uint8_t tx_channel

Channel to transmit packets. Range: 0x00 - 0x27. Frequency Range: 2402 - 2480 MHz.

uint8_t data_len

Length in bytes of payload data in each packet.

rtk_bt_le_dtm_packet_payload_t pkt_pl

Contents of the payload of the test reference packets: rtk_bt_le_dtm_packet_payload_t.

rtk_bt_le_dtm_phy_tx_t phy

PHY used by the transmitter: rtk_bt_le_dtm_phy_tx_t.

uint8_t cte_len

Length of the Constant Tone Extensions in transmitted test reference packets. Range: 0x00 (No Constant Tone Extension expected (default)) or 0x02 to 0x14. Units: 8 us.

rtk_bt_le_dtm_cte_type_t cte_type

Type of the Constant Tone Extensions in transmitted test reference packets: rtk_bt_le_dtm_cte_type_t.

uint8_t sw_pattern_len

The number of Antenna IDs in the pattern and shall be ignored when cte_type is set to RTK_BT_LE_DTM_CTE_TYPE_AOA. Range: 0x02 to max_switching_pattern_length supported by controller, max_switching_pattern_length shall be less than or equal to 0x4B.

uint8_t *p_antenna_ids

Antenna ID in the pattern and shall be ignored when cte_type is set to RTK_BT_LE_DTM_CTE_TYPE_AOA.

int8_t tx_power_level

Set transmitter to the specified or the nearest transmit power level. Range: 0xXX Set transmitter to the specified or the nearest transmit power level from -127 to +20. Units: dBm. 0x7E Set transmitter to minimum transmit power level. 0x7F Set transmitter to maximum transmit power level.

BT LE ISO Types

enum rtk_bt_le_iso_role_t

Bluetooth BLE ISO role.

Values:

enumerator RTK_BLE_ISO_ROLE_UNKNOWN
enumerator RTK_BLE_ISO_ROLE_CIS_INITIATOR

CIS - Central role.

enumerator RTK_BLE_ISO_ROLE_CIS_ACCEPTOR

CIS - Peripheral role.

enumerator RTK_BLE_ISO_ROLE_BIS_BROADCASTER

BIS - Broadcaster role.

enumerator RTK_BLE_ISO_ROLE_BIS_RECEIVER

BIS - Recevier role.

enum rtk_bt_le_iso_data_path_direction_t

Bluetooth LE ISO management ISO Channels Data Path Definition.

Values:

enumerator RTK_BLE_ISO_DATA_PATH_ADD_INPUT

Input (Host to Controller).

enumerator RTK_BLE_ISO_DATA_PATH_ADD_OUTPUT

Output (Controller to Host).

enum rtk_bt_le_iso_data_path_direction_flag_t

Specify which directions have been configured.Or use the combination of macro definitions to specify which directions are to have the data path removed.

Values:

enumerator RTK_BLE_ISO_DATA_PATH_INPUT_FLAG

Input (Host to Controller). Remove input data path.

enumerator RTK_BLE_ISO_DATA_PATH_OUTPUT_FLAG

Output (Controller to Host). Remove output data path.

enum rtk_bt_le_iso_isoch_data_pkt_status_t

Packet Status Flag in Bluetooth LE HCI ISO Datat packet sent by the Controller.

Values:

enumerator RTK_BLE_ISO_ISOCH_DATA_PKT_STATUS_VALID_DATA

Valid data. The complete SDU was received correctly.

enumerator RTK_BLE_ISO_ISOCH_DATA_PKT_STATUS_POSSIBLE_ERROR_DATA

Possibly invalid data. The contents of the SDU may contain errors or part of the SDU may be missing. This is reported as "data with possible errors".

enumerator RTK_BLE_ISO_ISOCH_DATA_PKT_STATUS_LOST_DATA

Part(s) of the SDU were not received correctly. This is reported as "lost data".

enum rtk_bt_le_iso_cis_connetion_state_t

Bluetooth BLE ISO management CIS connection state.

Values:

enumerator RTK_BLE_ISO_ISOCH_STATE_IDLE

CIS idle.

enumerator RTK_BLE_ISO_ISOCH_STATE_CONNECTING

CIS connecting.

enumerator RTK_BLE_ISO_ISOCH_STATE_CONN

CIS connected.

enumerator RTK_BLE_ISO_ISOCH_STATE_DISCONNECTING

CIS disconnecting.

enumerator RTK_BLE_ISO_ISOCH_STATE_CONNECTING_CANCEL

Cancel CIS connecting.

enum rtk_bt_le_iso_cis_role_t

Bluetooth BLE ISO management CIS role.

Values:

enumerator RTK_BLE_ISO_ISOCH_ROLE_INITIATOR

CIS - Central role.

enumerator RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR

CIS - Peripheral role.

enum rtk_bt_le_iso_cig_acceptor_config_cis_req_action_t

Bluetooth LE ISO management config CIS request action for acceptor.

Values:

enumerator RTK_BLE_ISO_ACCEPTOR_CIS_REQ_ACTION_ACCEPT

accept CIS request when acceptor received CIS_REQUEST_IND from initiator.

enumerator RTK_BLE_ISO_ACCEPTOR_CIS_REQ_ACTION_REJECT

reject CIS request when acceptor received CIS_REQUEST_IND from initiator.

enumerator RTK_BLE_ISO_ACCEPTOR_CIS_REQ_ACTION_PENDING

pending CIS request when acceptor received CIS_REQUEST_IND from initiator, then APP need call rtk_bt_le_iso_cig_acceptor_accept_cis or rtk_bt_le_iso_cig_acceptor_reject_cis according to the usage scenario.

enum rtk_bt_le_iso_bis_role_t

Bluetooth BLE ISO management BIS role.

Values:

enumerator RTK_BLE_ISO_ISOCH_ROLE_BROADCASTER

BIS - Broadcaster role.

enumerator RTK_BLE_ISO_ISOCH_ROLE_RECEIVER

BIS - Receiver role.

enum rtk_bt_le_iso_big_broadcaster_sync_state_t

Values:

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_IDLE

Idle, no Isochronous Broadcasting.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_CREATING_EXT_ADV_STATE_PA_ADV_STATE_IDLE

Start Isochronous Broadcasting when extended advertising and periodic advertising of the specified advertising set are disabled. A temporary state, haven't received the result.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_WAIT_EXT_ADV_STATE_PA_ADV_STATE_ADVERTISING

Isochronous Broadcasting is not started until the extended advertising and periodic advertising of the specified advertising set are enabled.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_CREATING_PA_ADV_STATE_IDLE

Start Isochronous Broadcasting when the periodic advertising of the specified advertising set is disabled. A temporary state, haven't received the result.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_WAIT_PA_ADV_STATE_ADVERTISING

Isochronous Broadcasting is not started until the periodic advertising of the specified advertising set is enabled.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_CREATING_EXT_ADV_STATE_IDLE

Start Isochronous Broadcasting when the extended advertising of the specified advertising set is disabled. A temporary state, haven't received the result.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_WAIT_EXT_ADV_STATE_ADVERTISING

Isochronous Broadcasting is not started until the extended advertising of the specified advertising set is enabled.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_CREATING

Start Isochronous Broadcasting when extended advertising and periodic advertising of the specified advertising set are enabled. A temporary state, haven't received the result.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_BROADCASTING

Isochronous Broadcasting.

enumerator RTK_BLE_ISO_BIG_BOARDCASTER_SYNC_STATE_TERMINATING

Terminate Isochronous Broadcasting. A temporary state, haven't received the result.

enum rtk_bt_le_iso_big_receiver_sync_state_t

Values:

enumerator RTK_BLE_ISO_BIG_RECEIVER_SYNC_STATE_TERMINATED

Terminated.

enumerator RTK_BLE_ISO_BIG_RECEIVER_SYNC_STATE_SYNCHRONIZING

Start synchronizing to a BIG. A temporary state, haven't received the result.

enumerator RTK_BLE_ISO_BIG_RECEIVER_SYNC_STATE_SYNCHRONIZED

Synchronized to a BIG.

enumerator RTK_BLE_ISO_BIG_RECEIVER_SYNC_STATE_TERMINATING

Terminate synchronization to the BIG. A temporary state, haven't received the result.

enum rtk_bt_le_iso_sync_type_t

Bluetooth BLE ISO sync info type.

Values:

enumerator RTK_BT_LE_ISO_PA_SYNC_STATE_SYNCHRONIZED
enumerator RTK_BT_LE_ISO_PA_SYNC_STATE_TERMINATED
enumerator RTK_BT_LE_ISO_GAP_EVT_DISCONN_IND
typedef rtk_bt_le_iso_cig_acceptor_accept_cis_done_t rtk_bt_le_iso_cig_acceptor_reject_cis_done_t

Bluetooth BLE ISO management CIG reject CIS request for acceptor.

struct rtk_bt_le_iso_setup_path_param_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t iso_conn_handle

Connection handle of the ISO.

rtk_bt_le_iso_data_path_direction_t data_path_direction

Specify the direction for which the data path is being configured. rtk_bt_le_iso_data_path_direction_t. RTK_BLE_ISO_ISOCH_ROLE_BROADCASTER uses RTK_BLE_ISO_DATA_PATH_ADD_INPUT RTK_BLE_ISO_ISOCH_ROLE_RECEIVER uses RTK_BLE_ISO_DATA_PATH_ADD_OUTPUT

uint8_t data_path_id

Specify the data transport path used. 0x00: HCI. 0x01 to 0xFE: Logical_Channel_Number. The meaning of the logical channel is vendor-specific.

uint8_t codec_id[5]

Specify the coding format used over the air. Octet 0: See Assigned Numbers for Coding Format. Octets 1 to 2: Company ID, see Assigned Numbers for Company Identifier. Shall be ignored if octet 0 is not 0xFF. Octets 3 to 4: Vendor-defined codec ID. Shall be ignored if octet 0 is not 0xFF.

uint32_t controller_delay

Controller delay in microseconds. Range: 0x000000 to 0x3D0900 Time range: 0 s to 4 s

uint8_t codec_config_len

Length of codec configuration

uint8_t *p_codec_config

Specify codec-specific configuration information for the specified direction

struct rtk_bt_le_iso_remove_path_param_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t iso_conn_handle

Connection handle of ISO.

rtk_bt_le_iso_data_path_direction_flag_t data_path_direction

Specify which directions are to have the data path removed. rtk_bt_le_iso_data_path_direction_flag_t. RTK_BLE_ISO_ISOCH_ROLE_BROADCASTER uses RTK_BLE_ISO_DATA_PATH_INPUT_FLAG RTK_BLE_ISO_ISOCH_ROLE_RECEIVER uses RTK_BLE_ISO_DATA_PATH_OUTPUT_FLAG

struct rtk_bt_le_iso_data_send_info_t
#include <rtk_bt_le_iso.h>

Bluetooth LE iso mgr data send info definition .

Public Members

uint16_t iso_conn_handle

connection handle of ISO.

bool ts_flag

indicates whether contains time_stamp, true: contain time_stamp; false: not contain time_stamp

uint32_t time_stamp

a time in microseconds. time_stamp is used when ts_flag is True

uint16_t pkt_seq_num

sequence number of the SDU

uint16_t data_len

length of the SDU to be sent

uint8_t *p_data

point to data to be sent

struct rtk_bt_le_iso_direct_iso_data_ind_t
#include <rtk_bt_le_iso.h>

Indication of ISO Datat packet with cb_type RTK_BT_LE_ISO_EVT_DATA_RECEIVE_IND .

Public Members

uint16_t iso_conn_handle

Connection handle of ISO.

rtk_bt_le_iso_isoch_data_pkt_status_t pkt_status_flag

rtk_bt_le_iso_isoch_data_pkt_status_t.

uint16_t offset

Offset from start of the SDU to p_buf. e.g. p_buf + offset indicates the start of the SDU.

uint16_t iso_sdu_len

Length of the SDU.

uint16_t pkt_seq_num

The sequence number of the SDU.

bool ts_flag

Indicates whether contains time_stamp. True: contain time_stamp. False: not contain time_stamp.

uint32_t time_stamp

A time in microseconds. time_stamp is valid when ts_flag is True.

uint16_t buf_len

indicate buffer length.

uint8_t *p_buf

Point the buffer that needs to release.

struct rtk_bt_le_iso_data_send_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management ISO data send done.

Public Members

uint16_t cause

process result

uint16_t iso_conn_handle

connection handle of ISO.

uint16_t data_len

data length sent

uint8_t *p_data

point to data sent

struct rtk_bt_le_iso_cig_cis_info_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management cis info.

Public Members

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

struct rtk_bt_le_iso_cig_init_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management init definition for cig.

Public Members

uint8_t cig_num

CIG number

uint8_t cis_num

CIS number

struct rtk_bt_le_iso_cig_get_conn_handle_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management get acl conn handle.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t *p_conn_handle

Connection handle

struct rtk_bt_le_iso_cig_get_cis_info_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management get cis info.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

rtk_bt_le_iso_cig_cis_info_t *p_cis_info
struct rtk_bt_le_iso_cis_channel_info_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management CIS connection handle.

Public Members

rtk_bt_le_iso_cis_connetion_state_t state

CIS Connection state. rtk_bt_le_iso_cis_connetion_state_t.

rtk_bt_le_iso_cis_role_t role

CIS role. rtk_bt_le_iso_cis_role_t.

uint8_t data_path_flags

Specify which directions have been configured. rtk_bt_le_iso_data_path_direction_flag_t.

uint8_t data_path_adding_path

rtk_bt_le_iso_data_path_direction_t.

bool data_path_adding

Indicate whether data path is setup.

uint8_t data_path_removing_path

Specify which directions are to have the data path removed. rtk_bt_le_iso_data_path_direction_flag_t.

bool data_path_removing

Indicate whether data path is removing.

uint32_t cig_sync_delay

The maximum time, in microseconds, for transmission of PDUs of all CISes in a CIG event. Range: 0x0000EA to 0x7FFFFF

uint32_t cis_sync_delay

The maximum time, in microseconds, for transmission of PDUs of the specified CIS in a CIG event. Range: 0x0000EA to 0x7FFFFF

uint32_t transport_latency_m_to_s

The actual transport latency, in microseconds, from Central to Peripheral. Range: 0x0000EA to 0x7FFFFF

uint32_t transport_latency_s_to_m

The actual transport latency, in microseconds, from Peripheral to Central. Range: 0x0000EA to 0x7FFFFF

uint8_t phy_m_to_s

Indicate the PHY selected for packets from the Central to Peripheral 0x01:LE PHY 1M used. 0x02:LE PHY 2M used. 0x03:LE Coded PHY used.

uint8_t phy_s_to_m

Indicate the PHY selected for packets from the Peripheral to Central

uint8_t nse

Maximum number of subevents in each isochronous event.

uint8_t bn_m_to_s

0x00: No isochronous data from the Central to the Peripheral. 0x01 to 0x0F: The burst number for Central to Peripheral transmission.

uint8_t bn_s_to_m

0x00: No isochronous data from the Peripheral to the Central. 0x01 to 0x0F: The burst number for Peripheral to Central transmission.

uint8_t ft_m_to_s

The flush timeout, in multiples of the ISO_Interval for the CIS, for each payload sent from the Central to the Peripheral. Range: 0x01 to 0xFF

uint8_t ft_s_to_m

The flush timeout, in multiples of the ISO_Interval for the CIS, for each payload sent from the Peripheral to the Central. Range: 0x01 to 0xFF

uint16_t max_pdu_m_to_s

Maximum size, in octets, of the payload from Central to Peripheral.

uint16_t max_pdu_s_to_m

Maximum size, in octets, of the payload from Peripheral to Central.

uint16_t iso_interval

The time between two consecutive CIS anchor points. Range: 0x0004 to 0x0C80 Time = N * 1.25 ms Time Range: 5 ms to 4 s

bool acceptor_config_sdu_flag

Only used by RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR. True: sdu parameters listed below are configured by Application. check sdu length when RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR calls rtk_bt_le_iso_data_send. False: Default value. sdu parameters listed below are not configrued by Application. Not check sdu length when RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR calls rtk_bt_le_iso_data_send.

uint32_t sdu_interval_m_to_s

Valid for RTK_BLE_ISO_ISOCH_ROLE_INITIATOR. Valid for RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR if acceptor_config_sdu_flag is True. The interval, in microseconds, between the start of consecutive SDUs from the Central's Host for all the CISes in the CIG. Range: 0x0000FF to 0x0FFFFF

uint32_t sdu_interval_s_to_m

Valid for RTK_BLE_ISO_ISOCH_ROLE_INITIATOR. Valid for RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR if acceptor_config_sdu_flag is True. The interval, in microseconds, between the start of consecutive SDUs from the Peripheral's Host for all the CISes in the CIG. Range: 0x0000FF to 0x0FFFFF

uint16_t max_sdu_m_to_s

Valid for RTK_BLE_ISO_ISOCH_ROLE_INITIATOR. Valid for RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR if acceptor_config_sdu_flag is True. Maximum size, in octets, of the payload from the Central's Host.

uint16_t max_sdu_s_to_m

Valid for RTK_BLE_ISO_ISOCH_ROLE_INITIATOR. Valid for RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR if acceptor_config_sdu_flag is True. Maximum size, in octets, of the payload from the Peripheral's Host.

struct rtk_bt_le_iso_cig_get_isoch_info_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management get isoch info.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

rtk_bt_le_iso_cis_channel_info_t *p_isoch_info
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management set CIS acl link parameter.

Public Members

Identifier of a CIS.

Connection handle

struct rtk_bt_le_iso_cig_initiator_set_cig_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management set cig param for initiator .

Public Members

uint8_t cig_id

Identifier of a CIG.

uint32_t sdu_interval_m_s

The interval, in microseconds, of periodic SDUs from the Central's Host for all the CISes in the CIG. This parameter shall be ignored for all CISes that are unidirectional from Peripheral to Central. Range: 0x0000FF to 0x0FFFFF

uint32_t sdu_interval_s_m

The interval, in microseconds, of periodic SDUs from the Peripheral's Host for all the CISes in the CIG. This parameter shall be ignored for all CISes that are unidirectional from Central to Peripheral. Range: 0x0000FF to 0x0FFFFF

uint8_t sca

The worst-case sleep clock accuracy of all the Peripherals that will participate in the CIG. 0x00: 251 ppm to 500 ppm 0x01: 151 ppm to 250 ppm 0x02: 101 ppm to 150 ppm 0x03: 76 ppm to 100 ppm 0x04: 51 ppm to 75 ppm 0x05: 31 ppm to 50 ppm 0x06: 21 ppm to 30 ppm 0x07: 0 ppm to 20 ppm

uint8_t packing

Indicate the preferred method of arranging subevents of multiple CISes. 0x00: Sequential 0x01: Interleaved

uint8_t framing

Indicate the format of the CIS Data PDUs. 0x00: Unframed 0x01: Framed

uint16_t latency_m_s

Maximum transport latency, in milliseconds, from the Central's Controller to the Peripheral's Controller. Range: 0x0005 to 0x0FA0

uint16_t latency_s_m

Maximum transport latency, in milliseconds, from the Peripheral's Controller to the Central's Controller. Range: 0x0005 to 0x0FA0

struct rtk_bt_le_iso_cig_initiator_set_cis_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management set cis param for initiator .

Public Members

uint8_t cis_id

Identifier of a CIS.

uint16_t max_sdu_m_s

Maximum size, in octets, of the payload from the Central's Host. If the CIS is unidirectional from Peripheral to Central, this parameter shall be set to 0.

uint16_t max_sdu_s_m

Maximum size, in octets, of the payload from the Peripheral's Host. If the CIS is unidirectional from Central to Peripheral, this parameter shall be set to 0.

uint8_t phy_m_s

Identify which PHY to use for transmission from the Central to the Peripheral. 0x01: LE 1M, 0x02: LE 2M, 0x03: LE Coded

uint8_t phy_s_m

Identify which PHY to use for transmission from the Peripheral to the Central. 0x01: LE 1M, 0x02: LE 2M, 0x03: LE Coded

uint8_t rtn_m_s

Number of times every CIS Data PDU should be retransmitted from the Central to the Peripheral.

uint8_t rtn_s_m

Number of times every CIS Data PDU should be retransmitted from the Peripheral to the Central.

struct rtk_bt_le_iso_set_cig_cis_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO set cig parameters struct .

Public Members

uint8_t cis_num

cis number

rtk_bt_le_iso_cig_initiator_set_cig_param_t set_cig_param

cig parameter

rtk_bt_le_iso_cig_initiator_set_cis_param_t set_cis_param[RTK_BLE_CIS_MAX_NUM]

cis parameter

struct rtk_bt_le_iso_cig_initiator_create_cis_by_cis_conn_handle_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management create cis by cis_conn_handle for initiator.

Public Members

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_count

CIS count.

uint16_t *p_cis_conn_handle

Connection handle of the CIS

struct rtk_bt_le_iso_cig_initiator_get_cis_handle_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management get cis handle for initiator.

Public Members

uint8_t cis_id

Identifier of a CIS.

uint16_t *p_cis_handle

Connection handle of the CIS

struct rtk_bt_le_iso_cig_acceptor_reject_cis_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management reject cis for acceptor.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

uint8_t reason

Reason the CIS request was rejected.

struct rtk_bt_le_iso_cig_acceptor_config_sdu_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management config sdu parameters for acceptor.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

bool acceptor_config_sdu_flag

Whether to check sdu length when acceptor calls rtk_bt_le_iso_data_send.

uint32_t sdu_interval_m_s

The interval, in microseconds, between the start of consecutive SDUs from the Central's Host for all the CISes in the CIG. Range: 0x0000FF to 0x0FFFFF

uint32_t sdu_interval_s_m

The interval, in microseconds, between the start of consecutive SDUs from the Peripheral's Host for all the CISes in the CIG. Range: 0x0000FF to 0x0FFFFF.

uint16_t max_sdu_m_s

Maximum size, in octets, of the payload from the Central's Host.

uint16_t max_sdu_s_m

Maximum size, in octets, of the payload from the Peripheral's Host

struct rtk_bt_le_iso_cig_setup_data_path_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG setup data path done event definition.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

rtk_bt_le_iso_data_path_direction_t data_path_direction

Remove path direction. If cause is not 0, data_path_direction is meaningless.

struct rtk_bt_le_iso_cig_remove_data_path_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG remove data path done event definition.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

rtk_bt_le_iso_data_path_direction_flag_t data_path_direction

< Remove path direction. If cause is not 0, data_path_direction is meaningless.

struct rtk_bt_le_iso_cig_disconnect_rsp_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG disconnect response info.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

struct rtk_bt_le_iso_cig_disconnect_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG disconnect indication info.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

uint8_t input_path_remove_ind
uint8_t output_path_remove_ind
struct rtk_bt_le_iso_cig_read_iso_tx_sync_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG read ISO tx sync info.

Public Members

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

uint16_t packet_sequence_number

The packet sequence number of an SDU. If cause is not 0, packet_sequence_number is meaningless.

uint32_t time_stamp

The CIG reference point of a transmitted SDU derived using the Controller's free running reference clock (in microseconds). If cause is not 0, time_stamp is meaningless.

uint32_t time_offset

The time offset, in microseconds, that is associated with a transmitted SDU. If cause is not 0, time_offset is meaningless.

struct rtk_bt_le_iso_cig_read_iso_tx_sync_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

rtk_bt_le_iso_cig_read_iso_tx_sync_info_t *p_tx_sync_info

Read tx sync info result

#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG read link quality info.

Public Members

Connection handle. If cause is not 0, conn_handle is meaningless.

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

Value of the Tx_UnACKed_Packets counter. If cause is not 0, tx_unacked_packets is meaningless. When Incremented: The Link Layer does not receive an acknowledgment for a CIS Data PDU that it transmitted at least once by its flush point.

Value of the Tx_Flushed_Packets counter. If cause is not 0, tx_flushed_packets is meaningless. When Incremented: The Link Layer does not transmit a specific payload by its flush point.

Value of the Tx_Last_Subevent_Packets counter for RTK_BLE_ISO_ISOCH_ROLE_ACCEPTOR. If cause is not 0, tx_last_subevent_packets is meaningless. When Incremented: The Link Layer transmits a CIS Data PDU in the last subevent of a CIS event.

Value of the Retransmitted_Packets counter. If cause is not 0, retransmitted_packets is meaningless. When Incremented: The Link Layer retransmits a CIS Data PDU.

Value of the CRC_Error_Packets counter. If cause is not 0, crc_error_packets is meaningless. When Incremented: The Link Layer receives a packet with a CRC error.

Value of the Rx_Unreceived_Packets counter. If cause is not 0, rx_unreceived_packets is meaningless. When Incremented: The Link Layer does not receive a specific payload by its flush point (on a CIS) or the end of the event it is associated with (on a BIS).

Value of the Duplicate_Packets counter. If cause is not 0, duplicate_packets is meaningless. When Incremented: The Link Layer receives a retransmission of a CIS Data PDU.

#include <rtk_bt_le_iso.h>

Public Members

Connection handle of the CIS

Read link quality info result

struct rtk_bt_le_iso_cig_initiator_add_cis_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG add CIS done for initiator.

Public Members

uint16_t cause

process result

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

struct rtk_bt_le_iso_cig_initiator_set_cig_param_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG set CIG param done for initiator.

Public Members

uint16_t cause

process result

uint8_t cig_id

Identifier of a CIG.

struct rtk_bt_le_iso_cig_initiator_set_cis_param_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG set CIS param done for initiator.

Public Members

uint16_t cause

process result

uint8_t cis_id

Identifier of a CIS.

struct rtk_bt_le_iso_cig_initiator_start_setting_cis_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG start setting CIS info for initiator.

Public Members

uint8_t cis_id

Identifier of a CIS.

uint16_t cis_conn_handle

Connection handle of the CIS

struct rtk_bt_le_iso_cig_initiator_start_setting_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG start setting done for initiator.

Public Members

uint16_t cause

process result

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_count

CIS count. If cause is not 0, cis_count is meaningless.

rtk_bt_le_iso_cig_initiator_start_setting_cis_info_t cis_info[8]

CIS info. If cause is not 0, cis_info is meaningless.

#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG set CIS ACL link for initiator.

Public Members

process result

Identifier of a CIS.

Connection handle.

struct rtk_bt_le_iso_cig_initiator_create_cis_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management create cis info for initiator.

Public Members

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

rtk_bt_le_iso_cis_connetion_state_t state

CIS connection state. rtk_bt_le_iso_cis_connetion_state_t.

uint16_t cis_conn_handle

Connection handle of the CIS

struct rtk_bt_le_iso_cig_initiator_create_cis_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG create CIS for initiator.

Public Members

uint16_t cause

process result

uint8_t cis_count

CIS count. If cause is not 0, cis_count is meaningless

rtk_bt_le_iso_cig_initiator_create_cis_info_t cis_info[8]

CIS info. If cause is not 0, cis_info is meaningless.

struct rtk_bt_le_iso_cig_cis_established_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG CIS established indication definition.

Public Members

uint16_t cause

process result

uint16_t conn_handle

Connection handle.

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

uint16_t cis_conn_handle

Connection handle of the CIS.

uint32_t cig_sync_delay

The maximum time, in microseconds, for transmission of PDUs of all CISes in a CIG event.

uint32_t cis_sync_delay

The maximum time, in microseconds, for transmission of PDUs of the specified CIS in a CIG event.

uint32_t transport_latency_m_s

The actual transport latency, in microseconds, from Central to Peripheral.

uint32_t transport_latency_s_m

The actual transport latency, in microseconds, from Peripheral to Central.

uint8_t phy_m_s

The transmitter PHY of packets from the Central 0x01:LE PHY 1M used. 0x02:LE PHY 2M used. 0x03:LE Coded PHY used.

uint8_t phy_s_m

The transmitter PHY of packets from the Peripheral 0x01:LE PHY 1M used. 0x02:LE PHY 2M used. 0x03:LE Coded PHY used.

uint8_t nse

Maximum number of subevents in each isochronous event.

uint8_t bn_m_s

0x00: No isochronous data from the Central to the Peripheral 0x01 to 0x0F: The burst number for Central to Peripheral transmission

uint8_t bn_s_m

0x00: No isochronous data from the Peripheral to the Central 0x01 to 0x0F: The burst number for Peripheral to Central transmission

uint8_t ft_m_s

The flush timeout, in multiples of the ISO_Interval for the CIS, for each payload sent from the Central to the Peripheral.

uint8_t ft_s_m

The flush timeout, in multiples of the ISO_Interval for the CIS, for each payload sent from the Peripheral to the Central.

uint16_t max_pdu_m_s

Maximum size, in octets, of the payload from Central to Peripheral.

uint16_t max_pdu_s_m

Maximum size, in octets, of the payload from Peripheral to Central.

uint16_t iso_interval

The time between two consecutive CIS anchor points. Range: 0x0004 to 0x0C80 Time = N * 1.25 ms Time Range: 5 ms to 4 s.

struct rtk_bt_le_iso_cig_setup_data_path_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG setup datapath indication.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint8_t conn_id

Connection id

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

uint8_t data_path_direction

data path.

struct rtk_bt_le_iso_cig_remove_data_path_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG remove datapath indication.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint8_t conn_id

Connection id

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

uint8_t data_path_direction

data path.

struct rtk_bt_le_iso_cig_initiator_remove_cig_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG remove CIG for initiator.

Public Members

uint16_t cause

process result

uint8_t cig_id

Identifier of a CIG.

struct rtk_bt_le_iso_cig_acceptor_request_cis_ind_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG CIS request indication for acceptor.

Public Members

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle.

uint8_t cig_id

Identifier of a CIG.

uint8_t cis_id

Identifier of a CIS.

rtk_bt_le_iso_cig_acceptor_config_cis_req_action_t cis_req_action

Action of CIS request Indicate, default is RTK_BLE_ISO_ACCEPTOR_CIS_REQ_ACTION_ACCEPT. can be configed by rtk_bt_le_iso_cig_acceptor_config_cis_req_action.

struct rtk_bt_le_iso_cig_acceptor_accept_cis_done_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management CIG accept CIS request for acceptor.

Public Members

uint16_t cause

process result

uint16_t cis_conn_handle

Connection handle of the CIS

uint16_t conn_handle

Connection handle. If cause is not 0, conn_handle is meaningless.

uint8_t cig_id

Identifier of a CIG. If cause is not 0, cig_id is meaningless.

uint8_t cis_id

Identifier of a CIS. If cause is not 0, cis_id is meaningless.

struct rtk_bt_le_iso_big_init_param_t
#include <rtk_bt_le_iso.h>

Bluetooth LE ISO management init definition for big.

Public Members

uint8_t big_num

BIG number

uint8_t bis_num

BIS number

struct rtk_bt_le_iso_big_broadcaster_param_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t num_bis

Total number of BISes in the BIG.

uint32_t sdu_interval

The interval, in microseconds, of periodic SDUs. Range: 0x0000FF to 0x0FFFFF

uint16_t max_sdu

Maximum size of an SDU, in octets.

uint16_t max_transport_latency

Maximum transport latency, in milliseconds. Range: 0x0005 to 0x0FA0

uint8_t rtn

The number of times that every BIS Data PDU should be retransmitted. Range: 0x00 to 0x1E

uint8_t phy

A bit field that indicates the PHY used for transmission of PDUs of BISes in the BIG. bit 0: The transmitter PHY of packets is LE 1M. bit 1: The transmitter PHY of packets is LE 2M. bit 2: The transmitter PHY of packets is LE Coded.

uint8_t packing

Indicate the preferred method of arranging subevents of multiple BISes. 0x00: Sequential 0x01: Interleaved

uint8_t framing

Indicate the format for sending BIS Data PDUs. 0x00: Unframed 0x01: Framed

uint8_t encryption

Identify the encryption mode of the BISes. 0x00: Unencrypted 0x01: Encrypted

uint8_t broadcast_code[16]

Used to generate the encryption key for encrypting payloads of all BISes.

struct rtk_bt_le_iso_big_broadcaster_create_param_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t adv_handle

Identify the periodic advertising train.

rtk_bt_le_iso_big_broadcaster_param_t *p_big_param

Identify the periodic advertising train.

uint8_t *big_handle

Identify the BIG.

struct rtk_bt_le_iso_big_bis_conn_handle_info_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t bis_idx
uint16_t bis_conn_handle

Connection handle of a BIS.

struct rtk_bt_le_iso_big_broadcaster_create_cmpl_info_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t cause
uint8_t big_handle

Used to identify the BIG.

uint8_t adv_handle

Used to identify the periodic advertising train.

uint32_t big_sync_delay

The maximum time in microseconds for transmission of PDUs of all BISes in a BIG event.

uint32_t transport_latency_big

The actual transport latency, in microseconds.

uint8_t phy

The PHY used to create the BIG.

uint8_t nse

The number of subevents in each BIS event in the BIG.

uint8_t bn

The number of new payloads in each BIS event.

uint8_t pto

Offset used for pre-transmissions.

uint8_t irc

The number of times a payload is transmitted in a BIS event.

uint16_t max_pdu

Maximum size, in octets, of the payload.

uint16_t iso_interval

The time between two consecutive BIG anchor points. Range: 0x0004 to 0x0C80 Time = N * 1.25 ms Time Range: 5 ms to 4 s.

uint8_t num_bis

Total number of BISes in the BIG.

rtk_bt_le_iso_big_bis_conn_handle_info_t bis_conn_handle_info[RTK_BLE_BIS_MAX_NUM]

Connection handle of BIS.

struct rtk_bt_le_iso_big_broadcaster_terminate_done_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t big_handle

Identify the BIG.

uint8_t adv_handle

Used to identify the periodic advertising train.

uint8_t cause
struct rtk_bt_le_iso_big_broadcaster_sync_state_ind_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t big_handle

Identify the BIG.

uint8_t adv_handle

Used to identify the periodic advertising train.

uint8_t sync_state

Synchronization state. rtk_bt_le_iso_big_broadcaster_sync_state_t

uint8_t cause
uint16_t bis_num

for BIG_ISOC_BROADCAST_STATE_BROADCASTING to setup data path

uint16_t bis_conn_handle[RTK_BLE_BIS_MAX_NUM]

for BIG_ISOC_BROADCAST_STATE_BROADCASTING to setup data path

struct rtk_bt_le_iso_big_broadcaster_read_tx_sync_info_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t big_handle

Used to identify the BIG.

uint8_t adv_handle

Used to identify the periodic advertising train.

uint16_t packet_sequence_number

The packet sequence number of an SDU.

uint32_t time_stamp

The BIG anchor point of a transmitted SDU derived using the Controller's free running reference clock (in microseconds).

uint32_t time_offset

The time offset, in microseconds, that is associated with a transmitted SDU.

struct rtk_bt_le_iso_big_broadcaster_read_tx_sync_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t bis_conn_handle

Connection handle of a BIS.

rtk_bt_le_iso_big_broadcaster_read_tx_sync_info_t *p_tx_sync_info

Read tx sync info result.

struct rtk_bt_le_iso_big_receiver_create_sync_param_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t encryption

Identify the encryption mode of the BIG. 0x00: Unencrypted 0x01: Encrypted

uint8_t broadcast_code[16]

Used to generate the session key to decrypt payloads of an encrypted BIS.

uint8_t mse

The maximum number of subevents that a Controller should use to receive data payloads in each interval for a BIS. 0x00: The Controller can schedule reception of any number of subevents up to NSE. 0x01 to 0x1F: Maximum number of subevents that should be used to receive data payloads in each BIS event

uint16_t big_sync_timeout

Specify the maximum permitted time between successful receptions of BIS PDUs. Range: 0x000A to 0x4000 Time = N*10 ms Time Range: 100 ms to 163.84 s

uint8_t num_bis

Total number of BISes to synchronize.

uint8_t bis[RTK_BLE_BIS_MAX_NUM]

A list of indices corresponding to BIS(es).

struct rtk_bt_le_iso_big_receiver_create_sync_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t sync_handle

Identify the periodic advertising train.

rtk_bt_le_iso_big_receiver_create_sync_param_t *p_sync_param

GAP Synchronized Receiver BIG create sync parameter.

uint8_t *p_big_handle

Used to identify the BIG.

struct rtk_bt_le_iso_big_receiver_sync_established_info_t
#include <rtk_bt_le_iso.h>

Public Members

uint16_t cause
uint8_t big_handle

The identifier of the BIG.

uint8_t sync_id

Identify the periodic advertising train.

uint16_t sync_handle

Sync_Handle identifying the periodic advertising train.

uint32_t transport_latency_big

The actual transport latency, in microseconds.

uint8_t nse

The number of subevents in each BIS event in the BIG.

uint8_t bn

The number of new payloads in each BIS event.

uint8_t pto

Offset used for pre-transmissions.

uint8_t irc

The number of times a payload is transmitted in a BIS event.

uint16_t max_pdu

Maximum size, in octets, of the payload.

uint16_t iso_interval

The time between two consecutive BIG anchor points. Range: 0x0004 to 0x0C80 Time = N * 1.25 ms Time Range: 5 ms to 4 s.

uint8_t num_bis

Indicate the number of BISes in the synchronized BIG specified

rtk_bt_le_iso_big_bis_conn_handle_info_t bis_conn_handle_info[RTK_BLE_BIS_MAX_NUM]

Connection handle of BIS.

struct rtk_bt_le_iso_big_receiver_sync_state_ind_t
#include <rtk_bt_le_iso.h>

Public Members

uint8_t big_handle

Identify the BIG.

uint8_t sync_state

Synchronization state. rtk_bt_le_iso_big_receiver_sync_state_t

uint8_t sync_id

Identify the periodic advertising train.

uint16_t sync_handle

Sync_Handle identifying the periodic advertising train.

uint8_t cause
uint16_t bis_num
uint16_t bis_conn_handle[RTK_BLE_BIS_MAX_NUM]
#include <rtk_bt_le_iso.h>

Public Members

The identifier of the BIG.

Identify the periodic advertising train.

Sync_Handle identifying the periodic advertising train.

The value shall be ignored for BIS.

The value shall be ignored for BIS.

The value shall be ignored for BIS.

The value shall be ignored for BIS.

Value of the CRC_Error_Packets counter. When Incremented: The Link Layer receives a packet with a CRC error.

Value of the Rx_Unreceived_Packets counter. When Incremented: The Link Layer does not receive a specific payload by its flush point (on a BIS) or the end of the event it is associated with (on a BIS).

The value shall be ignored for BIS.

struct rtk_bt_le_iso_big_setup_data_path_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management BIG setup datapath indication.

Public Members

uint16_t cause

process result

uint16_t bis_conn_handle

Connection handle of the BIS

uint8_t big_handle

Used to identify the BIG

uint8_t data_path_direction

data path.

struct rtk_bt_le_iso_big_remove_data_path_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO management BIG remove datapath indication.

Public Members

uint16_t cause

process result

uint16_t bis_conn_handle

Connection handle of the BIS

uint8_t big_handle

Used to identify the BIG

uint8_t data_path_direction

data path.

struct rtk_bt_le_iso_sync_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO sync info type.

Public Members

rtk_bt_le_iso_sync_type_t type
rtk_bt_le_pa_sync_ind_t pa_sync
rtk_bt_le_disconn_ind_t disc_ind
union rtk_bt_le_iso_sync_info_t::[anonymous] info
struct rtk_bt_le_iso_conn_handle_info_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO connection handle information.

Public Members

uint16_t iso_handle_num
uint16_t iso_handle[RTK_BLE_BIS_MAX_NUM + RTK_BLE_CIS_MAX_NUM]
struct rtk_bt_le_iso_get_conn_handle_t
#include <rtk_bt_le_iso.h>

Bluetooth BLE ISO get conncetion handle struct.

#include <rtk_bt_le_iso.h>

Public Members

Connection handle of the BIS.

Read link quality info result.

BT Mesh Types

BT Mesh Common Types

enum rtk_bt_mesh_stack_act_t

BLE MESH stack act definition.

rtk_bt_mesh_stack_act_t

Values:

enumerator RTK_BT_MESH_STACK_ACT_NODE_RESET
enumerator RTK_BT_MESH_STACK_ACT_SET_PROV_PARAM
enumerator RTK_BT_MESH_STACK_ACT_DEV_INFO_SWITCH
enumerator RTK_BT_MESH_STACK_ACT_PB_ADV_CON
enumerator RTK_BT_MESH_STACK_ACT_PB_ADV_DISCON
enumerator RTK_BT_MESH_STACK_ACT_PB_GATT_CON
enumerator RTK_BT_MESH_STACK_ACT_PB_GATT_DISCON
enumerator RTK_BT_MESH_STACK_ACT_START_PROV
enumerator RTK_BT_MESH_STACK_ACT_METHOD_CHOOSE_FOR_PROV
enumerator RTK_BT_MESH_STACK_ACT_SET_RANDOM_VALUE
enumerator RTK_BT_MESH_STACK_ACT_GET_HB_SUB_RESULT
enumerator RTK_BT_MESH_STACK_ACT_SET_MODEL_SUB
enumerator RTK_BT_MESH_STACK_ACT_PROV_SERVICE_DISCOVERY
enumerator RTK_BT_MESH_STACK_ACT_PROV_SERVICE_SET_NOTIFY
enumerator RTK_BT_MESH_STACK_ACT_PROXY_SERVICE_DISCOVERY
enumerator RTK_BT_MESH_STACK_ACT_PROXY_SERVICE_SET_NOTIFY
enumerator RTK_BT_MESH_STACK_ACT_USER_LIST_INFO
enumerator RTK_BT_MESH_STACK_ACT_FN_INIT
enumerator RTK_BT_MESH_STACK_ACT_FN_DEINIT
enumerator RTK_BT_MESH_STACK_ACT_LPN_INIT
enumerator RTK_BT_MESH_STACK_ACT_LPN_REQ
enumerator RTK_BT_MESH_STACK_ACT_LPN_SUB
enumerator RTK_BT_MESH_STACK_ACT_LPN_CLEAR
enumerator RTK_BT_MESH_STACK_ACT_LPN_DEINIT
enumerator RTK_BT_MESH_STACK_ACT_SEND_ONE_SHOT_ADV
enumerator RTK_BT_MESH_STACK_ACT_SET_RETRANS_PARAM
enumerator RTK_BT_MESH_STACK_ACT_MAX
enum rtk_bt_mesh_stack_event_t

BLE MESH stack event definition.

rtk_bt_mesh_stack_event_t

Values:

enumerator RTK_BT_MESH_STACK_EVT_DEVICE_INFO_UDB_DISPLAY
enumerator RTK_BT_MESH_STACK_EVT_DEVICE_INFO_SNB_DISPLAY
enumerator RTK_BT_MESH_STACK_EVT_DEVICE_INFO_PROV_DISPLAY
enumerator RTK_BT_MESH_STACK_EVT_DEVICE_INFO_PROXY_DISPLAY
enumerator RTK_BT_MESH_STACK_EVT_SET_AUTH_VALUE_FOR_STATIC_OOB
enumerator RTK_BT_MESH_STACK_EVT_SET_AUTH_VALUE_FOR_OUTPUT_OOB
enumerator RTK_BT_MESH_STACK_EVT_SET_AUTH_VALUE_FOR_INPUT_OOB
enumerator RTK_BT_MESH_STACK_EVT_NOTIFY_FOR_OUTPUT_OOB_VALUE
enumerator RTK_BT_MESH_STACK_EVT_NOTIFY_FOR_INPUT_OOB_VALUE
enumerator RTK_BT_MESH_STACK_EVT_CAPABILITY_NOT_SUPPORT_OF_DEVICE
enumerator RTK_BT_MESH_STACK_EVT_PROV_COMPLETE
enumerator RTK_BT_MESH_STACK_EVT_PROV_FAIL
enumerator RTK_BT_MESH_STACK_EVT_DEVICE_START_PROVED
enumerator RTK_BT_MESH_STACK_EVT_PROV_SERVICE_DIS_RESULT
enumerator RTK_BT_MESH_STACK_EVT_PROXY_SERVICE_DIS_RESULT
enumerator RTK_BT_MESH_STACK_EVT_UNPROVISIONED_DEVICE
enumerator RTK_BT_MESH_STACK_EVT_PROVISIONED_DEVICE
enumerator RTK_BT_MESH_STACK_EVT_SCAN_SWITCH
enumerator RTK_BT_MESH_STACK_EVT_START_ADV
enumerator RTK_BT_MESH_STACK_EVT_STOP_ADV
enumerator RTK_BT_MESH_STACK_EVT_LIST_INFO
enumerator RTK_BT_MESH_STACK_EVT_FN_CB
enumerator RTK_BT_MESH_STACK_EVT_LPN_CB
enumerator RTK_BT_MESH_STACK_EVT_HB_PUB_TIMER_STATE
enumerator RTK_BT_MESH_STACK_EVT_HB_SUB_TIMER_STATE
enumerator RTK_BT_MESH_STACK_EVT_HB_PUB_COUNT_UPDATE
enumerator RTK_BT_MESH_STACK_EVT_HB_SUB_PERIOD_UPDATE
enumerator RTK_BT_MESH_STACK_EVT_HB_SUB_RECEIVE
enumerator RTK_BT_MESH_STACK_EVT_RETRANS_PARAM_SETTING_RESULT
enumerator RTK_BT_MESH_STACK_EVT_DF_CB
enumerator RTK_BT_MESH_STACK_EVT_MAX
enum rtk_bt_mesh_stack_api_result_t

BLE MESH stack api result definition.

rtk_bt_mesh_stack_api_result_t

Values:

enumerator RTK_BT_MESH_STACK_API_SUCCESS
enumerator RTK_BT_MESH_STACK_API_FAIL
enum rtk_bt_mesh_stack_user_list_type_t

BLE MESH stack user list type definition.

rtk_bt_mesh_stack_user_list_type_t

Values:

enumerator RTK_BT_MESH_STACK_USER_LIST_MESH_STATE
enumerator RTK_BT_MESH_STACK_USER_LIST_DEV_UUID
enumerator RTK_BT_MESH_STACK_USER_LIST_DEV_ADDR
enumerator RTK_BT_MESH_STACK_USER_LIST_DEV_KEY
enumerator RTK_BT_MESH_STACK_USER_LIST_NET_KEY
enumerator RTK_BT_MESH_STACK_USER_LIST_APP_KEY
enumerator RTK_BT_MESH_STACK_USER_LIST_NORMAL_VALS
enumerator RTK_BT_MESH_STACK_USER_LIST_ELEMENT_INFO
enumerator RTK_BT_MESH_STACK_USER_LIST_MODEL_INFO
enumerator RTK_BT_MESH_STACK_USER_LIST_MODEL_APP_KEY
enumerator RTK_BT_MESH_STACK_USER_LIST_MODEL_PUB_INFO
enumerator RTK_BT_MESH_STACK_USER_LIST_MODEL_SUB_INFO
enumerator RTK_BT_MESH_STACK_USER_LIST_DF_PATH_INFO
enumerator RTK_BT_MESH_STACK_USER_LIST_SUBNET_BRIDGE_INFO
enum rtk_bt_mesh_stack_net_key_type

BLE MESH net key type.

rtk_bt_mesh_stack_evt_net_key_type

Values:

enumerator RTK_BT_MESH_NET_KEY_MASTER
enumerator RTK_BT_MESH_NET_KEY_FN
enumerator RTK_BT_MESH_NET_KEY_DF
enum rtk_bt_mesh_stack_role_t

BLE MESH device role type definition.

rtk_bt_mesh_stack_role_t

Values:

enumerator RTK_BT_MESH_ROLE_DEVICE
enumerator RTK_BT_MESH_ROLE_PROVISIONER
enum rtk_bt_mesh_stack_prov_dis_result

BLE MESH prov service discovery result type.

rtk_bt_mesh_stack_prov_dis_result

Values:

enumerator RTK_BT_MESH_PROV_DISC_DONE
enumerator RTK_BT_MESH_PROV_DISC_FAIL
enumerator RTK_BT_MESH_PROV_DISC_NOT_FOUND
enum rtk_bt_mesh_stack_proxy_dis_result

BLE MESH proxy service discovery result type.

rtk_bt_mesh_stack_proxy_dis_result

Values:

enumerator RTK_BT_MESH_PROXY_DISC_DONE
enumerator RTK_BT_MESH_PROXY_DISC_FAIL
enumerator RTK_BT_MESH_PROXY_DISC_NOT_FOUND
enum rtk_bt_mesh_stack_evt_fn_cb_type

BLE MESH friendship FN event cb type.

rtk_bt_mesh_stack_evt_fn_cb_type

Values:

enumerator RTK_BT_MESH_FN_CB_TYPE_ESTABLISHING
enumerator RTK_BT_MESH_FN_CB_TYPE_ESTABLISH_FAIL_NO_POLL
enumerator RTK_BT_MESH_FN_CB_TYPE_ESTABLISH_SUCCESS
enumerator RTK_BT_MESH_FN_CB_TYPE_FRND_LOST
enum rtk_bt_mesh_stack_lpn_req_result_type

BLE MESH friendship FN event cb type.

rtk_bt_mesh_stack_evt_fn_cb_type

Values:

enumerator RTK_BT_MESH_LPN_REQ_REASON_SUCCESS
enumerator RTK_BT_MESH_LPN_REQ_REASON_REQ_PARAMS_INVALID
enumerator RTK_BT_MESH_LPN_REQ_REASON_NET_KEY_INDEX_INVALID
enumerator RTK_BT_MESH_LPN_REQ_REASON_FRND_ON_SAME_NET_KEY_INDEX
enumerator RTK_BT_MESH_LPN_REQ_REASON_FRND_INDEX_INVALID
enumerator RTK_BT_MESH_LPN_REQ_REASON_FRND_ALREADY_EXIST_OR_ESTABLISING
enumerator RTK_BT_MESH_LPN_REQ_REASON_RESOURCE_INSUFFICIENT
enumerator RTK_BT_MESH_LPN_REQ_REASON_PROXY_SERVER_DO_NOT_SUPPORT_LPN
enum rtk_bt_mesh_stack_evt_lpn_cb_type

BLE MESH friendship LPN event cb type.

rtk_bt_mesh_stack_evt_lpn_cb_type

Values:

enumerator RTK_BT_MESH_LPN_CB_TYPE_ESTABLISH_SUCCESS
enumerator RTK_BT_MESH_LPN_CB_TYPE_ESTABLISH_FAIL_NO_OFFER
enumerator RTK_BT_MESH_LPN_CB_TYPE_ESTABLISH_FAIL_NO_UPDATE
enumerator RTK_BT_MESH_LPN_CB_TYPE_FRIENDSHIP_LOST
enumerator RTK_BT_MESH_LPN_CB_TYPE_UNKNOWN
enum rtk_bt_mesh_stack_prov_cb_fail_type_t

BLE MESH prov fail reason type.

rtk_bt_mesh_stack_prov_cb_fail_type_t

Values:

enumerator RTK_BT_MESH_PROV_CB_FAIL_TYPE_BEARER_LOSS

pb-adv link close & le link disconnect

enumerator RTK_BT_MESH_PROV_CB_FAIL_TYPE_BEARER_TIMEOUT

pb-adv transaction timeout MESH_PB_GENERIC_TIMEOUT_PERIOD

enumerator RTK_BT_MESH_PROV_CB_FAIL_TYPE_BEARER_IDLE

pb-adv link idle timeout MESH_PB_ADV_LINK_IDLE_TIMEOUT

enumerator RTK_BT_MESH_PROV_CB_FAIL_TYPE_PROCEDURE_TIMEOUT

prov procedure timeout MESH_PROV_TIMEOUT_PERIOD

enumerator RTK_BT_MESH_PROV_CB_FAIL_TYPE_PROCEDURE_ABNORMAL

prov procedure fail prov_result_t

enum [anonymous]

BLE MESH device proxy adv info structure.

proxy_adv_type_t

Values:

enumerator RTK_BT_MESH_PROXY_ADV_TYPE_NET_ID
enumerator RTK_BT_MESH_PROXY_ADV_TYPE_NODE_IDENTITY
enum rtk_bt_mesh_stack_hb_timer_state_t

BLE MESH heartbeat timer state date structure.

rtk_bt_mesh_stack_hb_timer_state_t

Values:

enumerator RTK_BT_MESH_STACK_HB_TIMER_STATE_START
enumerator RTK_BT_MESH_STACK_HB_TIMER_STATE_STOP
enum rtk_bt_mesh_prov_generic_cb_type_t

BLE MESH PB ADV link state RTK_BT_MESH_STACK_EVT_PB_ADV_LINK_STATE.

rtk_bt_mesh_prov_generic_cb_type_t

Values:

enumerator RTK_BT_MESH_PB_GENERIC_CB_MSG_ACKED
enumerator RTK_BT_MESH_PB_GENERIC_CB_MSG
enum rtk_bt_mesh_stack_prov_cap_algorithm_t

BLE MESH Algorithm of provisioning method unprovisioned device supported when provisioning.

rtk_bt_mesh_stack_prov_cap_algorithm_t

Values:

enumerator RTK_BT_MESH_PROV_CAP_ALGO_FIPS_P256_ELLIPTIC_CURVE
enum rtk_bt_mesh_stack_prov_cap_public_key_t

BLE MESH Public Key Type unprovisioned device supported when provisioning.

rtk_bt_mesh_stack_prov_cap_public_key_t

Values:

enumerator RTK_BT_MESH_PROV_CAP_PUBLIC_KEY_OOB
enum rtk_bt_mesh_stack_prov_cap_static_oob_t

BLE MESH Static OOB Type unprovisioned device supported when provisioning.

rtk_bt_mesh_stack_prov_cap_static_oob_t

Values:

enumerator RTK_BT_MESH_PROV_CAP_NOT_SUPPORT_STATIC_OOB
enumerator RTK_BT_MESH_PROV_CAP_SUPPORT_STATIC_OOB
enum rtk_bt_mesh_stack_prov_cap_output_oob_action_t

BLE MESH Output OOB Action unprovisioned device supported when provisioning.

rtk_bt_mesh_stack_prov_cap_output_oob_action_t

Values:

enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_NOT_ENABLE
enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_BLINK
enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_BEEP
enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_VIBRATE
enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_OUTPUT_NUMERIC
enumerator RTK_BT_MESH_PROV_CAP_OUTPUT_OOB_ACTION_OUTPUT_ALPHANUMERIC
enum rtk_bt_mesh_stack_prov_cap_input_oob_action_t

BLE MESH Input OOB Actions unprovisioned device supported when provisioning.

rtk_bt_mesh_stack_prov_cap_input_oob_action_t

Values:

enumerator RTK_BT_MESH_PROV_CAP_INPUT_OOB_ACTION_NOT_ENABLE
enumerator RTK_BT_MESH_PROV_CAP_INPUT_OOB_ACTION_BIT_PUSH
enumerator RTK_BT_MESH_PROV_CAP_INPUT_OOB_ACTION_BIT_TWIST
enumerator RTK_BT_MESH_PROV_CAP_INPUT_OOB_ACTION_BIT_INPUT_NUMERIC
enumerator RTK_BT_MESH_PROV_CAP_INPUT_OOB_ACTION_BIT_INPUT_ALPHANUMERIC
enum rtk_bt_mesh_prov_start_algorithm_t

BLE MESH Algorithm values used for provisioner when provisioning.

Values:

enumerator RTK_BT_MESH_PROV_START_FIPS_P256_ELLIPTIC_CURVE
enum rtk_bt_mesh_prov_start_public_key_t

BLE MESH Public Key values used for provisioner when provisioning.

Values:

enumerator RTK_BT_MESH_PROV_START_NO_OOB_PUBLIC_KEY
enumerator RTK_BT_MESH_PROV_START_OOB_PUBLIC_KEY
enum rtk_bt_mesh_prov_auth_method_t

BLE MESH prov auth method for Authentication used for provisioner when provisioning.

rtk_bt_mesh_prov_auth_method_t

Values:

enumerator RTK_BT_MESH_PROV_AUTH_METHOD_NO_OOB
enumerator RTK_BT_MESH_PROV_AUTH_METHOD_STATIC_OOB
enumerator RTK_BT_MESH_PROV_AUTH_METHOD_OUTPUT_OOB
enumerator RTK_BT_MESH_PROV_AUTH_METHOD_INPUT_OOB
enum rtk_bt_mesh_prov_start_output_oob_action_t

BLE MESH prov Output OOB Action values used for provisioner when provisioning.

Values:

enumerator RTK_BT_MESH_PROV_START_OUTPUT_OOB_ACTION_BLINK
enumerator RTK_BT_MESH_PROV_START_OUTPUT_OOB_ACTION_BEEP
enumerator RTK_BT_MESH_PROV_START_OUTPUT_OOB_ACTION_VIBRATE
enumerator RTK_BT_MESH_PROV_START_OUTPUT_OOB_ACTION_OUTPUT_NUMERIC
enumerator RTK_BT_MESH_PROV_START_OUTPUT_OOB_ACTION_OUTPUT_ALPHANUMERIC
enum rtk_bt_mesh_prov_start_input_oob_action_t

BLE MESH prov Input OOB Actions used for provisioner when provisioning.

Values:

enumerator RTK_BT_MESH_PROV_START_INPUT_OOB_ACTION_PUSH
enumerator RTK_BT_MESH_PROV_START_INPUT_OOB_ACTION_TWIST
enumerator RTK_BT_MESH_PROV_START_INPUT_OOB_ACTION_INPUT_NUMERIC
enumerator RTK_BT_MESH_PROV_START_INPUT_OOB_ACTION_INPUT_ALPHANUMERIC
typedef uint8_t proxy_adv_type_t
struct rtk_bt_mesh_stack_act_set_prov_param_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov param set structure.

rtk_bt_mesh_stack_act_set_prov_param_t

Public Members

uint16_t unicast_addr
uint8_t net_key[16]
uint8_t app_key[16]
uint8_t dev_key[16]
struct rkt_bt_mesh_stack_act_device_info_set_t
#include <rtk_bt_mesh_common.h>

BLE MESH device info display switch param structure.

rkt_bt_mesh_stack_act_device_info_set_t

Public Members

uint8_t dev_info_dis
struct rtk_bt_mesh_stack_act_pb_adv_con_t
#include <rtk_bt_mesh_common.h>

BLE MESH pbadv link open param structure.

rtk_bt_mesh_stack_act_pb_adv_con_t

Public Members

uint8_t uuid[16]
union rtk_bt_mesh_stack_act_pb_gatt_con_t
#include <rtk_bt_mesh_common.h>

BLE MESH establish pb gatt connection param structure.

rtk_bt_mesh_stack_act_pb_gatt_con_t

Public Members

rtk_bt_le_create_conn_param_t conn_param
uint8_t is_prov_link
uint8_t uuid[16]
uint8_t net_idx
union rtk_bt_mesh_stack_act_pb_gatt_con_t::[anonymous]::[anonymous] u
struct rtk_bt_mesh_stack_act_pb_gatt_con_t::[anonymous] param
union rtk_bt_mesh_stack_act_pb_gatt_discon_t
#include <rtk_bt_mesh_common.h>

BLE MESH pb gatt disconnection param structure.

rtk_bt_mesh_stack_act_pb_gatt_discon_t

Public Members

uint16_t conn_handle
uint8_t is_prov_link
uint8_t net_idx
struct rtk_bt_mesh_stack_act_pb_gatt_discon_t::[anonymous] param
struct rtk_bt_mesh_stack_act_start_prov_t
#include <rtk_bt_mesh_common.h>

BLE MESH pbadv start provisioning param structure.

rtk_bt_mesh_stack_act_start_prov_t

Public Members

uint8_t attn_dur
struct rtk_bt_mesh_stack_act_prov_dis_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov service discovery param structure.

rtk_bt_mesh_stack_act_prov_dis_t

Public Members

uint16_t conn_handle
struct rtk_bt_mesh_stack_evt_prov_dis_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov service discovery event structure.

rtk_bt_mesh_stack_evt_prov_dis_t

Public Members

rtk_bt_mesh_stack_prov_dis_result dis_result
struct rtk_bt_mesh_stack_act_prov_set_notify_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov service notify enable param structure.

rtk_bt_mesh_stack_act_prov_notify_enable_t

Public Members

bool is_enable
struct rtk_bt_mesh_stack_act_proxy_dis_t
#include <rtk_bt_mesh_common.h>

BLE MESH proxy service discovery param structure.

rtk_bt_mesh_stack_act_proxy_dis_t

Public Members

uint16_t conn_handle
struct rtk_bt_mesh_stack_evt_proxy_dis_t
#include <rtk_bt_mesh_common.h>

BLE MESH proxy service discovery event structure.

rtk_bt_mesh_stack_evt_proxy_dis_t

Public Members

rtk_bt_mesh_stack_proxy_dis_result dis_result
struct rtk_bt_mesh_stack_act_proxy_set_notify_t
#include <rtk_bt_mesh_common.h>

BLE MESH proxy service notify enable param structure.

rtk_bt_mesh_stack_act_proxy_set_notify_t

Public Members

bool is_enable
struct rtk_bt_mesh_stack_evt_scan_switch_t
#include <rtk_bt_mesh_common.h>

BLE MESH scan switch event structure.

rtk_bt_mesh_stack_evt_scan_switch_t

Public Members

bool scan_enable
struct rtk_bt_mesh_stack_act_send_adv_t
#include <rtk_bt_mesh_common.h>

BLE MESH send adv param structure.

rtk_bt_mesh_stack_act_send_adv_t

Public Members

uint8_t adv_raw_data[RTK_BT_LE_MAX_ADV_DATA_LEN]
uint8_t adv_data_len
rtk_bt_le_adv_type_t adv_type
rtk_bt_le_addr_type_t addr_type
struct rtk_bt_mesh_stack_evt_start_adv_t
#include <rtk_bt_mesh_common.h>

BLE MESH start adv event structure.

rtk_bt_mesh_stack_evt_start_adv_t

Public Members

uint16_t result
struct rtk_bt_mesh_stack_evt_stop_adv_t
#include <rtk_bt_mesh_common.h>

BLE MESH stop adv event structure.

rtk_bt_mesh_stack_evt_stop_adv_t

Public Members

uint16_t result
struct rtk_bt_mesh_stack_act_fn_init_t
#include <rtk_bt_mesh_common.h>

BLE MESH friend node init param structure.

rtk_bt_mesh_stack_act_fn_init_t

Public Members

uint8_t lpn_num
uint8_t queue_size
uint8_t rx_window
struct rtk_bt_mesh_stack_evt_fn_t
#include <rtk_bt_mesh_common.h>

BLE MESH friendship FN event structure.

rtk_bt_mesh_stack_evt_fn_t

Public Members

rtk_bt_mesh_stack_evt_fn_cb_type cb_type
uint16_t lpn_addr
struct rtk_bt_mesh_stack_act_lpn_init_t
#include <rtk_bt_mesh_common.h>

BLE MESH low pwer node init param structure.

rtk_bt_mesh_stack_act_lpn_init_t

Public Members

uint8_t fn_num
struct rtk_bt_mesh_stack_act_lpn_req_t
#include <rtk_bt_mesh_common.h>

BLE MESH low pwer node request a friendship param structure.

rtk_bt_mesh_stack_act_lpn_req_t

Public Members

uint8_t fn_index
uint16_t net_key_index
uint32_t poll_interval
uint32_t poll_timeout
uint8_t frnd_rx_delay
uint8_t frnd_rx_widen
struct rtk_bt_mesh_stack_act_lpn_sub_t
#include <rtk_bt_mesh_common.h>

BLE MESH low pwer node subscribe add or remove param structure.

rtk_bt_mesh_stack_act_lpn_sub_t

Public Members

uint8_t fn_index
uint16_t addr
bool add_rm
struct rtk_bt_mesh_stack_act_lpn_clear_t
#include <rtk_bt_mesh_common.h>

BLE MESH low pwer node clear friendship param structure.

rtk_bt_mesh_stack_act_lpn_clear_t

Public Members

uint8_t fn_index
struct rtk_bt_mesh_stack_evt_lpn_t
#include <rtk_bt_mesh_common.h>

BLE MESH friendship LPN event structure.

rtk_bt_mesh_stack_evt_lpn_t

Public Members

rtk_bt_mesh_stack_evt_lpn_cb_type cb_type
uint16_t fn_addr
struct rtk_bt_mesh_stack_evt_prov_fail_t
#include <rtk_bt_mesh_common.h>

BLE MESH provisioning fail reason structure.

rtk_bt_mesh_stack_evt_prov_fail_t

Public Members

rtk_bt_mesh_stack_prov_cb_fail_type_t fail_reason
struct rtk_bt_mesh_stack_evt_provisioned_device_t
#include <rtk_bt_mesh_common.h>

BLE MESH provisioned device info structure.

rtk_bt_mesh_stack_evt_provisioned_device_t

Public Members

uint16_t unicast_addr
struct rtk_bt_mesh_stack_device_info_common_data
#include <rtk_bt_mesh_common.h>

BLE MESH device beacon common info structure.

rtk_bt_mesh_stack_device_info_common_data

Public Members

uint8_t bt_addr[6]
uint8_t bt_addr_type
int8_t rssi
struct rtk_bt_mesh_stack_evt_dev_info_udb_t
#include <rtk_bt_mesh_common.h>

BLE MESH device unprovisioned device beacon info structure.

rtk_bt_mesh_stack_evt_dev_info_udb_t

Public Members

rtk_bt_mesh_stack_device_info_common_data dev_info
uint8_t dev_uuid[16]
uint8_t oob_info[2]
uint8_t uri_hash[4]
struct rtk_bt_mesh_stack_evt_dev_info_snb_t
#include <rtk_bt_mesh_common.h>

BLE MESH device secure network beacon info structure.

rtk_bt_mesh_stack_evt_dev_info_snb_t

Public Members

rtk_bt_mesh_stack_device_info_common_data dev_info
uint8_t key_refresh_flag

bit0: key refresh flag

uint8_t iv_update_flag

bit1: IV update flag

uint8_t rfu

reserved for future use

uint8_t net_id[8]

Network ID.

uint8_t iv_index[4]

IV Index.

uint8_t auth[8]

Authenticates the packet contents, computed with the Network Key over the [KR, NID, CIVI] fields.

struct rtk_bt_mesh_stack_evt_prov_complete_t
#include <rtk_bt_mesh_common.h>

BLE MESH device provisioning complete info structure.

rtk_bt_mesh_stack_evt_prov_complete_t

Public Members

uint16_t unicast_addr
bool dkri_flag
uint8_t dkri
struct rtk_bt_mesh_stack_prov_oob_info_t
#include <rtk_bt_mesh_common.h>

BLE MESH device oob info structure.

rtk_bt_mesh_stack_prov_oob_info_t

Public Members

uint16_t other
uint16_t electronic_uri
uint16_t qr_code

2D machine-readable code

uint16_t bar_code
uint16_t nfc

Near Field Communication (NFC)

uint16_t number
uint16_t string
uint16_t rfu
uint16_t on_box
uint16_t inside_box
uint16_t on_paper
uint16_t inside_manual
uint16_t on_device
struct rtk_bt_mesh_stack_evt_dev_info_provision_adv_t
#include <rtk_bt_mesh_common.h>

BLE MESH device provisioin adv info structure.

rtk_bt_mesh_stack_evt_dev_info_provision_adv_t

Public Members

rtk_bt_mesh_stack_device_info_common_data dev_info
uint8_t dev_uuid[16]
rtk_bt_mesh_stack_prov_oob_info_t oob_info
struct rtk_bt_mesh_stack_mesh_service_data_proxy_t
#include <rtk_bt_mesh_common.h>

BLE MESH device service data info structure.

rtk_bt_mesh_stack_mesh_service_data_proxy_t

Public Members

proxy_adv_type_t type
uint8_t net_id[8]
uint8_t hash[8]
uint8_t random[8]
union rtk_bt_mesh_stack_mesh_service_data_proxy_t::[anonymous] [anonymous]
struct rtk_bt_mesh_stack_evt_dev_info_proxy_adv_t
#include <rtk_bt_mesh_common.h>

BLE MESH device proxy data info structure.

rtk_bt_mesh_stack_evt_dev_info_proxy_adv_t

struct rtk_bt_mesh_stack_hb_data_timer_state_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat data timer state date structure.

rtk_bt_mesh_stack_hb_data_timer_state_t

Public Members

rtk_bt_mesh_stack_hb_timer_state_t timer_state
uint16_t period
struct rtk_bt_mesh_stack_hb_pub_count_update_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat publish count update date structure.

rtk_bt_mesh_stack_hb_pub_count_update_t

Public Members

uint16_t count
struct rtk_bt_mesh_stack_hb_sub_period_update_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat subscription period update date structure.

rtk_bt_mesh_stack_hb_sub_period_update_t

Public Members

uint16_t period
union rtk_bt_mesh_stack_hb_pub_features_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat publish device feature date structure.

rtk_bt_mesh_stack_hb_pub_features_t

Public Members

uint16_t raw
uint16_t relay
uint16_t proxy
uint16_t frnd
uint16_t lpn
uint16_t rfu
struct rtk_bt_mesh_stack_hb_pub_features_t::[anonymous] [anonymous]
struct rtk_bt_mesh_stack_hb_data_sub_receive_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat message date structure.

rtk_bt_mesh_stack_hb_data_sub_receive_t

Public Members

uint16_t src
uint8_t init_ttl
rtk_bt_mesh_stack_hb_pub_features_t features
uint8_t ttl
struct rtk_bt_mesh_hb_sub_t
#include <rtk_bt_mesh_common.h>

BLE MESH heartbeat subscription result date structure.

rtk_bt_mesh_hb_sub_t

Public Members

uint16_t src

source address for heartbeat messages a node shall process

uint16_t dst

determines the destination address for heartbeat messages

uint16_t period

preiod for processing periodical heartbeat transport control messages 0: heartbeat messages are not being processed 1-0xffff: remaining period in seconds for processing periodical heartbeat message

uint16_t count

number of heartbeat messages that received 0-0xfffe: number of heartbeat messages received 0xffff: more than 0xfffe messages have been received

uint8_t min_hops

minimum hops in received heartbeat messages

uint8_t max_hops

maximum hops in received heartbeat messages

struct rtk_bt_mesh_set_model_subscribe_t
#include <rtk_bt_mesh_common.h>

BLE MESH set model subscribe date structure.

rtk_bt_mesh_set_model_subscribe_t

Public Members

uint8_t element_index
uint32_t model_id
uint16_t sub_addr
struct rtk_bt_mesh_stack_act_set_random_value_t
#include <rtk_bt_mesh_common.h>

BLE MESH set random value data structure for oob in Authentication process of provisioning.

rtk_bt_mesh_stack_act_set_random_value_t

Public Members

uint32_t random
struct rtk_bt_mesh_stack_set_auth_value_for_static_oob
#include <rtk_bt_mesh_common.h>

BLE MESH set auth value event for static oob in Authentication process when provisioning.

rtk_bt_mesh_stack_set_auth_value_for_static_oob

Public Members

bool status
uint8_t data[16]
struct rtk_bt_mesh_stack_set_auth_value_for_oob_data
#include <rtk_bt_mesh_common.h>

BLE MESH set auth value event for output or input oob in Authentication process when provisioning.

rtk_bt_mesh_stack_set_auth_value_for_oob_data

Public Members

bool status
uint32_t random
union rtk_bt_mesh_prov_auth_action_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov auth action values used for provisioner when provisioning.

rtk_bt_mesh_prov_auth_action_t

Public Members

uint8_t oob_action
rtk_bt_mesh_prov_start_output_oob_action_t output_oob_action
rtk_bt_mesh_prov_start_input_oob_action_t input_oob_action
union rtk_bt_mesh_prov_auth_size_t
#include <rtk_bt_mesh_common.h>

BLE MESH prov auth action size used for provisioner when provisioning.

rtk_bt_mesh_prov_auth_size_t

Public Members

uint8_t oob_size
uint8_t output_oob_size
uint8_t input_oob_size
struct rtk_bt_mesh_stack_prov_start_t
#include <rtk_bt_mesh_common.h>

BLE MESH provisioning method used for provisioner when provisioning.

rtk_bt_mesh_stack_prov_start_t

struct rtk_bt_mesh_stack_set_retrans_param_t
#include <rtk_bt_mesh_common.h>

BLE MESH set retransmit parameter.

rtk_bt_mesh_stack_set_retrans_param_t

Public Members

uint8_t ttl
uint8_t relay_retrans_count
uint8_t net_retrans_count
uint8_t trans_retrans_count

BT Mesh Config Client Model

enum rtk_bt_mesh_config_client_api_t

BLE MESH config client model act and event definition.

rtk_bt_mesh_config_client_api_t

Values:

enumerator RTK_BT_MESH_CONFIG_MODEL_ADD_APP_KEY
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_BIND
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_ADD
enumerator RTK_BT_MESH_CONFIG_MODEL_DEFAULT_TTL_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_DEFAULT_TTL_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_DEFAULT_TTL_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_RELAY_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_RELAY_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_RELAY_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_TRANSMIT_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_TRANSMIT_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_TRANSMIT_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_NODE_RESET
enumerator RTK_BT_MESH_CONFIG_MODEL_NODE_RESET_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_COMPO_DATA_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_BEACON_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_BEACON_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_PROXY_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_PROXY_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_PUB_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_PUB_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_DELETE
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_DELETE_ALL
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_OVERWRITE
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_ADD
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_UPDATE
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_DELETE
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_APP_KEY_UPDATE
enumerator RTK_BT_MESH_CONFIG_MODEL_APP_KEY_DELETE
enumerator RTK_BT_MESH_CONFIG_MODEL_APP_KEY_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_NODE_IDENTITY_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_NODE_IDENTITY_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_UNBIND
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_FRND_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_FRND_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_LPN_POLL_TIMEOUT_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_KEY_REFRESH_PHASE_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_KEY_REFRESH_PHASE_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_PUB_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_PUB_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_SUB_GET
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_SUB_SET
enumerator RTK_BT_MESH_CONFIG_MODEL_BEACON_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_COMPO_DATA_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_PROXY_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_PUB_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_SUB_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_SIG_MODEL_SUB_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_VENDOR_MODEL_SUB_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_NET_KEY_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_APP_KEY_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_APP_KEY_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_NODE_IDENTITY_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_MODEL_APP_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_SIG_MODEL_APP_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_VENDOR_MODEL_APP_LIST
enumerator RTK_BT_MESH_CONFIG_MODEL_FRND_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_LPN_POLL_TO_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_KEY_REFRESH_PHASE_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_PUB_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_HB_SUB_STAT
enumerator RTK_BT_MESH_CONFIG_MODEL_MAX
enum rtk_bt_mesh_msg_stat_t

BLE MESH config client model received msg status definition.

rtk_bt_mesh_msg_stat_t

Values:

enumerator RTK_BT_MESH_MSG_STAT_SUCCESS
enumerator RTK_BT_MESH_MSG_STAT_INVALID_ADDR
enumerator RTK_BT_MESH_MSG_STAT_INVALID_MODEL
enumerator RTK_BT_MESH_MSG_STAT_INVALID_APP_KEY_INDEX
enumerator RTK_BT_MESH_MSG_STAT_INVALID_NET_KEY_INDEX
enumerator RTK_BT_MESH_MSG_STAT_INSUFFICIENT_RESOURCES
enumerator RTK_BT_MESH_MSG_STAT_KEY_INDEX_ALREADY_STORED
enumerator RTK_BT_MESH_MSG_STAT_INVALID_PUB_PARAMS
enumerator RTK_BT_MESH_MSG_STAT_NOT_SUB_MODEL
enumerator RTK_BT_MESH_MSG_STAT_STORAGE_FAIL
enumerator RTK_BT_MESH_MSG_STAT_FEATURE_NOT_SUPPORTED
enumerator RTK_BT_MESH_MSG_STAT_CANNOT_UPDATE
enumerator RTK_BT_MESH_MSG_STAT_CANNOT_REMOVE
enumerator RTK_BT_MESH_MSG_STAT_CANNOT_BIND
enumerator RTK_BT_MESH_MSG_STAT_TEMP_UNABLE_CHANGE_STATE
enumerator RTK_BT_MESH_MSG_STAT_CANNOT_SET
enumerator RTK_BT_MESH_MSG_STAT_UNSPECIFIED_ERROR
enumerator RTK_BT_MESH_MSG_STAT_INVALID_BINDING
enumerator RTK_BT_MESH_MSG_STAT_INVALID_PATH_ENTRY
enumerator RTK_BT_MESH_MSG_STAT_CANNOT_GET
enumerator RTK_BT_MESH_MSG_STAT_OBSOLETE_INFORMATION
enumerator RTK_BT_MESH_MSG_STAT_INVALID_BEARER
union rtk_bt_mesh_hb_pub_features_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Pub Features definition.

rtk_bt_mesh_hb_pub_features_t

Public Members

uint16_t raw
uint16_t relay
uint16_t proxy
uint16_t frnd
uint16_t lpn
uint16_t rfu
struct rtk_bt_mesh_hb_pub_features_t::[anonymous] [anonymous]
struct rtk_bt_mesh_pub_key_info_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Pub Key Information definition.

rtk_bt_mesh_pub_key_info_t

Public Members

uint16_t value
uint16_t app_key_index

global index

uint16_t frnd_flag
uint16_t rfu
union rtk_bt_mesh_pub_key_info_t::[anonymous] [anonymous]
struct rtk_bt_mesh_pub_period_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Pub Period definition.

rtk_bt_mesh_pub_period_t

Public Members

uint8_t steps

0x00 Publish Period is disabled

uint8_t resol

The resolution of the Number of Steps field.

struct rtk_bt_mesh_pub_retrans_info_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Pub Retrans Information definition.

rtk_bt_mesh_pub_period_t

Public Members

uint8_t count
uint8_t steps
struct rtk_bt_mesh_cfg_app_key_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey Status definition.

rtk_bt_mesh_cfg_app_key_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint8_t key_index[3]

NetKeyIndex, AppKeyIndex.

struct rtk_bt_mesh_cfg_model_app_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model App Status definition.

rtk_bt_mesh_cfg_model_app_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t element_addr
uint16_t app_key_index
uint32_t model_id

2 bytes or 4 bytes

struct rtk_bt_mesh_cfg_model_sub_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Status definition.

rtk_bt_mesh_cfg_model_sub_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t element_addr
uint16_t addr
uint32_t model_id

2 bytes or 4 bytes

struct rtk_bt_mesh_cfg_default_ttl_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Default TTL Status definition.

rtk_bt_mesh_cfg_default_ttl_stat_t

Public Members

uint8_t ttl
struct rtk_bt_mesh_cfg_relay_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Relay Status message structure.

rtk_bt_mesh_cfg_relay_stat_t

Public Members

uint8_t state
uint8_t count
uint8_t steps
struct rtk_bt_mesh_cfg_net_transmit_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Network Transmit Status message structure.

rtk_bt_mesh_cfg_net_transmit_stat_t

Public Members

uint8_t count
uint8_t steps
struct rtk_bt_mesh_config_client_model_node_reset_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Node Reset Status message structure.

rtk_bt_mesh_config_client_model_node_reset_stat_t

Public Members

uint16_t src
struct rtk_bt_mesh_config_client_add_app_key_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey Add message structure.

rtk_bt_mesh_config_client_add_app_key_t

Public Members

uint16_t unicast_addr
uint8_t net_key_index
uint8_t app_key_index
struct rtk_bt_mesh_config_client_model_app_bind_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model App Bind message structure.

rtk_bt_mesh_config_client_model_app_bind_t

Public Members

uint16_t dst
uint16_t element_addr
uint16_t app_key_index
uint32_t model_id
struct rtk_bt_mesh_config_client_model_sub_add_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Add message structure.

rtk_bt_mesh_config_client_model_sub_add_t

Public Members

uint16_t dst
uint16_t element_addr
bool va_flag
uint8_t group_addr[16]
uint32_t model_id
struct rtk_bt_mesh_config_client_model_default_ttl_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Default TTL Get message structure.

rtk_bt_mesh_config_client_model_default_ttl_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_default_ttl_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Default TTL Set message structure.

rtk_bt_mesh_config_client_model_default_ttl_set_t

Public Members

uint16_t dst
uint8_t ttl
struct rtk_bt_mesh_config_client_model_relay_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Relay Get message structure.

rtk_bt_mesh_config_client_model_relay_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_relay_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Relay Set message structure.

rtk_bt_mesh_config_client_model_relay_set_t

Public Members

uint16_t dst
uint8_t state
uint8_t count
uint8_t steps
struct rtk_bt_mesh_config_client_model_net_transmit_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Network Transmit Get message structure.

rtk_bt_mesh_config_client_model_net_transmit_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_net_transmit_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Network Transmit Set message structure.

rtk_bt_mesh_config_client_model_net_transmit_set_t

Public Members

uint16_t dst
uint8_t count
uint8_t steps
struct rtk_bt_mesh_config_client_model_node_reset_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Node Reset message structure.

rtk_bt_mesh_config_client_model_node_reset_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_compo_data_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Composition Date Get message structure.

rtk_bt_mesh_config_client_model_compo_data_get_t

Public Members

uint16_t dst
uint8_t page
struct rtk_bt_mesh_config_client_model_beacon_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Beacon Get message structure.

rtk_bt_mesh_config_client_model_beacon_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_beacon_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Beacon Set message structure.

rtk_bt_mesh_config_client_model_beacon_set_t

Public Members

uint16_t dst
uint8_t state
struct rtk_bt_mesh_config_client_model_proxy_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config GATT Proxy Get message structure.

rtk_bt_mesh_config_client_model_beacon_set_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_proxy_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config GATT Proxy Set message structure.

rtk_bt_mesh_config_client_model_proxy_set_t

Public Members

uint16_t dst
uint8_t state
struct rtk_bt_mesh_config_client_model_model_pub_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Publication Get message structure.

rtk_bt_mesh_config_client_model_model_pub_get_t

Public Members

uint16_t dst
uint16_t element_addr
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_pub_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Publication Set message structure.

rtk_bt_mesh_config_client_model_model_pub_set_t

Public Members

uint16_t dst
uint16_t element_addr
bool va_flag
uint8_t pub_addr[16]
rtk_bt_mesh_pub_key_info_t pub_key_info
uint8_t pub_ttl
rtk_bt_mesh_pub_period_t pub_period
rtk_bt_mesh_pub_retrans_info_t pub_retrans_info
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_sub_delete_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Delete message structure.

rtk_bt_mesh_config_client_model_model_sub_delete_t

Public Members

uint16_t dst
uint16_t element_addr
bool va_flag
uint8_t group_addr[16]
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_sub_delete_all_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Delete All message structure.

rtk_bt_mesh_config_client_model_model_sub_delete_all_t

Public Members

uint16_t dst
uint16_t element_addr
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_sub_overwrite_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Overwrite message structure.

rtk_bt_mesh_config_client_model_model_sub_overwrite_t

Public Members

uint16_t dst
uint16_t element_addr
bool va_flag
uint8_t group_addr[16]
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_sub_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription Get message structure.

rtk_bt_mesh_config_client_model_model_sub_get_t

Public Members

uint16_t dst
uint16_t element_addr
uint32_t model_id
struct rtk_bt_mesh_config_client_model_net_key_add_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey Add message structure.

rtk_bt_mesh_config_client_model_net_key_add_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t net_key[16]
struct rtk_bt_mesh_config_client_model_net_key_update_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey Update message structure.

rtk_bt_mesh_config_client_model_net_key_update_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t net_key[16]
struct rtk_bt_mesh_config_client_model_net_key_delete_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey Delete message structure.

rtk_bt_mesh_config_client_model_net_key_delete_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_config_client_model_net_key_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey Get message structure.

rtk_bt_mesh_config_client_model_net_key_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_app_key_update_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey Update message structure.

rtk_bt_mesh_config_client_model_app_key_update_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t app_key_index
uint8_t app_key[16]
struct rtk_bt_mesh_config_client_model_app_key_delete_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey Delete message structure.

rtk_bt_mesh_config_client_model_app_key_delete_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t app_key_index
struct rtk_bt_mesh_config_client_model_app_key_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey Get message structure.

rtk_bt_mesh_config_client_model_app_key_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_config_client_model_node_identity_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Node Identity Get message structure.

rtk_bt_mesh_config_client_model_node_identity_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_config_client_model_node_identity_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Node Identity Set message structure.

rtk_bt_mesh_config_client_model_node_identity_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t identity
struct rtk_bt_mesh_config_client_model_model_app_unbind_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model App Unbind message structure.

rtk_bt_mesh_config_client_model_model_app_unbind_t

Public Members

uint16_t dst
uint16_t element_addr
uint16_t app_key_index
uint32_t model_id
struct rtk_bt_mesh_config_client_model_model_app_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model App Get message structure.

rtk_bt_mesh_config_client_model_model_app_get_t

Public Members

uint16_t dst
uint16_t element_addr
uint32_t model_id
struct rtk_bt_mesh_config_client_model_frnd_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Friend Get message structure.

rtk_bt_mesh_config_client_model_frnd_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_frnd_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Friend Set message structure.

rtk_bt_mesh_config_client_model_frnd_set_t

Public Members

uint16_t dst
uint8_t state
struct rtk_bt_mesh_config_client_model_lpn_poll_timeout_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Low Power Node PollTimeout Get message structure.

rtk_bt_mesh_config_client_model_lpn_poll_timeout_get_t

Public Members

uint16_t dst
uint16_t lpn_addr
struct rtk_bt_mesh_config_client_model_key_refresh_phase_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Key Refresh Phase Get message structure.

rtk_bt_mesh_config_client_model_key_refresh_phase_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_config_client_model_key_refresh_phase_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Key Refresh Phase Set message structure.

rtk_bt_mesh_config_client_model_key_refresh_phase_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t state
struct rtk_bt_mesh_config_client_model_hb_pub_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Publication Get message structure.

rtk_bt_mesh_config_client_model_hb_pub_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_hb_pub_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Publication Set message structure.

rtk_bt_mesh_config_client_model_hb_pub_set_t

Public Members

uint16_t dst
uint16_t dst_pub
uint8_t count_log
uint8_t period_log
uint8_t ttl
rtk_bt_mesh_hb_pub_features_t features
uint16_t net_key_index
struct rtk_bt_mesh_config_client_model_hb_sub_get_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Subscription Get message structure.

rtk_bt_mesh_config_client_model_hb_sub_get_t

Public Members

uint16_t dst
struct rtk_bt_mesh_config_client_model_hb_sub_set_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Subscription Set message structure.

rtk_bt_mesh_config_client_model_hb_sub_set_t

Public Members

uint16_t dst
uint16_t src
uint16_t dst_set
uint8_t period_log
struct rtk_bt_mesh_cfg_beacon_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Beacon Status definition.

rtk_bt_mesh_cfg_beacon_stat_t

Public Members

uint8_t state
struct rtk_bt_mesh_cfg_compo_data_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Composition Data Status definition.

rtk_bt_mesh_cfg_compo_data_stat_t

Public Members

uint8_t page
uint8_t data[2]

variable length

struct rtk_bt_mesh_cfg_compo_data_stat_call_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Composition Data Status definition for callback to app.

rtk_bt_mesh_cfg_compo_data_stat_call_t

Public Members

uint8_t page
uint16_t msg_len
uint16_t src
uint8_t flag
uint32_t length

for ipc test

uint8_t *data

variable length

struct rtk_bt_mesh_cfg_proxy_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config GATT Proxy Status definition.

rtk_bt_mesh_cfg_proxy_stat_t

Public Members

uint8_t state
struct rtk_bt_mesh_cfg_model_pub_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Publication Status definition.

rtk_bt_mesh_cfg_model_pub_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t element_addr
uint16_t pub_addr
rtk_bt_mesh_pub_key_info_t pub_key_info
uint8_t pub_ttl
rtk_bt_mesh_pub_period_t pub_period
rtk_bt_mesh_pub_retrans_info_t pub_retrans_info
uint32_t model_id

2 bytes or 4 bytes

struct rtk_bt_mesh_cfg_model_sub_list_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model Subscription List definition.

rtk_bt_mesh_cfg_model_sub_list_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t element_addr
uint32_t model_id

2 bytes or 4 bytes

uint8_t data[2]

variable length

struct rtk_bt_mesh_cfg_net_key_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey Status definition.

rtk_bt_mesh_cfg_net_key_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t net_key_index
struct rtk_bt_mesh_cfg_net_key_list_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config NetKey List definition.

rtk_bt_mesh_cfg_net_key_list_t

Public Members

uint8_t net_key_indexes[2]

variable length

struct rtk_bt_mesh_cfg_app_key_list_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config AppKey List definition.

rtk_bt_mesh_cfg_app_key_list_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t net_key_index
uint8_t app_key_indexes[2]

variable length

struct rtk_bt_mesh_cfg_node_identity_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Node Identity Status definition.

rtk_bt_mesh_cfg_node_identity_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t net_key_index
uint8_t identity
struct rtk_bt_mesh_cfg_model_app_list_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Model App List definition.

rtk_bt_mesh_cfg_model_app_list_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t element_addr
uint32_t model_id

2 bytes or 4 bytes

uint8_t app_key_indexes[3]

variable length

struct rtk_bt_mesh_cfg_frnd_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Friend Status definition.

rtk_bt_mesh_cfg_frnd_stat_t

Public Members

uint8_t state
struct rtk_bt_mesh_cfg_lpn_poll_timeout_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Low Power Node PollTimeout Status definition.

rtk_bt_mesh_cfg_lpn_poll_timeout_stat_t

Public Members

uint16_t lpn_addr
uint8_t poll_to[3]
struct rtk_bt_mesh_cfg_key_refresh_phase_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Key Refresh Phase Status definition.

rtk_bt_mesh_cfg_key_refresh_phase_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t net_key_index
uint8_t state
struct rtk_bt_mesh_cfg_key_refresh_phase_stat_call_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Key Refresh Phase Status definition for callback to app.

rtk_bt_mesh_cfg_key_refresh_phase_stat_call_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t net_key_index
uint8_t state
uint16_t src
struct rtk_bt_mesh_cfg_hb_pub_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Publication Status definition.

rtk_bt_mesh_cfg_hb_pub_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t dst
uint8_t count_log
uint8_t period_log
uint8_t ttl
rtk_bt_mesh_hb_pub_features_t features
uint16_t net_key_index
struct rtk_bt_mesh_cfg_hb_sub_stat_t
#include <rtk_bt_mesh_config_client_model.h>

BLE MESH Config Heartbeat Subscription Status definition.

rtk_bt_mesh_cfg_hb_sub_stat_t

Public Members

rtk_bt_mesh_msg_stat_t stat
uint16_t src
uint16_t dst
uint8_t period_log
uint8_t count_log
uint8_t min_hops
uint8_t max_hops

BT Mesh Datatrans Model Types

enum rtk_bt_mesh_datatrans_model_act_t

BLE MESH datatrans model act definition.

rtk_bt_mesh_datatrans_model_act_t

Values:

enumerator RTK_BT_MESH_DATATRANS_MODEL_ACT_READ
enumerator RTK_BT_MESH_DATATRANS_MODEL_ACT_WRITE
enumerator RTK_BT_MESH_DATATRANS_MODEL_ACT_MAX
enum rtk_bt_mesh_datatrans_model_evt_t

BLE MESH datatrans model evt definition.

rtk_bt_mesh_datatrans_model_evt_t

Values:

enumerator RTK_BT_MESH_DATATRANS_MODEL_EVT_SERVER_WRITE
enumerator RTK_BT_MESH_DATATRANS_MODEL_EVT_SERVER_READ
enumerator RTK_BT_MESH_DATATRANS_MODEL_EVT_CLIENT_WRITE_STATUS
enumerator RTK_BT_MESH_DATATRANS_MODEL_EVT_CLIENT_READ_RESULT
enumerator RTK_BT_MESH_DATATRANS_MODEL_EVT_MAX
enum [anonymous]

BLE MESH datatrans server model write status event data structure.

rtk_bt_mesh_datatrans_stat_t

Values:

enumerator RTK_BT_MESH_DATATRANS_SUCCESS
enumerator RTK_BT_MESH_DATATRANS_FAIL
typedef uint8_t rtk_bt_mesh_datatrans_stat_t
struct rtk_bt_mesh_datatrans_client_write_api_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans client model write api data structure.

rtk_bt_mesh_datatrans_client_write_api_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t data_len
uint8_t data[DATA_TRANS_DATA_MAX_LEN]
bool ack
struct rtk_bt_mesh_datatrans_client_read_api_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans client model read api data structure.

rtk_bt_mesh_datatrans_client_read_api_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t read_len
struct rtk_bt_mesh_datatrans_client_write_event_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans client model write result event data structure.

rtk_bt_mesh_datatrans_client_write_event_t

Public Members

uint16_t src
rtk_bt_mesh_datatrans_stat_t status
uint16_t written_len
struct rtk_bt_mesh_datatrans_client_read_event_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans client model read event data structure.

rtk_bt_mesh_datatrans_client_read_event_t

Public Members

uint16_t src
uint8_t data_len
uint8_t data[DATA_TRANS_DATA_MAX_LEN]
struct rtk_bt_mesh_datatrans_server_read_event_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans server model read event data structure.

rtk_bt_mesh_datatrans_server_read_event_t

Public Members

uint16_t data_len
uint8_t *data
struct rtk_bt_mesh_datatrans_server_write_event_t
#include <rtk_bt_mesh_datatrans_model.h>

BLE MESH datatrans server model write event data structure.

rtk_bt_mesh_datatrans_server_write_event_t

Public Members

rtk_bt_mesh_datatrans_stat_t status
uint8_t data_len
uint8_t data[DATA_TRANS_DATA_MAX_LEN]

BT Mesh Def Types

enum rtk_bt_mesh_msg_send_result

BLE MESH api result definition.

rtk_bt_mesh_api_result

Values:

enumerator RTK_BT_MESH_MSG_SEND_CAUSE_SUCCESS
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_ACCESS_OPCODE
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_ELEMENT
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_MODEL
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_NODE_UNPROVISIONED
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_SRC
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_DST
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_PAYLOAD_SIZE_EXCEED
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_PAYLOAD_SIZE_EXCEED1

8

enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_VIR_ADDR
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_APP_KEY_INDEX
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_APP_KEY_STATE
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_APP_KEY_NOT_BOUND_TO_MODEL
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_NET_KEY_INDEX
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_NET_KEY_STATE
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_NO_BUFFER_AVAILABLE
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_NO_MEMORY

16

enumerator RTK_BT_MESH_MSG_SEND_CAUSE_TRANS_TX_BUSY
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_INVALID_ACCESS_PARAMETER
enumerator RTK_BT_MESH_MSG_SEND_CAUSE_FAIL
enum rtk_bt_mesh_generic_stat_t

Error code for models.

GENERIC_TYPES_TYPES Generic Types

Values:

enumerator MESH_GENERIC_STAT_SUCCESS
enumerator MESH_GENERIC_STAT_CANNOT_SET_RANGE_MIN
enumerator MESH_GENERIC_STAT_CANNOT_SET_RANGE_MAX
enum rtk_bt_mesh_msg_subtype

Subtype of T_IO_MSG for IO_MSG_TYPE_LE_MESH.

rtk_bt_mesh_msg_subtype

Values:

enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_ADV
enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_BLOB_CLIENT_CHUNK_TRANSFER
enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_BLOB_CLIENT_PROCEDURE
enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_BLOB_CLIENT_RETRY
enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_DFU_DIST_APP_TIMEOUT_MSG
enumerator RTK_BT_MESH_IO_MSG_SUBTYPE_DFU_INIT_APP_TIMEOUT_MSG
struct rtk_bt_mesh_app_conf_t
#include <rtk_bt_mesh_def.h>

BLE MESH app conf definition.

rtk_bt_mesh_app_conf_t

Public Members

uint8_t bt_mesh_role

Default bt mesh profile role

uint8_t bt_mesh_uuid[16]

Default bt mesh device UUID

uint32_t bt_mesh_flash_size

FTL size for mesh

uint8_t bt_mesh_rpl_num

Message replay protection list num

uint8_t trans_retrans_count

Transport Transmit Count

uint8_t net_trans_count

Network Transmit Count

uint8_t net_trans_interval_step

Network Transmit Interval Step

uint8_t relay_retrans_count

Relay Retransmit Count

uint8_t relay_retrans_interval_step

Relay Retransmit Interval step

uint8_t ttl

Default TTL

struct rtk_bt_mesh_addr_range_t
#include <rtk_bt_mesh_def.h>

mesh addr range type

rtk_bt_mesh_addr_range_t

Public Members

uint16_t range_start
uint16_t len_present
uint16_t len_present_access
uint16_t range_start_access
uint16_t addr
union rtk_bt_mesh_addr_range_t::[anonymous] [anonymous]
uint8_t range_len

BT Mesh Device Firmware Update Model Types

enum rtk_bt_mesh_dfu_model_initiator_act_t

BLE MESH device firmware update model initiator act definition.

rtk_bt_mesh_dfu_model_initiator_act_t

Values:

enumerator RTK_BT_MESH_DFU_ACT_INITIATOR_UPLOAD_START
enumerator RTK_BT_MESH_DFU_ACT_INITIATOR_RECEIVERS_ADD
enumerator RTK_BT_MESH_DFU_ACT_INITIATOR_RECEIVERS_DEL_ALL
enumerator RTK_BT_MESH_DFU_ACT_INITIATOR_DISTRIBUTE_START
enumerator RTK_BT_MESH_DFU_ACT_INITIATOR_MAX
enum rtk_bt_mesh_dfu_event_initiator_t

BLE MESH device firmware update model initiator event definition.

rtk_bt_mesh_dfu_event_initiator_t

Values:

enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_BLOB_PARAM
enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_TRANSFER
enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_DIST_CLIENT_UPLOAD_STATUS
enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_DIST_CLIENT_RECEIVES_STATUS
enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_DIST_CLIENT_DISTRIBUTION_STATUS
enumerator RTK_BT_MESH_DFU_EVT_INITIATOR_MAX
enum rtk_bt_mesh_dfu_model_standalone_updater_act_t

BLE MESH device firmware update model standalone updater act definition.

rtk_bt_mesh_dfu_model_standalone_updater_act_t

Values:

enumerator RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_SET_PARAM
enumerator RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_ADD_RECEIVER
enumerator RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_START
enumerator RTK_BT_MESH_DFU_ACT_STANDALONE_UPDATER_MAX
enum rtk_bt_mesh_dfu_event_distributor_t

BLE MESH device firmware update model distributor event definition.

rtk_bt_mesh_dfu_event_distributor_t

Values:

enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_PARAM
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_NODE_FAIL
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_PROGRESS
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_FAIL
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_SUCCESS
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_VERIFY
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_BLOB_TRANSFER_COMPLETE
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_UPLOAD_START
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_UPLOAD_BLOCK_DATA
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_UPLOAD_COMPLETE
enumerator RTK_BT_MESH_DFU_EVT_DISTRIBUTOR_MAX
enum rtk_bt_mesh_dfu_event_target_t

BLE MESH device firmware update model target event definition.

rtk_bt_mesh_dfu_event_target_t

Values:

enumerator RTK_BT_MESH_DFU_EVT_TARGET_METADATA_CHECK
enumerator RTK_BT_MESH_DFU_EVT_TARGET_START
enumerator RTK_BT_MESH_DFU_EVT_TARGET_BLOCK_DATA
enumerator RTK_BT_MESH_DFU_EVT_TARGET_VERIFY
enumerator RTK_BT_MESH_DFU_EVT_TARGET_VERIFY_CANCEL
enumerator RTK_BT_MESH_DFU_EVT_TARGET_APPLY
enumerator RTK_BT_MESH_DFU_EVT_TARGET_FAIL
enumerator RTK_BT_MESH_DFU_EVT_TARGET_MAX
enum rtk_bt_mesh_dfu_model_api_result_t

BLE MESH device firmware update model api result definition.

rtk_bt_mesh_dfu_model_api_result_t

Values:

enumerator RTK_BT_MESH_DFU_MODEL_API_SUCCESS
enumerator RTK_BT_MESH_DFU_MODEL_API_FAIL
enum rtk_bt_mesh_dfu_initiator_cb_type_t

BLE MESH device firmware update initiator callback type structure.

rtk_bt_mesh_dfu_initiator_cb_type_t

Values:

enumerator RTK_BT_MESH_DFU_INIT_CB_TYPE_UPLOAD_PROGRESS
enumerator RTK_BT_MESH_DFU_INIT_CB_TYPE_UPLOAD_SUCCESS
enumerator RTK_BT_MESH_DFU_INIT_CB_TYPE_UPLOAD_FAIL
enum rtk_bt_mesh_dfu_initiator_phase_t

BLE MESH device firmware update initiator phase structure.

rtk_bt_mesh_dfu_initiator_phase_t

Values:

enumerator RTK_BT_MESH_DFU_INIT_PHASE_IDLE
enumerator RTK_BT_MESH_DFU_INIT_PHASE_UPLOAD_START
enumerator RTK_BT_MESH_DFU_INIT_PHASE_BLOB_TRANSFER
enumerator RTK_BT_MESH_DFU_INIT_PHASE_FAILED
enum rtk_bt_mesh_dfu_blob_transfer_mode_t

BLE MESH device firmware update blob transfer mode param structure.

rtk_bt_mesh_dfu_blob_transfer_mode_t

Values:

enumerator RTK_BT_MESH_DFU_BLOB_TRANSFER_MODE_IDLE

No active transfer.

enumerator RTK_BT_MESH_DFU_BLOB_TRANSFER_MODE_PUSH

Push BLOB transfer mode.

enumerator RTK_BT_MESH_DFU_BLOB_TRANSFER_MODE_PULL

Pull BLOB transfer mode.

enum rtk_bt_mesh_dfu_initiator_fw_update_policy_t

BLE MESH device firmware update initiator firmware update policy param structure.

rtk_bt_mesh_dfu_initiator_fw_update_policy_t

Values:

enumerator RTK_BT_MESH_DFU_INITIATOR_FW_UPDATE_POLICY_VERIFY_ONLY
enumerator RTK_BT_MESH_DFU_INITIATOR_FW_UPDATE_POLICY_VERIFY_AND_UPDATE
enum rtk_bt_mesh_dfu_fw_dist_status_code_t

BLE MESH device firmware update initiator distribute client receives status.

rtk_bt_mesh_dfu_fw_dist_status_code_t

Values:

enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_SUCCESS
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_INSUFFICIENT_RESOURCES
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_WRONG_PHASE
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_INTERNAL_ERR
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_FW_NOT_FOUND
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_INVALID_APP_KEY_INDEX
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_RECEIVERS_LIST_EMPTY
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_BUSY_WITH_DIST
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_BUSY_WITH_UPLOAD
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_URI_NOT_SUPPORTED
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_URI_MALFORMED
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_URI_UNREACHABLE
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_NEW_FW_NOT_AVAILABLE
enumerator RTK_BT_MESH_DFU_FW_DIST_STATUS_SUSPEND_FAILED
enum rtk_bt_mesh_dfu_dist_phase_t

BLE MESH device firmware update distributor transfer phase structure.

rtk_bt_mesh_dfu_dist_phase_t

Values:

enumerator RTK_BT_MESH_DFU_DIST_PHASE_IDLE
enumerator RTK_BT_MESH_DFU_DIST_PHASE_UPDATE_START
enumerator RTK_BT_MESH_DFU_DIST_PHASE_BLOB_TRANSFER
enumerator RTK_BT_MESH_DFU_DIST_PHASE_VERIFY
enumerator RTK_BT_MESH_DFU_DIST_PHASE_APPLY
enumerator RTK_BT_MESH_DFU_DIST_PHASE_CONFIRM
enumerator RTK_BT_MESH_DFU_DIST_PHASE_CANCELING
enumerator RTK_BT_MESH_DFU_DIST_PHASE_UNKNOWN
enum rtk_bt_mesh_dfu_fw_upload_fail_reason_t

Values:

enumerator RTK_BT_MESH_DFU_FW_UPLOAD_FAIL_REASON_USER_CANCEL
enumerator RTK_BT_MESH_DFU_FW_UPLOAD_FAIL_REASON_TRANSFER_TIMEOUT
enumerator RTK_BT_MESH_DFU_FW_UPLOAD_FAIL_REASON_TRANSFER_ERR
enum rtk_bt_mesh_dfu_target_fw_update_fail_reason_t

BLE MESH device firmware update target fw update server fail reason.

rtk_bt_mesh_dfu_target_fw_update_fail_reason_t

Values:

enumerator RTK_BT_MESH_DFU_TARGET_FW_UPDATE_FAIL_REASON_USER_CANCEL
enumerator RTK_BT_MESH_DFU_TARGET_FW_UPDATE_FAIL_REASON_TRANSFER_TIMEOUT
enumerator RTK_BT_MESH_DFU_TARGET_FW_UPDATE_FAIL_REASON_TRANSFER_ERR
RTK_BT_MESH_FW_VERSION_MAX_LEN
struct rtk_bt_mesh_dfu_fw_id_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update firmware id data structure.

rtk_bt_mesh_dfu_fw_id_t

Public Members

uint16_t company_id
uint8_t version[RTK_BT_MESH_FW_VERSION_MAX_LEN]
struct rtk_bt_mesh_dfu_initiator_upload_start_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator Firmware Distribution Upload Start message structure.

rtk_bt_mesh_dfu_initiator_upload_start_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t update_timeout_base
uint32_t fw_image_size
uint16_t metadata_len
uint8_t *p_metadata
uint8_t fw_id_len
rtk_bt_mesh_dfu_fw_id_t fw_id
struct rtk_bt_mesh_dfu_evt_initiator_transfer_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor transfer structure.

rtk_bt_mesh_dfu_evt_initiator_transfer_t

Public Members

rtk_bt_mesh_dfu_initiator_cb_type_t type
rtk_bt_mesh_dfu_initiator_phase_t init_phase
uint16_t addr
uint8_t progress
union rtk_bt_mesh_dfu_evt_initiator_transfer_t::[anonymous] [anonymous]
struct rtk_bt_mesh_dfu_initiator_dist_recv_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator Firmware Distribution Receivers Add message structure.

rtk_bt_mesh_dfu_initiator_dist_recv_t

Public Members

uint16_t addr
uint8_t update_fw_image_idx
struct rtk_bt_mesh_dfu_initiator_dist_recv_add_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator distribute receiver add param structure.

rtk_bt_mesh_dfu_initiator_dist_recv_add_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t recv_num
rtk_bt_mesh_dfu_initiator_dist_recv_t *recv
struct rtk_bt_mesh_dfu_initiator_dist_recv_del_all_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator distribute receiver delete all param structure.

rtk_bt_mesh_dfu_initiator_dist_recv_del_all_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_dfu_initiator_fw_dist_start_data_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator Firmware Distribution Start message structure.

rtk_bt_mesh_dfu_initiator_fw_dist_start_data_t

Public Members

uint16_t dist_app_key_index
uint8_t dist_ttl
uint16_t dist_timeout_base
uint8_t dist_transfer_mode
uint8_t update_policy
uint8_t rfu
uint16_t dist_fw_image_idx
uint8_t dist_multicast_addr[16]
struct rtk_bt_mesh_dfu_initiator_fw_dist_start_param_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator distribute start param structure.

rtk_bt_mesh_dfu_initiator_fw_dist_start_param_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t dist_dst_len
rtk_bt_mesh_dfu_initiator_fw_dist_start_data_t data
struct rtk_bt_mesh_dfu_initiator_evt_dist_client_recvs_status
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update initiator distribute client receives status data structure.

rtk_bt_mesh_dfu_initiator_evt_dist_client_recvs_status

Public Members

uint16_t src
rtk_bt_mesh_dfu_fw_dist_status_code_t status
uint16_t recvs_list_cnt
struct rtk_bt_mesh_dfu_standalone_updater_set_param_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update standalone updater set relate param structure.

rtk_bt_mesh_dfu_standalone_updater_set_param_t

Public Members

uint32_t image_size
uint8_t fw_id_len
uint8_t meta_data_len
uint8_t fw_id[BT_MESH_DFU_FWID_MAX_LEN]
uint8_t meta_data[BT_MESH_DFU_METADATA_MAX_LEN]
struct rtk_bt_mesh_dfu_standalone_updater_add_receiver_param_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update standalone updater add receiver param structure.

rtk_bt_mesh_dfu_standalone_updater_add_receiver_param_t

Public Members

uint16_t addr
uint8_t update_image_index
struct rtk_bt_mesh_dfu_standalone_update_start_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update standalone updater Firmware Update Start message structure.

rtk_bt_mesh_dfu_standalone_update_start_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t update_timeout_base
struct rtk_bt_mesh_dfu_evt_distributor_or_initiator_blob_param_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor or initiator blob param structure.

rtk_bt_mesh_dfu_evt_distributor_or_initiator_blob_param_t

Public Members

uint32_t blob_size
uint16_t block_size
uint16_t total_blocks
uint16_t chunk_size
struct rtk_bt_mesh_dfu_evt_distributor_transfer_node_fail_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor transfer node fail data structure.

rtk_bt_mesh_dfu_evt_distributor_transfer_node_fail_t

Public Members

rtk_bt_mesh_dfu_dist_phase_t dist_phase
uint16_t addr
struct rtk_bt_mesh_dfu_evt_distributor_transfer_progress_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor transfer node fail data structure.

rtk_bt_mesh_dfu_evt_distributor_transfer_progress_t

Public Members

rtk_bt_mesh_dfu_dist_phase_t dist_phase
uint8_t progress
struct rtk_bt_mesh_dfu_evt_distributor_transfer_other_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor transfer other data structure.

rtk_bt_mesh_dfu_evt_distributor_transfer_other_t

Public Members

rtk_bt_mesh_dfu_dist_phase_t dist_phase
uint8_t addr_num
uint16_t *paddr
struct rtk_bt_mesh_dfu_evt_distributor_server_upload_start_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor server upload start data structure.

rtk_bt_mesh_dfu_evt_distributor_server_upload_start_t

Public Members

uint8_t upload_ttl
uint16_t upload_timeout_base
uint8_t upload_blob_id[8]
uint32_t upload_fw_size
uint8_t upload_fw_metadata_len
uint8_t *pupload_metadata
uint8_t upload_fw_id_len
uint8_t *pupload_fw_id
struct rtk_bt_mesh_dfu_evt_distributor_server_upload_fail_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update distributor server upload fail data structure.

rtk_bt_mesh_dfu_evt_distributor_server_upload_fail_t

struct rtk_bt_mesh_dfu_evt_target_meatdata_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update target metadata structure.

rtk_bt_mesh_dfu_evt_target_meatdata_t

Public Members

uint8_t fw_image_idx
uint8_t *pmetadata
uint8_t metadata_len
struct rtk_bt_mesh_dfu_evt_target_fw_update_server_fail_t
#include <rtk_bt_mesh_device_firmware_update_model.h>

BLE MESH device firmware update target fw update server fail data structure.

rtk_bt_mesh_dfu_evt_target_fw_update_server_fail_t

Public Members

uint8_t fw_image_index
rtk_bt_mesh_dfu_target_fw_update_fail_reason_t reason

BT Mesh Directed Forwarding Model Types

enum rtk_bt_mesh_df_client_act_t

BLE MESH directed forwarding client model act definition.

rtk_bt_mesh_df_client_api_t

Values:

enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_SET
enumerator RTK_BT_MESH_DF_MODEL_PATH_METRIC_GET
enumerator RTK_BT_MESH_DF_MODEL_PATH_METRIC_SET
enumerator RTK_BT_MESH_DF_MODEL_DISCOVERY_TABLE_CAPABILITIES_GET
enumerator RTK_BT_MESH_DF_MODEL_DISCOVERY_TABLE_CAPABILITIES_SET
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ADD
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DELETE
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_ADD
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_DELETE
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_GET
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_COUNT_GET
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_GET
enumerator RTK_BT_MESH_DF_MODEL_WANTED_LANES_GET
enumerator RTK_BT_MESH_DF_MODEL_WANTED_LANES_SET
enumerator RTK_BT_MESH_DF_MODEL_TWO_WAY_PATH_GET
enumerator RTK_BT_MESH_DF_MODEL_TWO_WAY_PATH_SET
enumerator RTK_BT_MESH_DF_MODEL_PATH_ECHO_INTERVAL_GET
enumerator RTK_BT_MESH_DF_MODEL_PATH_ECHO_INTERVAL_SET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_NETWORK_TRANSMIT_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_NETWORK_TRANSMIT_SET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_RELAY_RETRANSMIT_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_RELAY_RETRANSMIT_SET
enumerator RTK_BT_MESH_DF_MODEL_RSSI_THRESHOLD_GET
enumerator RTK_BT_MESH_DF_MODEL_RSSI_THRESHOLD_SET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_PATHS_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_PUBLISH_POLICY_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_PUBLISH_POLICY_SET
enumerator RTK_BT_MESH_DF_MODEL_PATH_DISCOVERY_TIMING_CONTROL_GET
enumerator RTK_BT_MESH_DF_MODEL_PATH_DISCOVERY_TIMING_CONTROL_SET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_NETWORK_TRANSMIT_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_NETWORK_TRANSMIT_SET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_RELAY_RETRANSMIT_GET
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_RELAY_RETRANSMIT_SET
enumerator RTK_BT_MESH_DF_MODEL_ACT_MAX
enum rtk_bt_mesh_df_common_act_t

BLE MESH directed forwarding act definition.

rtk_bt_mesh_df_client_evt_t

Values:

enumerator RTK_BT_MESH_DF_PATH_DISCOVERY
enumerator RTK_BT_MESH_DF_PATH_SOLICITATION
enumerator RTK_BT_MESH_DF_PATH_DEPENDENTS_UPDATE
enumerator RTK_BT_MESH_DF_DIRECTED_CONTROL_STATE_GET
enumerator RTK_BT_MESH_DF_DIRECTED_CONTROL_STATE_SET
enumerator RTK_BT_MESH_DF_PATH_METRIC_STATE_GET
enumerator RTK_BT_MESH_DF_PATH_METRIC_STATE_SET
enumerator RTK_BT_MESH_DF_DISCOVERY_TABLE_CAP_GET
enumerator RTK_BT_MESH_DF_DISCOVERY_TABLE_CAP_SET
enumerator RTK_BT_MESH_DF_WANTED_LANES_GET
enumerator RTK_BT_MESH_DF_WANTED_LANES_SET
enumerator RTK_BT_MESH_DF_TWO_WAY_PATH_GET
enumerator RTK_BT_MESH_DF_TWO_WAY_PATH_SET
enumerator RTK_BT_MESH_DF_PATH_ECHO_INTERVAL_GET
enumerator RTK_BT_MESH_DF_PATH_ECHO_INTERVAL_SET
enumerator RTK_BT_MESH_DF_PUBLISH_POLICY_SET
enumerator RTK_BT_MESH_DF_PARAMETER_SET
enumerator RTK_BT_MESH_DF_COMMON_ACT_MAX
enum rtk_bt_mesh_df_client_evt_t

BLE MESH directed forwarding client model event definition.

rtk_bt_mesh_df_client_evt_t

Values:

enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_STAT
enumerator RTK_BT_MESH_DF_MODEL_PATH_METRIC_STAT
enumerator RTK_BT_MESH_DF_MODEL_DISCOVERY_TABLE_CAPABILITIES_STAT
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_STAT
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_STAT
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_DEPENDENTS_GET_STAT
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_COUNT_STAT
enumerator RTK_BT_MESH_DF_MODEL_FORWARDING_TABLE_ENTRIES_STAT
enumerator RTK_BT_MESH_DF_MODEL_WANTED_LANES_STAT
enumerator RTK_BT_MESH_DF_MODEL_TWO_WAY_PATH_STAT
enumerator RTK_BT_MESH_DF_MODEL_PATH_ECHO_INTERVAL_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_NETWORK_TRANSMIT_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_RELAY_RETRANSMIT_STAT
enumerator RTK_BT_MESH_DF_MODEL_RSSI_THRESHOLD_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_PATHS_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_PUBLISH_POLICY_STAT
enumerator RTK_BT_MESH_DF_MODEL_PATH_DISCOVERY_TIMING_CONTROL_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_NETWORK_TRANSMIT_STAT
enumerator RTK_BT_MESH_DF_MODEL_DIRECTED_CONTROL_RELAY_RETRANSMIT_STAT
enumerator RTK_BT_MESH_DF_MODEL_EVT_MAX
enum rtk_bt_mesh_df_path_action_type_t

BLE MESH directed forwarding path action type definition.

rtk_bt_mesh_df_path_action_type_t

Values:

enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_DISCOVERING
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_DISCOVERY_FAIL
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_ESTABLISHED
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_PATH_RELEASE
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_NEW_LANE_DISCOVERING
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_NEW_LANE_ESTABLISHED
enumerator RTK_BT_MESH_DF_PATH_ACTION_TYPE_NEW_LANE_FAIL
enum [anonymous]

BLE MESH directed publish policy structure.

rtk_bt_mesh_directed_publish_policy_t

Values:

enumerator RTK_BT_MESH_PUBLISH_POLICY_MANAGED_FLOODING
enumerator RTK_BT_MESH_PUBLISH_POLICY_DIRECTED_FORWARDING
typedef uint8_t rtk_bt_mesh_directed_publish_policy_t
DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE
RTK_BT_MESH_MSG_DF_PATH_ACTION
struct rtk_bt_mesh_df_path_action_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding path actiondefinition.

rtk_bt_mesh_df_path_action_t

Public Members

rtk_bt_mesh_df_path_action_type_t action_type
uint8_t master_key_index
uint16_t path_src
uint8_t path_src_sec_elem_num
uint16_t dp_src
uint8_t dp_src_sec_elem_num
uint16_t path_dst
uint8_t path_dst_sec_elem_num
uint16_t dp_dst
uint8_t dp_dst_sec_elem_num
uint8_t forwarding_num
struct rtk_bt_mesh_stack_evt_df_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH df action evt structure.

rtk_bt_mesh_stack_evt_df_t

Public Members

uint8_t type
rtk_bt_mesh_df_path_action_t path_action
struct rtk_bt_mesh_directed_control_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control structure.

rtk_bt_mesh_directed_control_t

Public Members

uint8_t directed_forwarding
uint8_t directed_relay
uint8_t directed_proxy
uint8_t directed_proxy_use_directed_default
uint8_t directed_friend
struct rtk_bt_mesh_path_metric_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path metric structure.

rtk_bt_mesh_path_metric_t

Public Members

uint8_t metric_type
uint8_t lifetime
uint8_t prohibited
struct rtk_bt_mesh_discovery_table_capabilities_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH discovery table capabilities structure.

rtk_bt_mesh_discovery_table_capabilities_t

Public Members

uint8_t max_concurrent_init
uint8_t max_discovery_table_entries_count
struct rtk_bt_mesh_forwarding_table_entries_count_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries count structure.

rtk_bt_mesh_forwarding_table_entries_count_t

Public Members

uint16_t forwarding_table_update_id
uint16_t fixed_path_entries_count
uint16_t non_fixed_path_entries_count
struct rtk_bt_mesh_directed_paths_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed paths structure.

rtk_bt_mesh_directed_paths_t

Public Members

uint16_t directed_node_paths
uint16_t directed_relay_paths
uint16_t directed_proxy_paths
uint16_t directed_friend_paths
struct rtk_bt_mesh_path_discovery_timing_control_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path discovery timing control structure.

rtk_bt_mesh_path_discovery_timing_control_t

Public Members

uint16_t path_monitoring_interval
uint16_t path_discovery_retry_interval
uint8_t path_discovery_interval
uint8_t lane_discovery_guard_interval
uint8_t prohibited
struct rtk_bt_mesh_df_client_act_directed_control_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH direced control get message structure.

rtk_bt_mesh_df_client_act_directed_control_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_directed_control_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH direced control set message structure.

rtk_bt_mesh_df_client_act_directed_control_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t directed_forwarding
uint8_t directed_relay
uint8_t directed_proxy
uint8_t directed_proxy_use_directed_default
uint8_t directed_friend
struct rtk_bt_mesh_df_client_act_path_metric_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path metric get message structure.

rtk_bt_mesh_df_client_act_path_metric_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_path_metric_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path metric set message structure.

rtk_bt_mesh_df_client_act_path_metric_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t metric_type
uint8_t lifetime
struct rtk_bt_mesh_df_client_act_discovery_table_capabilities_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH discovery table capabilities get message structure.

rtk_bt_mesh_df_client_act_discovery_table_capabilities_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_discovery_table_capabilities_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH discovery table capabilities set message structure.

rtk_bt_mesh_df_client_act_discovery_table_capabilities_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t max_concurrent_init
struct rtk_bt_mesh_df_client_act_forwarding_table_add_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table add message structure.

rtk_bt_mesh_df_client_act_forwarding_table_add_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t unicast_dst_flag
uint8_t backward_path_valid
uint16_t origin_addr
uint16_t origin_element_num
uint16_t target_addr
uint16_t target_element_num
uint16_t bearer_toward_origin
uint16_t bearer_toward_target
struct rtk_bt_mesh_df_client_act_forwarding_table_delete_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table delete message structure.

rtk_bt_mesh_df_client_act_forwarding_table_delete_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint16_t path_origin
uint16_t path_target
struct rtk_bt_mesh_addr_range_add_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

Public Members

uint16_t addr
uint8_t element_num
struct rtk_bt_mesh_df_client_act_forwarding_table_dependents_add_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents add message structure.

rtk_bt_mesh_df_client_act_forwarding_table_dependents_add_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint16_t path_origin
uint16_t path_target
uint8_t do_list_size
uint8_t dt_list_size
rtk_bt_mesh_addr_range_add_t do_range[DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE]
rtk_bt_mesh_addr_range_add_t dt_range[DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE]
struct rtk_bt_mesh_df_client_act_forwarding_table_dependents_delete_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents delete message structure.

rtk_bt_mesh_df_client_act_forwarding_table_dependents_delete_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint16_t path_origin
uint16_t path_target
uint8_t do_list_size
uint8_t dt_list_size
uint16_t do_range[DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE]
uint16_t dt_range[DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE]
struct rtk_bt_mesh_df_client_act_forwarding_table_dependents_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents get message structure.

rtk_bt_mesh_df_client_act_forwarding_table_dependents_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t list_mask
uint8_t fixed_path_flag
uint16_t start_index
uint16_t path_origin
uint16_t path_target
uint8_t update_id_exist
uint16_t update_id
struct rtk_bt_mesh_df_client_act_forwarding_table_entries_count_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries count get message structure.

rtk_bt_mesh_df_client_act_forwarding_table_entries_count_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_forwarding_table_entries_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries get message structure.

rtk_bt_mesh_df_client_act_forwarding_table_entries_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t filter_mask
uint16_t start_index
uint16_t path_origin
uint16_t path_target
uint8_t update_id_flag
uint16_t update_id
struct rtk_bt_mesh_df_client_act_wanted_lanes_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH wanted lanes get message structure.

rtk_bt_mesh_df_client_act_wanted_lanes_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_wanted_lanes_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH wanted lanes set message structure.

rtk_bt_mesh_df_client_act_wanted_lanes_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t wanted_lanes
struct rtk_bt_mesh_df_client_act_two_way_path_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH two way path get message structure.

rtk_bt_mesh_df_client_act_two_way_path_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_two_way_path_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH two way path set message structure.

rtk_bt_mesh_df_client_act_two_way_path_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t two_way_path
struct rtk_bt_mesh_df_client_act_path_echo_interval_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path echo interval get message structure.

rtk_bt_mesh_df_client_act_path_echo_interval_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
struct rtk_bt_mesh_df_client_act_path_echo_interval_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path echo interval set message structure.

rtk_bt_mesh_df_client_act_path_echo_interval_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index_df
uint8_t unicast_echo_interval
uint8_t multicast_echo_interval
struct rtk_bt_mesh_df_client_act_directed_network_transmit_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed network transmit get message structure.

rtk_bt_mesh_df_client_act_directed_network_transmit_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_directed_network_transmit_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed network transmit set message structure.

rtk_bt_mesh_df_client_act_directed_network_transmit_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t count
uint8_t steps
struct rtk_bt_mesh_df_client_act_directed_relay_retransmit_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed relay retransmit get message structure.

rtk_bt_mesh_df_client_act_directed_relay_retransmit_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_directed_relay_retransmit_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed relay retransmit set message structure.

rtk_bt_mesh_df_client_act_directed_relay_retransmit_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t count
uint8_t steps
struct rtk_bt_mesh_df_client_act_rssi_threshold_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH rssi threshold get message structure.

rtk_bt_mesh_df_client_act_rssi_threshold_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_rssi_threshold_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH rssi threshold set message structure.

rtk_bt_mesh_df_client_act_rssi_threshold_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t rssi_margin
struct rtk_bt_mesh_df_client_act_directed_paths_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed paths get message structure.

rtk_bt_mesh_df_client_act_directed_paths_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_directed_publish_policy_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed publish policy get message structure.

rtk_bt_mesh_df_client_act_directed_publish_policy_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t elem_addr
uint32_t model_id
struct rtk_bt_mesh_df_client_act_directed_publish_policy_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed publish policy set message structure.

rtk_bt_mesh_df_client_act_directed_publish_policy_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t policy
uint16_t elem_addr
uint32_t model_id
struct rtk_bt_mesh_df_client_act_path_discovery_timing_control_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path discovery timing control get message structure.

rtk_bt_mesh_df_client_act_path_discovery_timing_control_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_path_discovery_timing_control_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path discovery timing control set message structure.

rtk_bt_mesh_df_client_act_path_discovery_timing_control_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t monitor_interval
uint16_t dis_retry_interval
uint8_t dis_interval
uint8_t lan_guard
struct rtk_bt_mesh_df_client_act_directed_control_network_transmit_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control network transmit get message structure.

rtk_bt_mesh_df_client_act_directed_control_network_transmit_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_directed_control_network_transmit_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control network transmit set message structure.

rtk_bt_mesh_df_client_act_directed_control_network_transmit_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t count
uint8_t steps
struct rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_get_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control relay retransmit get message structure.

rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_set_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control relay retransmit set message structure.

rtk_bt_mesh_df_client_act_directed_control_relay_retransmit_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t count
uint8_t steps
struct rtk_bt_mesh_df_act_df_path_discovery_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding path discovery message structure.

rtk_bt_mesh_df_act_df_path_discovery_t

Public Members

uint16_t master_key_index
uint16_t target_addr
uint16_t dependent_addr
uint8_t dependent_elem_num
struct rtk_bt_mesh_df_act_df_path_solicitation_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding path solicitation message structure.

rtk_bt_mesh_df_act_df_path_solicitation_t

Public Members

uint16_t master_key_index
uint16_t addr_num
uint16_t addr[DIRECTED_FORWARDING_MAX_ADDR_LIST_SIZE]
struct rtk_bt_mesh_df_act_df_path_dependents_update_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding path dependents update message structure.

rtk_bt_mesh_df_act_df_path_dependents_update_t

Public Members

uint8_t type
uint16_t endpoint_addr
uint16_t dependent_addr
uint8_t dependent_elem_num
struct rtk_bt_mesh_df_control_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding control state setting message structure.

rtk_bt_mesh_df_control_state_setting_t

Public Members

uint16_t master_key_index
rtk_bt_mesh_directed_control_t ctl
struct rtk_bt_mesh_df_path_metric_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding path metric state setting message structure.

rtk_bt_mesh_df_path_metric_state_setting_t

Public Members

uint16_t master_key_index
rtk_bt_mesh_path_metric_t metric
struct rtk_bt_mesh_df_discovery_table_cap_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding discovery table capabilities state setting message structure.

rtk_bt_mesh_df_discovery_table_cap_state_setting_t

Public Members

uint16_t master_key_index
rtk_bt_mesh_discovery_table_capabilities_t cap
struct rtk_bt_mesh_df_wanted_lanes_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding wanted lanes state setting message structure.

rtk_bt_mesh_df_wanted_lanes_state_setting_t

Public Members

uint16_t master_key_index
uint8_t wanted_lanes
struct rtk_bt_mesh_df_two_way_path_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding two way path state setting message structure.

rtk_bt_mesh_df_two_way_path_state_setting_t

Public Members

uint16_t master_key_index
uint8_t two_way_path
struct rtk_bt_mesh_df_echo_interval_state_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding echo interval state setting message structure.

rtk_bt_mesh_df_echo_interval_state_setting_t

Public Members

uint16_t master_key_index
uint8_t unicast_echo_interval
uint8_t multicast_echo_interval
struct rtk_bt_mesh_df_publish_policy_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed forwarding model publish policy state setting message structure.

rtk_bt_mesh_df_publish_policy_setting_t

Public Members

uint8_t element_index
uint32_t model_id
uint8_t policy
struct rtk_bt_mesh_forwarding_table_entry_header_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entry header structure.

rtk_bt_mesh_forwarding_table_entry_header_t

Public Members

uint16_t fixed_path_flag
uint16_t unicast_dst_flag
uint16_t backward_path_validated_flag
uint16_t bearer_toward_path_origin_indicator
uint16_t bearer_toward_path_target_indicator
uint16_t dependent_origin_list_size_indicator
uint16_t dependent_target_list_size_indicator
uint16_t prohibited
struct rtk_bt_mesh_directed_control_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control status evt message structure.

rtk_bt_mesh_directed_control_status_t

Public Members

uint8_t status
uint16_t net_key_index
rtk_bt_mesh_directed_control_t directed_ctl
struct rtk_bt_mesh_path_metric_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path metric status evt message structure.

rtk_bt_mesh_path_metric_status_t

Public Members

uint8_t status
uint16_t net_key_index
rtk_bt_mesh_path_metric_t path_metric
struct rtk_bt_mesh_discovery_table_capabilities_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH discovery table capabilities status evt message structure.

rtk_bt_mesh_discovery_table_capabilities_status_t

Public Members

uint8_t status
uint16_t net_key_index
rtk_bt_mesh_discovery_table_capabilities_t capabilities
struct rtk_bt_mesh_forwarding_table_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table status evt message structure.

rtk_bt_mesh_forwarding_table_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t path_origin
uint16_t dst
struct rtk_bt_mesh_forwarding_table_dependents_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents status evt message structure.

rtk_bt_mesh_forwarding_table_dependents_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t path_origin
uint16_t dst
struct rtk_bt_mesh_forwarding_table_entries_count_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries count status evt message structure.

rtk_bt_mesh_forwarding_table_dependents_status_t

Public Members

uint8_t status
uint16_t net_key_index
rtk_bt_mesh_forwarding_table_entries_count_t count
struct rtk_bt_mesh_forwarding_table_entries_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries status evt message structure.

rtk_bt_mesh_forwarding_table_entries_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t filter_mask
uint16_t start_index
uint8_t data[0]
struct rtk_bt_mesh_forwarding_table_entries_status_for_call_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table entries status for call app evt message structure.

rtk_bt_mesh_forwarding_table_entries_status_for_call_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t filter_mask
uint16_t start_index
uint16_t data_len
uint8_t *data
struct rtk_bt_mesh_forwarding_table_dependents_get_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents get status evt message structure.

rtk_bt_mesh_forwarding_table_dependents_get_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t dependents_list_mask
uint16_t fixed_path_flag
uint16_t prohibited
uint16_t start_index
uint16_t path_origin
uint16_t dst
uint8_t data[0]
struct rtk_bt_mesh_forwarding_table_dependents_get_status_for_call_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH forwarding table dependents get status for call app evt message structure.

rtk_bt_mesh_forwarding_table_dependents_get_status_for_call_t

Public Members

uint8_t status
uint16_t net_key_index
uint16_t dependents_list_mask
uint16_t fixed_path_flag
uint16_t prohibited
uint16_t start_index
uint16_t path_origin
uint16_t dst
uint16_t data_len
uint8_t *data
struct rtk_bt_mesh_wanted_lanes_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH wanted lanes status evt message structure.

rtk_bt_mesh_wanted_lanes_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint8_t wanted_lanes
struct rtk_bt_mesh_two_way_path_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH two way path structure.

rtk_bt_mesh_two_way_path_t

Public Members

uint8_t two_way_path
uint8_t prohibited
struct rtk_bt_mesh_two_way_path_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH two way path status evt message structure.

rtk_bt_mesh_two_way_path_status_t

Public Members

uint8_t status
uint16_t net_key_index
rtk_bt_mesh_two_way_path_t two_way_path
struct rtk_bt_mesh_path_echo_interval_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path echo interval status evt message structure.

rtk_bt_mesh_path_echo_interval_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint8_t unicast_echo_interval
uint8_t multicast_echo_interval
struct rtk_bt_mesh_directed_network_transmit_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed network transmit structure.

rtk_bt_mesh_directed_network_transmit_t

Public Members

uint8_t directed_network_transmit_count
uint8_t directed_network_transmit_interval_steps
struct rtk_bt_mesh_directed_network_transmit_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed network transmit status evt message structure.

rtk_bt_mesh_directed_network_transmit_status_t

Public Members

rtk_bt_mesh_directed_network_transmit_t network_transmit
struct rtk_bt_mesh_directed_relay_retransmit_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed relay retransmit structure.

rtk_bt_mesh_directed_relay_retransmit_t

Public Members

uint8_t directed_relay_retransmit_count
uint8_t directed_relay_retransmit_interval_steps
struct rtk_bt_mesh_directed_relay_retransmit_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed relay retransmit status evt message structure.

rtk_bt_mesh_directed_relay_retransmit_status_t

Public Members

rtk_bt_mesh_directed_relay_retransmit_t relay_retransmit
struct rtk_bt_mesh_rssi_threshold_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH rssi threshold structure.

rtk_bt_mesh_rssi_threshold_t

Public Members

int8_t default_rssi_threshold
uint8_t rssi_margin
struct rtk_bt_mesh_rssi_threshold_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH rssi threshold status evt message structure.

rtk_bt_mesh_rssi_threshold_status_t

Public Members

rtk_bt_mesh_rssi_threshold_t threshold
struct rtk_bt_mesh_directed_paths_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed paths status evt message structure.

rtk_bt_mesh_directed_paths_status_t

Public Members

rtk_bt_mesh_directed_paths_t directed_paths
struct rtk_bt_mesh_directed_publish_policy_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed publish policy status evt message structure.

rtk_bt_mesh_directed_publish_policy_status_t

Public Members

uint8_t status
rtk_bt_mesh_directed_publish_policy_t publish_policy
uint16_t element_addr
uint32_t model_id
struct rtk_bt_mesh_path_discovery_timing_control_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH path discovery timing control status evt message structure.

rtk_bt_mesh_path_discovery_timing_control_status_t

struct rtk_bt_mesh_directed_control_network_transmit_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control network transmit structure.

rtk_bt_mesh_directed_control_network_transmit_t

Public Members

uint8_t directed_control_network_transmit_count
uint8_t directed_control_network_transmit_interval_steps
struct rtk_bt_mesh_directed_control_network_transmit_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control network transmit status evt message structure.

rtk_bt_mesh_directed_control_network_transmit_status_t

Public Members

rtk_bt_mesh_directed_control_network_transmit_t control_network_transmit
struct rtk_bt_mesh_directed_control_relay_retransmit_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control relay_retransmit structure.

rtk_bt_mesh_directed_control_relay_retransmit_t

Public Members

uint8_t directed_control_relay_retransmit_count
uint8_t directed_control_relay_retransmit_interval_steps
struct rtk_bt_mesh_directed_control_relay_retransmit_status_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control relay_retransmit status evt message structure.

rtk_bt_mesh_directed_control_relay_retransmit_status_t

Public Members

rtk_bt_mesh_directed_control_relay_retransmit_t control_relay_retransmit
struct rtk_bt_mesh_directed_control_param_setting_t
#include <rtk_bt_mesh_directed_forwarding_model.h>

BLE MESH directed control parameter setting message structure.

rtk_bt_mesh_directed_control_param_setting_t

Public Members

uint16_t bit_check
rtk_bt_mesh_directed_network_transmit_t network_transmit
rtk_bt_mesh_directed_relay_retransmit_t relay_retransmit
rtk_bt_mesh_directed_control_network_transmit_t control_network_transmit
rtk_bt_mesh_directed_control_relay_retransmit_t control_relay_retransmit
rtk_bt_mesh_path_discovery_timing_control_t timing_ctl
rtk_bt_mesh_rssi_threshold_t threshold
rtk_bt_mesh_directed_paths_t directed_paths
uint16_t dependent_addr_size
uint16_t df_fixed_path_size
uint16_t df_non_fixed_path_size

BT Mesh Generic Default Transition Time Types

enum rtk_bt_mesh_generic_default_transition_time_client_model_act_t

BLE MESH generic default transition time client model act definition.

rtk_bt_mesh_generic_default_transition_time_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_default_transition_time_client_model_evt_t

BLE MESH generic default transition time client model event definition.

rtk_bt_mesh_generic_default_transition_time_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_default_transition_time_server_model_evt_t

BLE MESH generic default transition time server model event definition.

rtk_bt_mesh_generic_default_transition_time_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_MODEL_EVT_MAX
struct rtk_bt_mesh_generic_default_transition_time_get_t
#include <rtk_bt_mesh_generic_default_transition_time.h>

BLE MESH generic default transition time get act message structure.

rtk_bt_mesh_generic_default_transition_time_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_default_transition_time_set_t
#include <rtk_bt_mesh_generic_default_transition_time.h>

BLE MESH generic default transition time set act message structure.

rtk_bt_mesh_generic_default_transition_time_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_generic_transition_time_t trans_time
bool ack
struct rtk_bt_mesh_generic_transition_time_client_status_t
#include <rtk_bt_mesh_generic_default_transition_time.h>

BLE MESH generic default transition time client model status evt message structure.

rtk_bt_mesh_generic_transition_time_client_status_t

Public Members

uint16_t src
rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_generic_default_transition_time_server_set_t
#include <rtk_bt_mesh_generic_default_transition_time.h>

BLE MESH generic default transition time set evt message structure.

rtk_bt_mesh_generic_default_transition_time_server_set_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_generic_default_transition_time_server_get_t
#include <rtk_bt_mesh_generic_default_transition_time.h>

BLE MESH generic default transition time set evt message structure.

rtk_bt_mesh_generic_default_transition_time_server_get_t

Public Members

rtk_bt_mesh_generic_transition_time_t *trans_time

BT Mesh Generic Model Types

enum rtk_bt_mesh_generic_level_client_model_act_t

BLE MESH generic level client model act definition.

rtk_bt_mesh_generic_level_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_DELTA_SET
enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_MOVE_SET
enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_level_client_model_evt_t

BLE MESH generic level client model event definition.

rtk_bt_mesh_generic_level_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_GENERIC_LEVEL_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_level_server_model_evt_t

BLE MESH generic level server model event definition.

rtk_bt_mesh_generic_level_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_LEVEL_SERVER_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_LEVEL_SERVER_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_LEVEL_SERVER_MODEL_SET_MOVE
enumerator RTK_BT_MESH_GENERIC_LEVEL_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_on_power_up_client_model_act_t

BLE MESH generic on power up client model act definition.

rtk_bt_mesh_generic_on_power_up_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_on_power_up_client_model_evt_t

BLE MESH generic on power up client model evt definition.

rtk_bt_mesh_generic_on_power_up_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_on_power_up_t

BLE MESH generic on power up set data structure.

rtk_bt_mesh_generic_on_power_up_t

Values:

enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_OFF
enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_DEFAULT
enumerator RTK_BT_MESH_GENERIC_ON_POWER_UP_RESTORE
enum rtk_bt_mesh_generic_power_on_off_server_model_evt_t

BLE MESH generic power on off server model event definition.

rtk_bt_mesh_generic_power_on_off_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_ON_OFF_SERVER_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_POWER_ON_OFF_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_power_on_off_setup_server_model_evt_t

BLE MESH generic power on off setup server model event definition.

rtk_bt_mesh_generic_power_on_off_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_ON_OFF_SETUP_SERVER_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_POWER_ON_OFF_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_power_level_client_model_act_t

BLE MESH generic power level client model act definition.

rtk_bt_mesh_generic_power_level_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_LAST_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_DEFAULT_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_DEFAULT_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_RANGE_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_RANGE_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_power_level_client_model_evt_t

BLE MESH generic power level client model evt definition.

rtk_bt_mesh_generic_power_level_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_LAST_STATUS
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_DEFAULT_STATUS
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_RANGE_STATUS
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_power_level_server_model_evt_t

BLE MESH generic power level server model evt definition.

rtk_bt_mesh_generic_power_level_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_LAST_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_LAST_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_DEFAULT_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_RANGE_GET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_power_level_setup_server_model_evt_t

BLE MESH generic power level setup server model evt definition.

rtk_bt_mesh_generic_power_level_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SETUP_SERVER_MODEL_DEFAULT_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SETUP_SERVER_MODEL_RANGE_SET
enumerator RTK_BT_MESH_GENERIC_POWER_LEVEL_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_battery_client_model_act_t

BLE MESH generic battery client model act definition.

rtk_bt_mesh_generic_battery_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_BATTERY_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_BATTERY_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_battery_client_model_evt_t

BLE MESH generic battery client model evt definition.

rtk_bt_mesh_generic_battery_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_BATTERY_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_GENERIC_BATTERY_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_battery_server_model_evt_t

BLE MESH generic battery server model evt definition.

rtk_bt_mesh_generic_bttery_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_BATTERY_SERVER_MODEL_GET
enumerator RTK_BT_MESH_GENERIC_BATTERY_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_location_client_model_act_t

BLE MESH generic location client model act definition.

rtk_bt_mesh_generic_location_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_GLOBAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_GLOBAL_SET
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_LOCAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_LOCAL_SET
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_location_client_model_evt_t

BLE MESH generic location client model evt definition.

rtk_bt_mesh_generic_location_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_GLOBAL_STATUS
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_LOCAL_STATUS
enumerator RTK_BT_MESH_GENERIC_LOCATION_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_location_server_model_evt_t

BLE MESH generic location client model evt definition.

rtk_bt_mesh_generic_location_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_LOCATION_SERVER_MODEL_GLOBAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SERVER_MODEL_LOCAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_location_setup_server_model_evt_t

BLE MESH generic location setup server model evt definition.

rtk_bt_mesh_generic_location_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL_GLOBAL_SET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL_LOCAL_SET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL_GLOBAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL_LOCAL_GET
enumerator RTK_BT_MESH_GENERIC_LOCATION_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_property_client_model_act_t

BLE MESH generic property client model act definition.

rtk_bt_mesh_generic_property_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTIES_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTY_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTIES_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTY_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTIES_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTY_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_CLIENT_PROPERTY_GET
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_property_client_model_evt_t

BLE MESH generic property client model evt definition.

rtk_bt_mesh_generic_property_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTIES_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_USER_PROPERTY_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTIES_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_ADMIN_PROPERTY_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTIES_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_MANU_PROPERTY_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_CLIENT_PROPERTY_STATUS
enumerator RTK_BT_MESH_GENERIC_PROPERTY_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_user_property_server_model_evt_t

BLE MESH generic user property server model evt definition.

rtk_bt_mesh_generic_user_property_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_PARAMETER_GET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_NUM_IDS_GET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_IDS_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_user_property_server_model_act_t

BLE MESH generic user property server model act definition.

rtk_bt_mesh_generic_user_property_server_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_GENERIC_USER_PROPERTY_SERVER_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_admin_property_server_model_evt_t

BLE MESH generic admin property server model evt definition.

rtk_bt_mesh_generic_admin_property_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_PARAMETER_GET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_NUM_IDS_GET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_IDS_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_admin_property_server_model_act_t

BLE MESH generic admin property server model act definition.

rtk_bt_mesh_generic_admin_property_server_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_GENERIC_ADMIN_PROPERTY_SERVER_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_manu_property_server_model_evt_t

BLE MESH generic manu property server model evt definition.

rtk_bt_mesh_generic_manu_property_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_PROPERTY_SET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_PARAMETER_GET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_NUM_IDS_GET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_IDS_VALUE_GET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_manu_property_server_model_act_t

BLE MESH generic manu property server model act definition.

rtk_bt_mesh_generic_manu_property_server_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_GENERIC_MANU_PROPERTY_SERVER_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_client_property_server_model_evt_t

BLE MESH generic client property server model evt definition.

rtk_bt_mesh_generic_client_property_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_CLIENT_PROPERTY_SERVER_MODEL_PROPERTY_GET
enumerator RTK_BT_MESH_GENERIC_CLIENT_PROPERTY_SERVER_MODEL_EVT_MAX
typedef rtk_bt_mesh_generic_location_global_t rtk_bt_mesh_generic_location_server_get_global_t

BLE MESH generic location global get evt message structure.

rtk_bt_mesh_generic_location_server_get_global_t

typedef rtk_bt_mesh_generic_location_local_t rtk_bt_mesh_generic_location_server_get_local_t

BLE MESH generic location local get evt message structure.

rtk_bt_mesh_generic_location_server_get_local_t

typedef rtk_bt_mesh_generic_location_global_t rtk_bt_mesh_generic_location_server_set_global_t

BLE MESH generic location global set evt message structure.

rtk_bt_mesh_generic_location_server_set_global_t

typedef rtk_bt_mesh_generic_location_local_t rtk_bt_mesh_generic_location_server_set_local_t

BLE MESH generic location local set evt message structure.

rtk_bt_mesh_generic_location_server_set_local_t

struct rtk_bt_mesh_generic_level_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level get act message structure.

rtk_bt_mesh_generic_level_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_level_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level set act message structure.

rtk_bt_mesh_generic_level_set_t

Public Members

uint16_t dst
uint16_t app_key_index
int16_t level
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_generic_level_delta_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level delta set act message structure.

rtk_bt_mesh_generic_level_delta_set_t

Public Members

uint16_t dst
uint16_t app_key_index
int32_t delta_level
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_generic_level_move_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level move set act message structure.

rtk_bt_mesh_generic_level_move_set_t

Public Members

uint16_t dst
uint16_t app_key_index
int16_t delta_level
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_generic_level_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level client model status evt message structure.

rtk_bt_mesh_generic_level_client_status_t

Public Members

uint16_t src
int16_t present_level
bool optional
int16_t target_level
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_generic_level_server_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level get evt message structure.

rtk_bt_mesh_generic_level_server_get_t

Public Members

int16_t *level
struct rtk_bt_mesh_generic_level_server_get_default_transition_time_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level get default transition time evt message structure.

rtk_bt_mesh_generic_level_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_generic_level_server_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level set evt message structure.

rtk_bt_mesh_generic_level_server_set_t

Public Members

int16_t level
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_generic_level_server_set_move_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic level set move evt message structure.

rtk_bt_mesh_generic_level_server_set_move_t

Public Members

int16_t move_delta
int16_t target_level
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_generic_on_power_up_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic on power up get act message structure.

rtk_bt_mesh_generic_on_power_up_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_on_power_up_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic on power up set act message structure.

rtk_bt_mesh_generic_on_power_up_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_generic_on_power_up_t on_power_up
bool ack
struct rtk_bt_mesh_generic_power_on_off_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power on off client model status evt message structure.

rtk_bt_mesh_generic_power_on_off_client_status_t

Public Members

uint16_t src
rtk_bt_mesh_generic_on_power_up_t on_power_up
struct rtk_bt_mesh_generic_power_on_off_server_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power on off get evt message structure.

rtk_bt_mesh_generic_power_on_off_server_get_t

Public Members

rtk_bt_mesh_generic_on_power_up_t *on_power_up
struct rtk_bt_mesh_generic_power_on_off_server_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power on off set evt message structure.

rtk_bt_mesh_generic_power_on_off_server_set_t

Public Members

rtk_bt_mesh_generic_on_power_up_t on_power_up
struct rtk_bt_mesh_generic_power_level_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level get act message structure.

rtk_bt_mesh_generic_power_level_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_power_level_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level set act message structure.

rtk_bt_mesh_generic_power_level_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t power
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_generic_power_level_last_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level last get act message structure.

rtk_bt_mesh_generic_power_level_last_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_power_level_default_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level default get act message structure.

rtk_bt_mesh_generic_power_level_default_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_power_level_default_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level default set act message structure.

rtk_bt_mesh_generic_power_level_default_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t power
bool ack
struct rtk_bt_mesh_generic_power_level_range_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level range get act message structure.

rtk_bt_mesh_generic_power_level_range_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_power_level_range_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level range set act message structure.

rtk_bt_mesh_generic_power_level_range_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t range_min
uint16_t range_max
bool ack
struct rtk_bt_mesh_generic_power_level_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level client model status evt message structure.

rtk_bt_mesh_generic_power_level_client_status_t

Public Members

uint16_t src
uint16_t present_power
bool optional
uint16_t target_power
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_generic_power_level_client_status_simple_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level client model simple status evt message structure.

rtk_bt_mesh_generic_power_level_client_status_simple_t

Public Members

uint16_t src
uint16_t power
struct rtk_bt_mesh_generic_power_level_client_status_range_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level client model range status evt message structure.

rtk_bt_mesh_generic_power_level_client_status_range_t

Public Members

uint16_t src
rtk_bt_mesh_generic_stat_t stat
uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_generic_power_level_server_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model get evt message structure.

rtk_bt_mesh_generic_power_level_server_get_t

Public Members

uint16_t *power
struct rtk_bt_mesh_generic_power_level_server_get_range_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model get range evt message structure.

rtk_bt_mesh_generic_power_level_server_get_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_generic_power_level_server_direct_get_range_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model get range for direct calling evt message structure.

rtk_bt_mesh_generic_power_level_server_get_range_t

struct rtk_bt_mesh_generic_power_level_server_get_default_transition_time_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model get default transition time evt message structure.

rtk_bt_mesh_generic_power_level_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_generic_power_level_server_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model set evt message structure.

rtk_bt_mesh_generic_power_level_server_set_t

Public Members

uint16_t power
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_generic_power_level_server_set_last_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model set last evt message structure.

rtk_bt_mesh_generic_power_level_server_set_last_t

Public Members

uint16_t power
struct rtk_bt_mesh_generic_power_level_server_set_default_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model set default evt message structure.

rtk_bt_mesh_generic_power_level_server_set_default_t

Public Members

uint16_t power
struct rtk_bt_mesh_generic_power_level_server_set_range_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic power level server model set range evt message structure.

rtk_bt_mesh_generic_power_level_server_set_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_generic_battery_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic battery get act message structure.

rtk_bt_mesh_generic_battery_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_battery_flags_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic battery flags structure.

rtk_bt_mesh_generic_battery_flags_t

Public Members

uint8_t presence
uint8_t indicator
uint8_t charging
uint8_t serviceability
struct rtk_bt_mesh_generic_battery_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic battery client status act message structure.

rtk_bt_mesh_generic_battery_client_status_t

Public Members

uint16_t src
uint8_t battery_level
uint32_t time_to_discharge
uint32_t time_to_charge
rtk_bt_mesh_generic_battery_flags_t flags
struct rtk_bt_mesh_generic_battery_server_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic battery server get status message structure.

rtk_bt_mesh_generic_battery_server_get_t

Public Members

uint8_t battery_level
uint32_t time_to_discharge
uint32_t time_to_charge
rtk_bt_mesh_generic_battery_flags_t flags
struct rtk_bt_mesh_generic_battery_server_direct_get_t
#include <rtk_bt_mesh_generic_model.h>

BBLE MESH generic battery server get status for direct calling message structure.

rtk_bt_mesh_generic_battery_server_direct_get_t

struct rtk_bt_mesh_generic_location_global_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location global get act message structure.

rtk_bt_mesh_generic_location_global_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_location_global_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location global parameter structure.

rtk_bt_mesh_generic_location_global_t

Public Members

int32_t global_latitude
int32_t global_longitude
int16_t global_altitude
struct rtk_bt_mesh_generic_location_global_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location global set act message structure.

rtk_bt_mesh_generic_location_global_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_generic_location_global_t global
bool ack
struct rtk_bt_mesh_generic_location_local_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location local get act message structure.

rtk_bt_mesh_generic_location_local_get_t

Public Members

uint16_t dst
uint16_t app_key_index
union rtk_bt_mesh_generic_location_uncertainty_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location uncertainty parameter structure.

rtk_bt_mesh_generic_location_uncertainty_t

Public Members

uint16_t stationary
uint16_t rfu
uint16_t update_time
uint16_t precision
struct rtk_bt_mesh_generic_location_uncertainty_t::[anonymous] [anonymous]
uint16_t uncertainty
struct rtk_bt_mesh_generic_location_local_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location local parameter structure.

rtk_bt_mesh_generic_location_local_t

Public Members

int16_t local_north
int16_t local_east
int16_t local_altitude
uint8_t floor_num
rtk_bt_mesh_generic_location_uncertainty_t uncertainty
struct rtk_bt_mesh_generic_location_local_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location local set act message structure.

rtk_bt_mesh_generic_location_local_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_generic_location_local_t local
bool ack
struct rtk_bt_mesh_generic_location_client_status_global_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location global status evt message structure.

rtk_bt_mesh_generic_location_client_status_global_t

Public Members

uint16_t src
rtk_bt_mesh_generic_location_global_t global
struct rtk_bt_mesh_generic_location_client_status_local_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location local status evt message structure.

rtk_bt_mesh_generic_location_client_status_local_t

Public Members

uint16_t src
rtk_bt_mesh_generic_location_local_t local
struct rtk_bt_mesh_generic_location_server_direct_get_global_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location global direct get evt message structure.

rtk_bt_mesh_generic_location_server_direct_get_global_t

struct rtk_bt_mesh_generic_location_server_direct_get_local_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic location local direct get evt message structure.

rtk_bt_mesh_generic_location_server_direct_get_local_t

struct rtk_bt_mesh_generic_user_properties_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic user properties get act message structure.

rtk_bt_mesh_generic_user_properties_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_user_property_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic user property get act message structure.

rtk_bt_mesh_generic_user_property_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_generic_user_property_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic user property set act message structure.

rtk_bt_mesh_generic_user_property_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t pvalue[GENERIC_PROPERTY_DATA_MAX_LEN]
uint8_t value_len
bool ack
struct rtk_bt_mesh_generic_admin_properties_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic admin properties get act message structure.

rtk_bt_mesh_generic_admin_properties_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_admin_property_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic admin property get act message structure.

rtk_bt_mesh_generic_admin_property_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_generic_admin_property_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic admin property set act message structure.

rtk_bt_mesh_generic_admin_property_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t property_access
uint8_t pvalue[GENERIC_PROPERTY_DATA_MAX_LEN]
uint8_t value_len
bool ack
struct rtk_bt_mesh_generic_manu_properties_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic manufacturer properties get act message structure.

rtk_bt_mesh_generic_manu_properties_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_manu_property_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic manufacturer property get act message structure.

rtk_bt_mesh_generic_manu_property_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_generic_manu_property_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic manufacturer property set act message structure.

rtk_bt_mesh_generic_manu_property_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t property_access
bool ack
struct rtk_bt_mesh_generic_client_properties_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic client properties get act message structure.

rtk_bt_mesh_generic_client_properties_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_generic_properties_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic client properties status evt message structure.

rtk_bt_mesh_generic_properties_client_status_t

Public Members

uint16_t src
uint8_t num_ids
uint16_t *pproperty_ids
struct rtk_bt_mesh_generic_property_client_status_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic client property status evt message structure.

rtk_bt_mesh_generic_property_client_status_t

Public Members

uint16_t src
uint16_t property_id
uint8_t property_access
uint16_t value_len
uint8_t *pproperty_value
struct rtk_bt_mesh_generic_property_db_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server database structure.

rtk_bt_mesh_generic_property_db_t

Public Members

uint16_t property_id
uint8_t property_access
uint8_t *pproperty_value

variable length

uint16_t value_len
struct rtk_bt_mesh_generic_user_property_server_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic user property server set evt message structure.

rtk_bt_mesh_generic_user_property_server_set_t

Public Members

uint16_t property_id
uint8_t *pproperty_value
uint16_t value_len
struct rtk_bt_mesh_generic_property_server_para_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server parameter message structure.

rtk_bt_mesh_generic_property_server_set_t

Public Members

bool pdb
uint8_t property_access
uint16_t value_len
struct rtk_bt_mesh_generic_property_server_para_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server get parameter message structure.

rtk_bt_mesh_generic_property_server_para_get_t

Public Members

uint16_t property_id
rtk_bt_mesh_generic_property_server_para_t *pvalue
struct rtk_bt_mesh_generic_property_server_value_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server get value message structure.

rtk_bt_mesh_generic_property_server_value_get_t

Public Members

uint16_t property_id
uint16_t value_len
uint8_t *pproperty_value
struct rtk_bt_mesh_generic_property_server_num_ids_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server num ids message structure.

rtk_bt_mesh_generic_property_server_num_ids_t

Public Members

bool pdb
uint8_t num_ids
struct rtk_bt_mesh_generic_property_server_num_ids_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server num ids get message structure.

rtk_bt_mesh_generic_property_server_num_ids_get_t

struct rtk_bt_mesh_generic_property_server_num_ids_value_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic user property server num ids value get message structure.

rtk_bt_mesh_generic_property_server_num_ids_value_get_t

Public Members

uint8_t num_ids
uint16_t *property_ids
struct rtk_bt_mesh_generic_manu_property_server_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic manufacturer property server set message structure.

rtk_bt_mesh_generic_manu_property_server_set_t

Public Members

uint16_t property_id
uint8_t property_access
struct rtk_bt_mesh_generic_client_property_server_direct_get_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic client property server get for direct calling message structure.

rtk_bt_mesh_generic_client_property_server_direct_get_t

Public Members

uint16_t property_id_start
uint8_t *value
struct rtk_bt_mesh_generic_property_server_db_set_t
#include <rtk_bt_mesh_generic_model.h>

BLE MESH generic property server database set message structure.

rtk_bt_mesh_generic_property_server_db_set_t

Public Members

uint16_t num_properties
void *pdata_db

BT Mesh Generic Onoff Model Types

enum rtk_bt_mesh_generic_onoff_client_model_act_t

BLE MESH generic on off client model act definition.

rtk_bt_mesh_generic_onoff_client_model_act_t

Values:

enumerator RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_ACT_SET
enumerator RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_ACT_GET
enumerator RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_generic_onoff_client_model_evt_t

BLE MESH generic on off client model event definition.

rtk_bt_mesh_generic_onoff_client_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_EVT_STATUS
enumerator RTK_BT_MESH_GENERIC_ONOFF_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_onoff_server_model_evt_t

BLE MESH generic on off server model event definition.

rtk_bt_mesh_generic_onoff_server_model_evt_t

Values:

enumerator RTK_BT_MESH_GENERIC_ONOFF_SERVER_MODEL_EVT_SET
enumerator RTK_BT_MESH_GENERIC_ONOFF_SERVER_MODEL_EVT_GET
enumerator RTK_BT_MESH_GENERIC_ONOFF_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_generic_on_off_t

BLE MESH generic on off set data structure.

rtk_bt_mesh_generic_on_off_t

Values:

enumerator RTK_BT_MESH_GENERIC_OFF
enumerator RTK_BT_MESH_GENERIC_ON
struct rtk_bt_mesh_generic_transition_time_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off set transition time structure.

rtk_bt_mesh_generic_transition_time_t

Public Members

uint8_t num_steps
uint8_t step_resolution
struct rtk_bt_mesh_generic_onoff_client_act_set_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off set message structure.

rtk_bt_mesh_generic_onoff_client_act_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_generic_on_off_t on_off
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_generic_onoff_client_act_get_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off get message structure.

rtk_bt_mesh_generic_onoff_client_act_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_generic_onoff_server_evt_set_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off set evt message structure.

rtk_bt_mesh_generic_onoff_server_evt_set_t

struct rtk_bt_mesh_generic_onoff_server_evt_get_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off get evt message structure.

rtk_bt_mesh_generic_onoff_server_evt_get_t

Public Members

rtk_bt_mesh_generic_on_off_t *on_off
struct rtk_bt_mesh_generic_onoff_client_evt_status_t
#include <rtk_bt_mesh_generic_onoff_model.h>

BLE MESH generic on off client model set evt message structure.

rtk_bt_mesh_generic_onoff_client_evt_status_t

Public Members

uint16_t src
rtk_bt_mesh_generic_on_off_t present_on_off
bool optional
rtk_bt_mesh_generic_on_off_t target_on_off
rtk_bt_mesh_generic_transition_time_t remaining_time

BT Mesh Health Model Types

enum rtk_bt_mesh_health_client_model_act_t

BLE MESH health client model act definition.

rtk_bt_mesh_health_client_model_act_t

Values:

enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_GET
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_CLEAR
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_TEST
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_PERIOD_GET
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_PERIOD_SET
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_ATTN_GET
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_ATTN_SET
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_health_client_model_evt_t

BLE MESH health client model event definition.

rtk_bt_mesh_health_client_model_evt_t

Values:

enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_ATTN_STATUS
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_CURT_STATUS
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_FAULT_STATUS
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_PERIOD_STATUS
enumerator RTK_BT_MESH_HEALTH_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_health_server_model_evt_t

BLE MESH health server model event definition.

rtk_bt_mesh_health_server_model_evt_t

Values:

enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_FAULT_GET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_FAULT_CLEAR
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_FAULT_TEST
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_PERIOD_GET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_PERIOD_SET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ATTN_GET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ATTN_SET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_CURRENT_GET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_health_server_model_act_t

BLE MESH health server model act definition.

rtk_bt_mesh_health_server_model_act_t

Values:

enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_FAULT_REGISTER
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CURRENT_FAULT_CLEAR
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CURRENT_FAULT_CLEAR_ALL
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_FAULT_COUNT
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_CHECK_FAULT_IS_SET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_TEST_SET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_COMPANY_ID_SET
enumerator RTK_BT_MESH_HEALTH_SERVER_MODEL_ACT_MAX
typedef void (*rtk_bt_mesh_health_server_test_cb_t)(const void *pmodel_info, uint16_t company_id, uint8_t test_id)
struct rtk_bt_mesh_health_fault_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health fault get act message structure.

rtk_bt_mesh_health_fault_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t company_id
struct rtk_bt_mesh_health_fault_clear_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health fault clear act message structure.

rtk_bt_mesh_health_fault_clear_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t company_id
bool ack
struct rtk_bt_mesh_health_fault_test_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health fault test act message structure.

rtk_bt_mesh_health_fault_test_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t test_id
uint16_t company_id
bool ack
struct rtk_bt_mesh_health_period_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health period get act message structure.

rtk_bt_mesh_health_period_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_health_period_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health period set act message structure.

rtk_bt_mesh_health_period_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t fast_period_divisor
bool ack
struct rtk_bt_mesh_health_attn_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health attn get act message structure.

rtk_bt_mesh_health_attn_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_health_attn_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health attn set act message structure.

rtk_bt_mesh_health_attn_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t attn
bool ack
struct rtk_bt_mesh_health_client_status_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health client model status message structure.

rtk_bt_mesh_health_client_status_t

Public Members

uint16_t src
uint8_t test_id
uint16_t company_id
uint8_t fault_array_len
uint8_t *fault_array
struct rtk_bt_mesh_health_client_status_period_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health client model period status message structure.

rtk_bt_mesh_health_client_status_period_t

Public Members

uint8_t fast_period_divisor
struct rtk_bt_mesh_health_client_status_attention_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health client model attention status message structure.

rtk_bt_mesh_health_client_status_attention_t

Public Members

uint8_t attention
struct rtk_bt_mesh_health_server_fault_register_act_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health server fault register act message structure.

rtk_bt_mesh_health_server_fault_register_act_t

Public Members

uint8_t fault
struct rtk_bt_mesh_health_server_fault_clear_act_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health server fault clear act message structure.

rtk_bt_mesh_health_server_fault_clear_act_t

Public Members

uint8_t fault
struct rtk_bt_mesh_health_server_check_fault_act_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health server fault check act message structure.

rtk_bt_mesh_health_server_check_fault_act_t

Public Members

uint8_t fault
bool set
struct rtk_bt_mesh_health_server_count_fault_act_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health server fault count act message structure.

rtk_bt_mesh_health_server_count_fault_act_t

Public Members

uint8_t fault_count
struct rtk_bt_mesh_health_server_fault_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health get fault evt message structure.

rtk_bt_mesh_health_server_fault_get_t

Public Members

uint16_t company_id
uint8_t *fault_array
struct rtk_bt_mesh_health_server_fault_clear_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health clear fault evt message structure.

rtk_bt_mesh_health_server_fault_clear_t

Public Members

uint16_t company_id
uint8_t *fault_array
struct rtk_bt_mesh_health_server_fault_test_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health test fault evt message structure.

rtk_bt_mesh_health_server_fault_test_t

Public Members

uint8_t test_id
uint16_t company_id
uint8_t *fault_array
struct rtk_bt_mesh_health_server_period_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health period evt get message structure.

rtk_bt_mesh_health_server_period_get_t

Public Members

uint8_t *fast_period_divisor
struct rtk_bt_mesh_health_server_period_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health period evt set message structure.

rtk_bt_mesh_health_server_period_set_t

Public Members

uint8_t fast_period_divisor
struct rtk_bt_mesh_health_server_attn_get_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health attention timer get evt message structure.

rtk_bt_mesh_health_server_attn_get_t

Public Members

uint8_t *attn
struct rtk_bt_mesh_health_server_attn_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health attention timer set evt message structure.

rtk_bt_mesh_health_server_attn_set_t

Public Members

uint8_t attn
struct rtk_bt_mesh_health_server_test_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health test setting message structure.

rtk_bt_mesh_health_server_test_t

Public Members

uint8_t test_id
rtk_bt_mesh_health_server_test_cb_t test_cb
struct rtk_bt_mesh_health_server_test_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health test set act message structure.

rtk_bt_mesh_health_server_test_set_t

Public Members

uint8_t num_tests
void *test
struct rtk_bt_mesh_health_server_company_id_set_t
#include <rtk_bt_mesh_health_model.h>

BLE MESH health company id set act message structure.

rtk_bt_mesh_health_server_company_id_set_t

Public Members

uint16_t company_id

BT Mesh Light Model Types

enum rtk_bt_mesh_light_lightness_client_model_act_t

BLE MESH light lightness client model act definition.

rtk_bt_mesh_light_lightness_client_model_act_t

Values:

enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LAST_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_light_lightness_client_model_evt_t

BLE MESH light lightness client model event definition.

rtk_bt_mesh_light_lightness_client_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LAST_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_light_lightness_server_model_evt_t

BLE MESH light lightness server model event definition.

rtk_bt_mesh_light_lightness_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LAST_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LINEAR_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_LAST_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_lightness_setup_server_model_evt_t

BLE MESH light lightness setup server model event definition.

rtk_bt_mesh_light_lightness_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_DEFAULT_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_RANGE_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LIGHTNESS_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_ctl_client_model_act_t

BLE MESH light ctl client model act definition.

rtk_bt_mesh_light_ctl_client_model_act_t

Values:

enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_GET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_SET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_RANGE_GET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_RANGE_SET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_DEFAULT_GET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_DEFAULT_SET
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_light_ctl_client_model_evt_t

BLE MESH light ctl client model evt definition.

rtk_bt_mesh_light_ctl_client_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_STATUS
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_TEMPERATURE_RANGE_STATUS
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_DEFAULT_STATUS
enumerator RTK_BT_MESH_LIGHT_CTL_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_light_ctl_server_model_evt_t

BLE MESH light ctl server model evt definition.

rtk_bt_mesh_light_ctl_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_DEFAULT_GET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_TEMPERATURE_RANGE_GET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_ctl_setup_server_model_evt_t

BLE MESH light ctl setup server model evt definition.

rtk_bt_mesh_light_ctl_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_TEMPERATURE_RANGE_SET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_DEFAULT_SET
enumerator RTK_BT_MESH_LIGHT_CTL_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_ctl_temperature_server_model_evt_t

BLE MESH light ctl temperature server model evt definition.

rtk_bt_mesh_light_ctl_temperature_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_TEMPERATURE_GET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_TEMPERATURE_SET
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_MODEL_TEMPERATURE_RANGE_GET_T
enumerator RTK_BT_MESH_LIGHT_CTL_SERVER_TEMPERATURE_MODEL_EVT_MAX
enum rtk_bt_mesh_light_hsl_client_model_act_t

BLE MESH light hsl client model act definition.

rtk_bt_mesh_light_hsl_client_model_act_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_TARGET_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_HUE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_HUE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_DEFAULT_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_DEFAULT_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_light_hsl_client_model_evt_t

BLE MESH light hsl client model evt definition.

rtk_bt_mesh_light_hsl_client_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_TARGET_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_HUE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_DEFAULT_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_HSL_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_light_hsl_server_model_evt_t

BLE MESH light hsl server model evt definition.

rtk_bt_mesh_light_hsl_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_DEFAULT_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_hsl_hue_server_model_evt_t

BLE MESH light hsl hue server model evt definition.

rtk_bt_mesh_light_hsl_hue_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_HUE_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_HUE_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_SERVER_MODEL_GET_H
enumerator RTK_BT_MESH_LIGHT_HSL_HUE_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_hsl_saturation_server_model_evt_t

BLE MESH light hsl saturation server model evt definition.

rtk_bt_mesh_light_hsl_saturation_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_SERVER_MODEL_GET_S
enumerator RTK_BT_MESH_LIGHT_HSL_SATURATION_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_hsl_setup_server_model_evt_t

BLE MESH light hsl setup server model evt definition.

rtk_bt_mesh_light_hsl_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_HSL_DEFAULT_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_RANGE_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_HSL_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_xyl_client_model_act_t

BLE MESH light xyl client model act definition.

rtk_bt_mesh_light_xyl_client_model_act_t

Values:

enumerator RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_TARGET_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_DEFAULT_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_DEFAULT_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_RANGE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_RANGE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_light_xyl_client_model_evt_t

BLE MESH light xyl client model evt definition.

rtk_bt_mesh_light_xyl_client_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_XYL_TARGET_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_XYL_DEFAULT_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_XYL_RANGE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_XYL_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_light_xyl_server_model_evt_t

BLE MESH light xyl server model evt definition.

rtk_bt_mesh_light_xyl_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_XYL_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_DEFAULT_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_RANGE_SERVER_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_XYL_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_xyl_setup_server_model_evt_t

BLE MESH light xyl setup server model evt definition.

rtk_bt_mesh_light_xyl_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_XYL_DEFAULT_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_RANGE_SERVER_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_XYL_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_lc_client_model_act_t

BLE MESH light lc client model act definition.

rtk_bt_mesh_light_lc_client_model_act_t

Values:

enumerator RTK_BT_MESH_LIGHT_LC_MODE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LC_MODE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LC_OM_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LC_OM_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LC_LIGHTONOFF_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LC_LIGHTONOFF_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LC_PROPERTY_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_LIGHT_LC_PROPERTY_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_LIGHT_LC_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_light_lc_client_model_evt_t

BLE MESH light lc client model evt definition.

rtk_bt_mesh_light_lc_client_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LC_MODE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LC_OM_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LC_LIGHTONOFF_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LC_PROPERTY_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_LIGHT_LC_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_light_lc_server_model_evt_t

BLE MESH light lc server model evt definition.

rtk_bt_mesh_light_lc_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_MODE_GET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_MODE_SET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_OM_GET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_OM_SET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_LIGHT_ON_OFF_GET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_SM_TRANSITION_TIME_GET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_LIGHT_ON_OFF_SET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_light_lc_setup_server_model_evt_t

BLE MESH light lc setup server model evt definition.

rtk_bt_mesh_light_lc_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_PROPERTY_GET
enumerator RTK_BT_MESH_LIGHT_LC_SERVER_MODEL_PROPERTY_SET
enumerator RTK_BT_MESH_LIGHT_LC_SETUP_SERVER_MODEL_EVT_MAX
typedef rtk_bt_mesh_light_xyl_t rtk_bt_mesh_light_xyl_server_get_t

BLE MESH light xyl get evt message structure.

rtk_bt_mesh_light_xyl_server_get_t

typedef rtk_bt_mesh_light_xyl_t rtk_bt_mesh_light_xyl_server_get_default_t

BLE MESH light xyl get default evt message structure.

rtk_bt_mesh_light_xyl_server_get_default_t

typedef rtk_bt_mesh_light_xyl_t rtk_bt_mesh_light_xyl_server_set_default_t

BLE MESH light xyl set default evt message structure.

rtk_bt_mesh_light_xyl_server_set_default_t

struct rtk_bt_mesh_light_lightness_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get act message structure.

rtk_bt_mesh_light_lightness_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lightness_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness set act message structure.

rtk_bt_mesh_light_lightness_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_lightness_linear_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness linear get act message structure.

rtk_bt_mesh_light_lightness_linear_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lightness_linear_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness linear set act message structure.

rtk_bt_mesh_light_lightness_linear_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_lightness_last_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness last get act message structure.

rtk_bt_mesh_light_lightness_last_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lightness_default_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness default get act message structure.

rtk_bt_mesh_light_lightness_default_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lightness_default_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness default set act message structure.

rtk_bt_mesh_light_lightness_default_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
bool ack
struct rtk_bt_mesh_light_lightness_range_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness range get act message structure.

rtk_bt_mesh_light_lightness_range_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lightness_range_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness range set act message structure.

rtk_bt_mesh_light_lightness_range_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t range_min
uint16_t range_max
bool ack
struct rtk_bt_mesh_light_lightness_client_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness client model status message structure.

rtk_bt_mesh_light_lightness_client_status_t

Public Members

uint16_t src
uint16_t present_lightness
bool optional
uint16_t target_lightness
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_lightness_client_status_last_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness client model last status message structure.

rtk_bt_mesh_light_lightness_client_status_last_t

Public Members

uint16_t src
uint16_t lightness
struct rtk_bt_mesh_light_lightness_client_status_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness client model default status message structure.

rtk_bt_mesh_light_lightness_client_status_default_t

Public Members

uint16_t src
uint16_t lightness
struct rtk_bt_mesh_light_lightness_client_status_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness client model range status message structure.

rtk_bt_mesh_light_lightness_client_status_range_t

Public Members

uint16_t src
rtk_bt_mesh_generic_stat_t status
uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_lightness_server_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get evt message structure.

rtk_bt_mesh_light_lightness_server_get_t

Public Members

uint16_t lightness
struct rtk_bt_mesh_light_lightness_server_direct_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get direct evt message structure.

rtk_bt_mesh_light_lightness_server_direct_get_t

struct rtk_bt_mesh_light_lightness_server_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get range evt message structure.

rtk_bt_mesh_light_lightness_server_get_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_lightness_server_direct_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get range direct evt message structure.

rtk_bt_mesh_light_lightness_server_direct_get_range_t

struct rtk_bt_mesh_light_lightness_server_get_default_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness get default transition time evt message structure.

rtk_bt_mesh_light_lightness_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_light_lightness_server_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness set evt message structure.

rtk_bt_mesh_light_lightness_server_set_t

Public Members

uint16_t lightness
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_lightness_server_set_last_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness set last evt message structure.

rtk_bt_mesh_light_lightness_server_set_last_t

Public Members

uint16_t lightness
struct rtk_bt_mesh_light_lightness_server_set_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness set default evt message structure.

rtk_bt_mesh_light_lightness_server_set_default_t

Public Members

uint16_t lightness
struct rtk_bt_mesh_light_lightness_server_set_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lightness set range evt message structure.

rtk_bt_mesh_light_lightness_server_set_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_ctl_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get act message structure.

rtk_bt_mesh_light_ctl_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_ctl_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl set act message structure.

rtk_bt_mesh_light_ctl_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint16_t temperature
int16_t delta_uv
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_ctl_temperature_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl temperature get act message structure.

rtk_bt_mesh_light_ctl_temperature_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_ctl_temperature_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl temperature set act message structure.

rtk_bt_mesh_light_ctl_temperature_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t temperature
int16_t delta_uv
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_ctl_temperature_range_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl temperature range get act message structure.

rtk_bt_mesh_light_ctl_temperature_range_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_ctl_temperature_range_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl temperature range set act message structure.

rtk_bt_mesh_light_ctl_temperature_range_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t range_min
uint16_t range_max
bool ack
struct rtk_bt_mesh_light_ctl_default_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl default get act message structure.

rtk_bt_mesh_light_ctl_default_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_ctl_default_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl default set act message structure.

rtk_bt_mesh_light_ctl_default_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint16_t temperature
int16_t delta_uv
bool ack
struct rtk_bt_mesh_light_ctl_client_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl client model status message structure.

rtk_bt_mesh_light_ctl_client_status_t

Public Members

uint16_t src
uint16_t present_lightness
uint16_t present_temperature
bool optional
uint16_t target_lightness
uint16_t target_temperature
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_ctl_client_status_temperature_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl client model status temperature message structure.

rtk_bt_mesh_light_ctl_client_status_temperature_t

Public Members

uint16_t src
uint16_t present_temperature
int16_t present_delta_uv
bool optional
uint16_t target_temperature
int16_t target_delta_uv
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_ctl_client_status_temperature_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl client model status temperature range message structure.

rtk_bt_mesh_light_ctl_client_status_temperature_range_t

Public Members

uint16_t src
rtk_bt_mesh_generic_stat_t status
uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_ctl_client_status_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl client model status default message structure.

rtk_bt_mesh_light_ctl_client_status_default_t

Public Members

uint16_t src
uint16_t lightness
uint16_t temperature
int16_t delta_uv
struct rtk_bt_mesh_light_ctl_server_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get evt message structure.

rtk_bt_mesh_light_ctl_server_get_t

Public Members

uint16_t lightness
uint16_t temperature
struct rtk_bt_mesh_light_ctl_server_direct_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get direct evt message structure.

rtk_bt_mesh_light_ctl_server_direct_get_t

struct rtk_bt_mesh_light_ctl_server_get_temperature_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get temperature evt message structure.

rtk_bt_mesh_light_ctl_server_get_temperature_t

Public Members

uint16_t temperature
int16_t delta_uv
struct rtk_bt_mesh_light_ctl_server_direct_get_temperature_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get temperature direct evt message structure.

rtk_bt_mesh_light_ctl_server_direct_get_temperature_t

struct rtk_bt_mesh_light_ctl_server_get_default_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get default transition time evt message structure.

rtk_bt_mesh_light_ctl_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_light_ctl_server_get_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get default evt message structure.

rtk_bt_mesh_light_ctl_server_get_default_t

Public Members

uint16_t lightness
uint16_t temperature
int16_t delta_uv
struct rtk_bt_mesh_light_ctl_server_direct_get_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get default direct evt message structure.

rtk_bt_mesh_light_ctl_server_direct_get_default_t

struct rtk_bt_mesh_light_ctl_server_get_temperature_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get temperature range evt message structure.

rtk_bt_mesh_light_ctl_server_get_temperature_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_ctl_server_direct_get_temperature_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl get temperature range direct evt message structure.

rtk_bt_mesh_light_ctl_server_direct_get_temperature_range_t

struct rtk_bt_mesh_light_ctl_server_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl set evt message structure.

rtk_bt_mesh_light_ctl_server_set_t

Public Members

uint16_t lightness
uint16_t temperature
int16_t delta_uv
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_ctl_server_set_temperature_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl set temperature evt message structure.

rtk_bt_mesh_light_ctl_server_set_temperature_t

Public Members

uint16_t temperature
int16_t delta_uv
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_ctl_server_set_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl set default evt message structure.

rtk_bt_mesh_light_ctl_server_set_default_t

Public Members

uint16_t lightness
uint16_t temperature
int16_t delta_uv
struct rtk_bt_mesh_light_ctl_server_set_temperature_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light ctl set temperature range evt message structure.

rtk_bt_mesh_light_ctl_server_set_temperature_range_t

Public Members

uint16_t range_min
uint16_t range_max
struct rtk_bt_mesh_light_hsl_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get act message structure.

rtk_bt_mesh_light_hsl_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set act message structure.

rtk_bt_mesh_light_hsl_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint16_t hue
uint16_t saturation
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_hsl_target_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl target get act message structure.

rtk_bt_mesh_light_hsl_target_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_hue_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl hue get act message structure.

rtk_bt_mesh_light_hsl_hue_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_hue_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl hue set act message structure.

rtk_bt_mesh_light_hsl_hue_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t hue
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_hsl_saturation_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl saturation get act message structure.

rtk_bt_mesh_light_hsl_saturation_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_saturation_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl saturation set act message structure.

rtk_bt_mesh_light_hsl_saturation_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t saturation
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_hsl_default_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl default get act message structure.

rtk_bt_mesh_light_hsl_default_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_default_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl default set act message structure.

rtk_bt_mesh_light_hsl_default_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t lightness
uint16_t hue
uint16_t saturation
bool ack
struct rtk_bt_mesh_light_hsl_range_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl range get act message structure.

rtk_bt_mesh_light_hsl_range_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_hsl_range_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl range set act message structure.

rtk_bt_mesh_light_hsl_range_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t hue_range_min
uint16_t hue_range_max
uint16_t saturation_range_min
uint16_t saturation_range_max
bool ack
struct rtk_bt_mesh_light_hsl_client_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl client model status message structure.

rtk_bt_mesh_light_hsl_client_status_t

Public Members

uint16_t src
uint16_t lightness
uint16_t hue
uint16_t saturation
bool optional
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_client_status_hue_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl hue client model status message structure.

rtk_bt_mesh_light_hsl_client_status_hue_t

Public Members

uint16_t src
uint16_t present_hue
bool optional
uint16_t target_hue
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_client_status_saturation_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl saturation client model status message structure.

rtk_bt_mesh_light_hsl_client_status_saturation_t

Public Members

uint16_t src
uint16_t present_saturation
bool optional
uint16_t target_saturation
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_client_status_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl client model default status message structure.

rtk_bt_mesh_light_hsl_client_status_default_t

Public Members

uint16_t src
uint16_t lightness
uint16_t hue
uint16_t saturation
struct rtk_bt_mesh_light_hsl_client_status_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl client model range status message structure.

rtk_bt_mesh_light_hsl_client_status_range_t

Public Members

uint16_t src
rtk_bt_mesh_generic_stat_t status
uint16_t hue_range_min
uint16_t hue_range_max
uint16_t saturation_range_min
uint16_t saturation_range_max
struct rtk_bt_mesh_light_hsl_server_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get evt message structure.

rtk_bt_mesh_light_hsl_server_get_t

Public Members

uint16_t lightness
uint16_t hue
uint16_t saturation
struct rtk_bt_mesh_light_hsl_server_direct_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get direct evt message structure.

rtk_bt_mesh_light_hsl_server_direct_get_t

struct rtk_bt_mesh_light_hsl_server_get_hue_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get hue evt message structure.

rtk_bt_mesh_light_hsl_server_get_hue_t

Public Members

uint16_t hue
struct rtk_bt_mesh_light_hsl_server_direct_get_hue_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get hue direct evt message structure.

rtk_bt_mesh_light_hsl_server_direct_get_hue_t

struct rtk_bt_mesh_light_hsl_server_get_saturation_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get saturation evt message structure.

rtk_bt_mesh_light_hsl_server_get_saturation_t

Public Members

uint16_t saturation
struct rtk_bt_mesh_light_hsl_server_direct_get_saturation_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get saturation direct evt message structure.

rtk_bt_mesh_light_hsl_server_direct_get_saturation_t

struct rtk_bt_mesh_light_hsl_server_get_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get default evt message structure.

rtk_bt_mesh_light_hsl_server_get_default_t

Public Members

uint16_t lightness
uint16_t hue
uint16_t saturation
struct rtk_bt_mesh_light_hsl_server_direct_get_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get default direct evt message structure.

rtk_bt_mesh_light_hsl_server_direct_get_default_t

struct rtk_bt_mesh_light_hsl_server_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get range evt message structure.

rtk_bt_mesh_light_hsl_server_get_range_t

Public Members

uint16_t hue_range_min
uint16_t hue_range_max
uint16_t saturation_range_min
uint16_t saturation_range_max
struct rtk_bt_mesh_light_hsl_server_direct_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get range direct evt message structure.

rtk_bt_mesh_light_hsl_server_direct_get_range_t

struct rtk_bt_mesh_light_hsl_server_get_default_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl get default transition time evt message structure.

rtk_bt_mesh_light_hsl_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_light_hsl_server_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set evt message structure.

rtk_bt_mesh_light_hsl_server_set_t

Public Members

uint16_t lightness
uint16_t hue
uint16_t saturation
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_server_set_hue_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set hue evt message structure.

rtk_bt_mesh_light_hsl_server_set_hue_t

Public Members

uint16_t hue
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_server_set_saturation_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set saturation evt message structure.

rtk_bt_mesh_light_hsl_server_set_saturation_t

Public Members

uint16_t saturation
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_hsl_server_set_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set default evt message structure.

rtk_bt_mesh_light_hsl_server_set_default_t

Public Members

uint16_t lightness
uint16_t hue
uint16_t saturation
struct rtk_bt_mesh_light_hsl_server_set_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light hsl set range evt message structure.

rtk_bt_mesh_light_hsl_server_set_range_t

Public Members

uint16_t hue_range_min
uint16_t hue_range_max
uint16_t saturation_range_min
uint16_t saturation_range_max
struct rtk_bt_mesh_light_xyl_t
#include <rtk_bt_mesh_light_model.h>

Mesh message types used by models.

LIGHT_XYL_MESH_MSG Mesh Msg

Public Members

uint16_t xyl_lightness
uint16_t xyl_x
uint16_t xyl_y
struct rtk_bt_mesh_light_xyl_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get act message structure.

rtk_bt_mesh_light_xyl_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_xyl_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl set act message structure.

rtk_bt_mesh_light_xyl_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_light_xyl_t xyl
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_xyl_target_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl target get act message structure.

rtk_bt_mesh_light_xyl_target_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_xyl_default_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl default get act message structure.

rtk_bt_mesh_light_xyl_default_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_xyl_default_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl default set act message structure.

rtk_bt_mesh_light_xyl_default_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_light_xyl_t xyl
bool ack
struct rtk_bt_mesh_light_xyl_range_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl range get act message structure.

rtk_bt_mesh_light_xyl_range_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_xyl_range_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl range set act message structure.

rtk_bt_mesh_light_xyl_range_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t xyl_x_range_min
uint16_t xyl_x_range_max
uint16_t xyl_y_range_min
uint16_t xyl_y_range_max
bool ack
struct rtk_bt_mesh_light_xyl_client_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl client model status message structure.

rtk_bt_mesh_light_xyl_client_status_t

Public Members

uint16_t src
rtk_bt_mesh_light_xyl_t xyl
bool optional
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_xyl_client_status_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl client model default status message structure.

rtk_bt_mesh_light_xyl_client_status_default_t

Public Members

uint16_t src
rtk_bt_mesh_light_xyl_t xyl
struct rtk_bt_mesh_light_xyl_client_status_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl client model range status message structure.

rtk_bt_mesh_light_xyl_client_status_range_t

Public Members

uint16_t src
rtk_bt_mesh_generic_stat_t status
uint16_t xyl_x_range_min
uint16_t xyl_x_range_max
uint16_t xyl_y_range_min
uint16_t xyl_y_range_max
struct rtk_bt_mesh_light_xyl_server_direct_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get direct evt message structure.

rtk_bt_mesh_light_xyl_server_get_t

struct rtk_bt_mesh_light_xyl_server_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get range evt message structure.

rtk_bt_mesh_light_xyl_server_get_range_t

Public Members

uint16_t xyl_x_range_min
uint16_t xyl_x_range_max
uint16_t xyl_y_range_min
uint16_t xyl_y_range_max
struct rtk_bt_mesh_light_xyl_server_direct_get_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get range direct evt message structure.

rtk_bt_mesh_light_xyl_server_direct_get_range_t

struct rtk_bt_mesh_light_xyl_server_direct_get_default_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get default direct evt message structure.

rtk_bt_mesh_light_xyl_server_direct_get_default_t

struct rtk_bt_mesh_light_xyl_server_get_default_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl get default transition time evt message structure.

rtk_bt_mesh_light_xyl_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_light_xyl_server_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl set evt message structure.

rtk_bt_mesh_light_xyl_server_set_t

struct rtk_bt_mesh_light_xyl_server_set_range_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light xyl set range evt message structure.

rtk_bt_mesh_light_xyl_server_set_range_t

Public Members

uint16_t xyl_x_range_min
uint16_t xyl_x_range_max
uint16_t xyl_y_range_min
uint16_t xyl_y_range_max
struct rtk_bt_mesh_light_lc_mode_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc mode get act message structure.

rtk_bt_mesh_light_lc_mode_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lc_mode_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc mode set act message structure.

rtk_bt_mesh_light_lc_mode_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t mode
bool ack
struct rtk_bt_mesh_light_lc_om_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc om get act message structure.

rtk_bt_mesh_light_lc_om_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lc_om_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc om set act message structure.

rtk_bt_mesh_light_lc_om_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t mode
bool ack
struct rtk_bt_mesh_light_lc_lightonoff_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc light on off get act message structure.

rtk_bt_mesh_light_lc_lightonoff_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_light_lc_lightonoff_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc light on off set act message structure.

rtk_bt_mesh_light_lc_lightonoff_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t light_on_off
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_light_lc_property_get_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc property get act message structure.

rtk_bt_mesh_light_lc_property_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_light_lc_property_set_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc property set act message structure.

rtk_bt_mesh_light_lc_property_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t pvalue[LIGHT_LC_PROPERTY_DATA_MAX_LEN]
uint16_t value_len
bool ack
struct rtk_bt_mesh_light_lc_client_mode_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc client model mode status message structure.

rtk_bt_mesh_light_lc_client_mode_status_t

Public Members

uint16_t src
uint8_t mode
struct rtk_bt_mesh_light_lc_client_om_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc client model om status message structure.

rtk_bt_mesh_light_lc_client_om_status_t

Public Members

uint16_t src
uint8_t mode
struct rtk_bt_mesh_light_lc_client_light_on_off_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc client model light on off status message structure.

rtk_bt_mesh_light_lc_client_light_on_off_status_t

Public Members

uint16_t src
rtk_bt_mesh_generic_on_off_t present_on_off
bool optional
rtk_bt_mesh_generic_on_off_t target_on_off
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_light_lc_client_property_status_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc client model property status message structure.

rtk_bt_mesh_light_lc_client_property_status_t

Public Members

uint16_t src
uint16_t property_id
uint32_t property_value
struct rtk_bt_mesh_light_lc_server_get_mode_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get mode evt message structure.

rtk_bt_mesh_light_lc_server_get_mode_t

Public Members

uint8_t mode
struct rtk_bt_mesh_light_lc_server_direct_get_mode_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc direct get mode evt message structure.

rtk_bt_mesh_light_lc_server_direct_get_mode_t

struct rtk_bt_mesh_light_lc_server_get_om_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get om evt message structure.

rtk_bt_mesh_light_lc_server_get_om_t

Public Members

uint8_t mode
struct rtk_bt_mesh_light_lc_server_direct_get_om_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc direct get mode evt message structure.

rtk_bt_mesh_light_lc_server_direct_get_mode_t

struct rtk_bt_mesh_light_lc_server_get_light_on_off_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get light on off evt message structure.

rtk_bt_mesh_light_lc_server_get_light_on_off_t

Public Members

rtk_bt_mesh_generic_on_off_t on_off
struct rtk_bt_mesh_light_lc_server_direct_get_light_on_off_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc direct get light on off evt message structure.

rtk_bt_mesh_light_lc_server_direct_get_light_on_off_t

struct rtk_bt_mesh_light_lc_server_get_property_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get property evt message structure.

rtk_bt_mesh_light_lc_server_get_property_t

Public Members

uint16_t property_id
uint32_t property_value
uint8_t value_len
struct rtk_bt_mesh_light_lc_server_direct_get_property_para_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc direct get property parameter evt message structure.

rtk_bt_mesh_light_lc_server_get_property_t

Public Members

uint8_t value_len
uint32_t property_value
struct rtk_bt_mesh_light_lc_server_direct_get_property_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc direct get property evt message structure.

rtk_bt_mesh_light_lc_server_direct_get_property_t

Public Members

uint16_t property_id
rtk_bt_mesh_light_lc_server_direct_get_property_para_t *value
struct rtk_bt_mesh_light_lc_server_get_default_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get default transition time evt message structure.

rtk_bt_mesh_light_lc_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_light_lc_server_get_sm_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get sm transition time evt message structure.

rtk_bt_mesh_light_lc_server_get_sm_transition_time_t

struct rtk_bt_mesh_light_lc_server_direct_get_sm_transition_time_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc get sm transition time direct evt message structure.

rtk_bt_mesh_light_lc_server_direct_get_sm_transition_time_t

struct rtk_bt_mesh_light_lc_server_set_mode_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc set mode evt message structure.

rtk_bt_mesh_light_lc_server_set_mode_t

Public Members

uint8_t mode
struct rtk_bt_mesh_light_lc_server_set_om_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc set om evt message structure.

rtk_bt_mesh_light_lc_server_set_om_t

Public Members

uint8_t mode
struct rtk_bt_mesh_light_lc_server_set_light_on_off_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc set light on off evt message structure.

rtk_bt_mesh_light_lc_server_set_light_on_off_t

struct rtk_bt_mesh_light_lc_server_set_property_t
#include <rtk_bt_mesh_light_model.h>

BLE MESH light lc set property evt message structure.

rtk_bt_mesh_light_lc_server_set_property_t

Public Members

uint16_t property_id
uint32_t property_value

BT Mesh Performance Test Types

enum rtk_bt_mesh_performence_test_opcode_t

Values:

enumerator RTK_BT_MESH_PERFORMENCE_TEST_PARAM_SET
enumerator RTK_BT_MESH_PERFORMENCE_TEST_START
enumerator RTK_BT_MESH_PERFORMENCE_TEST_SENDING
enumerator RTK_BT_MESH_PERFORMENCE_TEST_END
enumerator RTK_BT_MESH_PERFORMENCE_TEST_REQUEST
enumerator RTK_BT_MESH_PERFORMENCE_TEST_RESPONSE
enumerator RTK_BT_MESH_PERFORMENCE_TEST_PRINT
enumerator RTK_BT_MESH_PERFORMENCE_TEST_OPCODE_MAX
enum rtk_bt_mesh_performence_test_act_t

BLE MESH performence test act definition.

Values:

enumerator RTK_BT_MESH_PERFORMENCE_TEST_ACT_PARAM_SET
enumerator RTK_BT_MESH_PERFORMENCE_TEST_ACT_MSG_SEND
enumerator RTK_BT_MESH_PERFORMENCE_TEST_ACT_RESPONSE_GET
enumerator RTK_BT_MESH_PERFORMENCE_TEST_ACT_MAX
typedef struct Node Bt_Mesh_Test_Node

BLE MESH performence test data store structure.

typedef struct Node *Bt_Mesh_Test_Node_Point
struct Node
#include <rtk_bt_mesh_performence_test.h>

Public Members

uint16_t src
uint16_t count_ack_num
uint16_t response_num
uint16_t real_total_num
struct Node *next

BT Mesh Private Beacon Model Types

enum rtk_bt_mesh_private_beacon_client_model_act_t

BLE MESH private beacon client model act definition.

rtk_bt_mesh_private_beacon_client_model_act_t

Values:

enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GATT_PROXY_GET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_GATT_PROXY_SET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_NODE_IDENTITY_GET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_NODE_IDENTITY_SET
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_private_beacon_client_model_evt_t

BLE MESH datatrans model evt definition.

rtk_bt_mesh_datatrans_model_evt_t

Values:

enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_EVT_STATUS
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_EVT_GATT_PROXY_STATUS
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_EVT_NODE_IDENTITY_STATUS
enumerator RTK_BT_MESH_PRIVATE_BEACON_CLIENT_MODEL_EVT_MAX
struct rtk_bt_mesh_private_beacon_get_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private beacon get act message structure.

rtk_bt_mesh_private_beacon_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_private_beacon_set_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private beacon set act message structure.

rtk_bt_mesh_private_beacon_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t private_beacon
bool has_random_update
uint8_t random_update_interval_steps
struct rtk_bt_mesh_private_gatt_proxy_get_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private gatt proxy get act message structure.

rtk_bt_mesh_private_gatt_proxy_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_private_gatt_proxy_set_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private gatt proxy set act message structure.

rtk_bt_mesh_private_gatt_proxy_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t private_gatt_proxy
struct rtk_bt_mesh_private_node_identity_get_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private node identity get act message structure.

rtk_bt_mesh_private_node_identity_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t sub_net_key_index
struct rtk_bt_mesh_private_node_identity_set_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private node identity set act message structure.

rtk_bt_mesh_private_node_identity_set_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t sub_net_key_index
uint8_t private_identity
struct rtk_bt_mesh_private_beacon_status_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private beacon client model status message structure.

rtk_bt_mesh_private_beacon_status_t

Public Members

uint8_t private_beacon
uint8_t random_update_interval_steps
struct rtk_bt_mesh_private_gatt_proxy_status_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private beacon client model gatt proxy status message structure.

rtk_bt_mesh_private_gatt_proxy_status_t

Public Members

uint8_t private_gatt_proxy
struct rtk_bt_mesh_private_node_identity_status_t
#include <rtk_bt_mesh_private_beacon_model.h>

BLE MESH private beacon client model node identity status message structure.

rtk_bt_mesh_private_node_identity_status_t

Public Members

uint8_t status
uint16_t net_key_index
uint8_t private_identity

BT Mesh Remote Provisioning Model Types

enum rtk_bt_mesh_remote_prov_client_act_t

BLE MESH remote provisioning client model act definition.

rtk_bt_mesh_remote_prov_client_act_t

Values:

enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_SCAN_START
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_SCAN_CAPA_GET
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_DEVICE_KEY_REFRESH
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_NODE_ADDR_REFRESH
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_COMPO_DATA_REFRESH
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_ACT_MAX
enum rtk_bt_mesh_remote_prov_client_evt_t

BLE MESH remote provisioning client model evt definition.

rtk_bt_mesh_remote_prov_client_evt_t

Values:

enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_EVT_SCAN_CAPA_STATUS
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_EVT_SCAN_STATUS
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_EVT_SCAN_REPORT
enumerator RTK_BT_MESH_REMOTE_PROV_CLIENT_EVT_EXTENDED_SCAN_REPORT
enum rtk_bt_mesh_rmt_prov_status_t

BLE MESH remote provisioning status definition.

rtk_bt_mesh_rmt_prov_status_t

Values:

enumerator RTK_BT_MESH_RMT_PROV_SUCCESS
enumerator RTK_BT_MESH_RMT_PROV_SCANNING_CANNOT_START
enumerator RTK_BT_MESH_RMT_PROV_INVALID_STATE
enumerator RTK_BT_MESH_RMT_PROV_LIMITED_RESOURCES
enum rtk_bt_mesh_rmt_prov_scan_state_t

BLE MESH remote provisioning scan status definition.

rtk_bt_mesh_rmt_prov_scan_state_t

Values:

enumerator RTK_BT_MESH_RMT_PROV_SCAN_STATE_IDLE
enumerator RTK_BT_MESH_RMT_PROV_SCAN_STATE_MULTIPLE_DEVICES
enumerator RTK_BT_MESH_RMT_PROV_SCAN_STATE_SINGLE_DEVICE

BLE MESH remote provisioning link status definition.

rtk_bt_mesh_rmt_prov_link_state_t

Values:

BLE MESH remote provisioning link close reason definition.

rtk_bt_mesh_rmt_prov_link_close_reason_t

Values:

enum [anonymous]

BLE MESH remote provisioning DKRI PROCEDURE definition.

rtk_bt_mesh_rmt_prov_dkri_procedure_t

Values:

enumerator RTK_BT_MESH_RMT_PROV_DKRI_DEV_KEY_REFRESH
enumerator RTK_BT_MESH_RMT_PROV_DKRI_NODE_ADDR_REFRESH
enumerator RTK_BT_MESH_RMT_PROV_DKRI_NODE_COMPO_REFRESH
typedef uint8_t rtk_bt_mesh_rmt_prov_dkri_procedure_t
struct rtk_bt_mesh_remote_prov_client_scan_capa_get_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning scan capability get data struct definition.

rtk_bt_mesh_remote_prov_client_scan_capa_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_rmt_prov_client_scan_capa_status_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning scan capability status data struct definition.

rtk_bt_mesh_rmt_prov_client_scan_capa_status_t

Public Members

uint16_t src
uint8_t max_scan_items
bool support_active_scan
struct rtk_bt_mesh_remote_prov_client_scan_start_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning scan start data struct definition.

rtk_bt_mesh_remote_prov_client_scan_start_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t scanned_items_limit
uint8_t scan_timeout
uint8_t uuid[16]
struct rtk_bt_mesh_rmt_prov_client_scan_status_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning scan status data struct definition.

rtk_bt_mesh_rmt_prov_client_scan_status_t

Public Members

uint16_t src
rtk_bt_mesh_rmt_prov_status_t prov_status
rtk_bt_mesh_rmt_prov_scan_state_t scan_status
uint8_t scanned_items_limit
uint8_t timeout
struct rtk_bt_mesh_rmt_prov_client_scan_report_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning scan report data struct definition.

rtk_bt_mesh_rmt_prov_client_scan_report_t

Public Members

uint16_t src
int8_t rssi
uint16_t oob
uint32_t uri_hash
uint8_t uuid[16]
struct rtk_bt_mesh_rmt_prov_client_extended_scan_report_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning extended scan report data struct definition.

rtk_bt_mesh_rmt_prov_client_scan_report_t

Public Members

uint16_t src
uint8_t uuid[16]
uint8_t oob
uint16_t adv_structs_len
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning link open data struct definition.

rtk_bt_mesh_remote_prov_client_link_open_t

Public Members

#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning link status data struct definition.

rtk_bt_mesh_rmt_prov_client_link_status_t

Public Members

#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning link report data struct definition.

rtk_bt_mesh_rmt_prov_client_link_report_t

#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning link open dkri data struct definition.

rtk_bt_mesh_remote_prov_client_link_open_dkri_t

Public Members

struct rtk_bt_mesh_remote_prov_client_node_addr_refresh_t
#include <rtk_bt_mesh_remote_prov_model.h>

BLE MESH remote provisioning link open dkri data struct definition.

rtk_bt_mesh_remote_prov_client_link_open_dkri_t

Public Members

uint16_t node_addr
uint8_t attn_dur

BT Mesh Scene Model Types

enum rtk_bt_mesh_scene_status_code_t

Values:

enumerator RTK_BT_MESH_SCENE_STATUS_SUCCESS
enumerator RTK_BT_MESH_SCENE_STATUS_REGISTER_FULL
enumerator RTK_BT_MESH_SCENE_STATUS_NOT_FOUND
enum rtk_bt_mesh_scene_client_model_act_t

BLE MESH scene client model act definition.

rtk_bt_mesh_scene_client_model_act_t

Values:

enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_STORE
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_RECALL
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_REGISTER_GET
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_DELETE
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_scene_client_model_evt_t

BLE MESH scene client model act definition.

rtk_bt_mesh_scene_client_model_act_t

Values:

enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_REGISTER_STATUS
enumerator RTK_BT_MESH_SCENE_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_scene_server_model_evt_t

BLE MESH scene server model evt definition.

rtk_bt_mesh_scene_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_GET
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_RECALL
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_GET_REGISTER_STATUS
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_GET_STATUS_RECALL
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_GET_SCENES
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_GET_SCENES_NUM
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_scene_server_model_act_t

BLE MESH scene server model act definition.

rtk_bt_mesh_scene_server_model_act_t

Values:

enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_SCENE_SERVER_MODEL_ACT_MAX
enum rtk_bt_mesh_scene_setup_server_model_evt_t

BLE MESH scene setup server model evt definition.

rtk_bt_mesh_scene_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_STORE
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_DELETE
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_GET
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_GET_STATUS_REGISTER
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_GET_SCENES
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_GET_SCENES_NUM
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_scene_setup_server_model_act_t

BLE MESH scene setup server model act definition.

rtk_bt_mesh_scene_setup_server_model_act_t

Values:

enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_SCENE_SETUP_SERVER_MODEL_ACT_MAX
struct rtk_bt_mesh_scene_store_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene store act message structure.

rtk_bt_mesh_scene_store_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t scene_number
bool ack
struct rtk_bt_mesh_scene_recall_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene recall act message structure.

rtk_bt_mesh_scene_recall_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t scene_number
uint8_t tid
bool optional
rtk_bt_mesh_generic_transition_time_t trans_time
uint8_t delay
bool ack
struct rtk_bt_mesh_scene_get_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene get act message structure.

rtk_bt_mesh_scene_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_scene_register_get_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene register get act message structure.

rtk_bt_mesh_scene_register_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_scene_delete_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene delete act message structure.

rtk_bt_mesh_scene_delete_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t scene_number
bool ack
struct rtk_bt_mesh_scene_client_status_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH time client model status message structure.

rtk_bt_mesh_time_client_status_t

Public Members

uint16_t src
rtk_bt_mesh_scene_status_code_t status
uint16_t current_scene
bool optional
uint16_t target_scene
rtk_bt_mesh_generic_transition_time_t remaining_time
struct rtk_bt_mesh_scene_client_register_status_t
#include <rtk_bt_mesh_scene_model.h>

Public Members

uint16_t src
rtk_bt_mesh_scene_status_code_t status
uint16_t current_scene
uint8_t scene_array_len
uint16_t *scene_array
struct rtk_bt_mesh_scene_storage_memory_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene server database structure.

rtk_bt_mesh_scene_storage_memory_t

Public Members

uint16_t scene_number
void *pmemory
struct rtk_bt_mesh_scene_server_db_set_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene server database set message structure.

rtk_bt_mesh_scene_server_db_set_t

Public Members

uint16_t num_scenes
void *pdata_db
struct rtk_bt_mesh_scene_server_get_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene get evt message structure.

rtk_bt_mesh_scene_server_get_t

Public Members

uint16_t *current_scene
struct rtk_bt_mesh_scene_server_get_register_status_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene get register status evt message structure.

rtk_bt_mesh_scene_server_get_register_status_t

Public Members

rtk_bt_mesh_scene_status_code_t *status
struct rtk_bt_mesh_scene_server_get_default_transition_time_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene get default transition time evt message structure.

rtk_bt_mesh_scene_server_get_default_transition_time_t

Public Members

rtk_bt_mesh_generic_transition_time_t trans_time
struct rtk_bt_mesh_scene_server_store_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene store evt message structure.

rtk_bt_mesh_scene_server_store_t

Public Members

rtk_bt_mesh_scene_status_code_t status
uint16_t scene_number
uint8_t *pmemory
struct rtk_bt_mesh_scene_server_recall_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene recall evt message structure.

rtk_bt_mesh_scene_server_recall_t

Public Members

uint16_t scene_number
rtk_bt_mesh_generic_transition_time_t total_time
rtk_bt_mesh_generic_transition_time_t remaining_time
uint8_t *pmemory
struct rtk_bt_mesh_scene_server_delete_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene delete evt message structure.

rtk_bt_mesh_scene_server_delete_t

Public Members

uint16_t scene_number
struct rtk_bt_mesh_scene_server_get_status_recall_t
#include <rtk_bt_mesh_scene_model.h>

Public Members

uint16_t scene_number
rtk_bt_mesh_scene_status_code_t *status_recall
struct rtk_bt_mesh_scene_server_get_scenes_t
#include <rtk_bt_mesh_scene_model.h>

Public Members

uint16_t num_scenes
uint16_t *scenes
struct rtk_bt_mesh_scene_server_get_scenes_num_t
#include <rtk_bt_mesh_scene_model.h>

Public Members

uint16_t *num_scenes
struct rtk_bt_mesh_scene_setup_server_get_register_status_t
#include <rtk_bt_mesh_scene_model.h>

BLE MESH scene get register status evt message structure.

rtk_bt_mesh_scene_setup_server_get_register_status_t

Public Members

uint16_t scene_number
rtk_bt_mesh_scene_status_code_t *status

BT Mesh Scheduler Model Types

enum rtk_bt_mesh_scheduler_client_model_act_t

BLE MESH scheduler client model act definition.

rtk_bt_mesh_scheduler_client_model_act_t

Values:

enumerator RTK_BT_MESH_SCHEDULER_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SCHEDULER_ACTION_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SCHEDULER_ACTION_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_SCHEDULER_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_scheduler_client_model_evt_t

BLE MESH scheduler client model event definition.

rtk_bt_mesh_scheduler_client_model_evt_t

Values:

enumerator RTK_BT_MESH_SCHEDULER_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SCHEDULER_ACTION_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SCHEDULER_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_scheduler_server_model_evt_t

BLE MESH scheduler server model event definition.

rtk_bt_mesh_scheduler_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SCHEDULER_SERVER_MODEL_GET
enumerator RTK_BT_MESH_SCHEDULER_ACTION_SERVER_MODEL_GET
enumerator RTK_BT_MESH_SCHEDULER_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_scheduler_setup_server_model_evt_t

BLE MESH light lightness setup server model event definition.

rtk_bt_mesh_light_lightness_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SCHEDULER_ACTION_SERVER_MODEL_SET
enumerator RTK_BT_MESH_SCHEDULER_SETUP_SERVER_MODEL_GET_ACTION
enumerator RTK_BT_MESH_SCHEDULER_SETUP_SERVER_MODEL_EVT_MAX
typedef rtk_bt_mesh_scheduler_register_t rtk_bt_mesh_scheduler_server_set_action_t

BLE MESH scheduler action set evt message structure.

rtk_bt_mesh_scheduler_server_set_action_t

struct _PACKED4_
#include <rtk_bt_mesh_scheduler_model.h>

Public Members

uint64_t index
uint64_t year
uint64_t month
uint64_t day
uint64_t hour
uint64_t minute
uint64_t second
uint64_t day_of_week
uint64_t action
uint64_t num_steps
uint64_t step_resolution
uint16_t scene_number
struct rtk_bt_mesh_scheduler_get_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler get act message structure.

rtk_bt_mesh_scheduler_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_scheduler_action_get_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler action get act message structure.

rtk_bt_mesh_scheduler_action_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t index
struct rtk_bt_mesh_scheduler_action_set_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler action set act message structure.

rtk_bt_mesh_scheduler_action_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_scheduler_register_t scheduler
bool ack
struct rtk_bt_mesh_scheduler_client_status_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler client model status message structure.

rtk_bt_mesh_scheduler_client_status_t

Public Members

uint16_t src
uint16_t schedulers
struct rtk_bt_mesh_scheduler_client_status_action_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler client model action status message structure.

rtk_bt_mesh_scheduler_client_status_action_t

Public Members

uint16_t src
rtk_bt_mesh_scheduler_register_t scheduler
struct rtk_bt_mesh_scheduler_server_get_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler get evt message structure.

rtk_bt_mesh_scheduler_server_get_t

Public Members

uint16_t *schedulers
struct rtk_bt_mesh_scheduler_server_get_action_t
#include <rtk_bt_mesh_scheduler_model.h>

BLE MESH scheduler action set evt message structure.

rtk_bt_mesh_scheduler_server_get_action_t

Public Members

uint8_t index
rtk_bt_mesh_scheduler_register_t *scheduler

BT Mesh Sensor Model Types

enum rtk_bt_mesh_sensor_setting_access_t

Values:

enumerator RTK_BT_MESH_SENSOR_SETTING_ACCESS_READ_ONLY
enumerator RTK_BT_MESH_SENSOR_SETTING_ACCESS_READ_WRITE
enum rtk_bt_mesh_sensor_sampling_function_t

Values:

enumerator RTK_BT_MESH_SENSOR_SAMPLING_UNSPECIFIED
enumerator RTK_BT_MESH_SENSOR_SAMPLING_INSTANTANEOUS
enumerator RTK_BT_MESH_SENSOR_SAMPLING_ARITHMETIC_MEAN
enumerator RTK_BT_MESH_SENSOR_SAMPLING_RMS
enumerator RTK_BT_MESH_SENSOR_SAMPLING_MAXIMUM
enumerator RTK_BT_MESH_SENSOR_SAMPLING_MINIMUM
enumerator RTK_BT_MESH_SENSOR_SAMPLING_ACCUMULATED
enumerator RTK_BT_MESH_SENSOR_SAMPLING_COUNT
enum rtk_bt_mesh_sensor_client_model_act_t

BLE MESH sensor client model act definition.

rtk_bt_mesh_sensor_client_model_act_t

Values:

enumerator RTK_BT_MESH_SENSOR_DESCRIPTOR_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_CADENCE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_CADENCE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_SENSOR_SETTINGS_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_SETTING_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_SETTING_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_SENSOR_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_COLUMN_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_SERIES_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_sensor_client_model_evt_t

BLE MESH sensor client model event definition.

rtk_bt_mesh_sensor_client_model_evt_t

Values:

enumerator RTK_BT_MESH_SENSOR_DESCRIPTOR_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_CADENCE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_SETTINGS_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_SETTING_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_COLUMN_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_SERIES_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SENSOR_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_sensor_server_model_evt_t

BLE MESH sensor server model event definition.

rtk_bt_mesh_sensor_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_COLUMN_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_SERIES_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_COMPARE_CADENCE
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_DESCRIPTOR_NUM_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_DESCRIPTOR_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_sensor_server_model_act_t

BLE MESH sensor server model act definition.

rtk_bt_mesh_sensor_server_model_act_t

Values:

enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_ACT_MAX
enum rtk_bt_mesh_sensor_setup_server_model_evt_t

BLE MESH sensor setup server model event definition.

rtk_bt_mesh_sensor_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_CADENCE_SET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_SETTING_SET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_CADENCE_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_SETTINGS_GET
enumerator RTK_BT_MESH_SENSOR_SERVER_MODEL_SETTING_GET
enumerator RTK_BT_MESH_SENSOR_SETUP_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_sensor_setup_server_model_act_t

BLE MESH sensor setup server model act definition.

rtk_bt_mesh_sensor_setup_server_model_act_t

Values:

enumerator RTK_BT_MESH_SENSOR_SETUP_SERVER_MODEL_ACT_DB_SET
enumerator RTK_BT_MESH_SENSOR_SETUP_SERVER_MODEL_ACT_MAX
struct rtk_bt_mesh_sensor_cadence_t
#include <rtk_bt_mesh_sensor_model.h>

Public Members

uint8_t raw_value_len
uint8_t fast_cadence_period_divisor
uint8_t status_trigger_type

sensor_trigger_type_t

void *status_trigger_delta_down
void *status_trigger_delta_up
uint8_t status_min_interval
void *fast_cadence_low
void *fast_cadence_high
struct rtk_bt_mesh_sensor_setting_t
#include <rtk_bt_mesh_sensor_model.h>

Public Members

uint16_t setting_property_id
rtk_bt_mesh_sensor_setting_access_t setting_access
uint8_t setting_raw_len
void *setting_raw
struct rtk_bt_mesh_sensor_descriptor_t
#include <rtk_bt_mesh_sensor_model.h>

Public Members

uint16_t property_id
uint32_t positive_tolerance
uint32_t negative_tolerance
uint32_t sampling_function

sensor_sampling_function_t

uint8_t measurement_period
uint8_t update_interval
struct rtk_bt_mesh_sensor_descriptor_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor descriptor get act message structure.

rtk_bt_mesh_sensor_descriptor_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_sensor_cadence_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor cadence get act message structure.

rtk_bt_mesh_sensor_cadence_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_sensor_cadence_set_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor cadence set act message structure.

rtk_bt_mesh_sensor_cadence_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
bool ack
uint8_t fast_cadence_period_divisor
uint8_t status_trigger_type
uint8_t raw_value_len
uint8_t trigger_down[SENSOR_TRIGGER_DATA_MAX_LEN]
uint8_t trigger_up[SENSOR_TRIGGER_DATA_MAX_LEN]
uint8_t status_min_interval
uint8_t cadence_low[SENSOR_CADENCE_DATA_MAX_LEN]
uint8_t cadence_high[SENSOR_CADENCE_DATA_MAX_LEN]
struct rtk_bt_mesh_sensor_settings_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor settings get act message structure.

rtk_bt_mesh_sensor_settings_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_sensor_setting_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor setting get act message structure.

rtk_bt_mesh_sensor_setting_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint16_t setting_property_id
struct rtk_bt_mesh_sensor_setting_set_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor setting get act message structure.

rtk_bt_mesh_sensor_setting_set_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint16_t setting_property_id
bool ack
uint8_t setting_raw_len
uint8_t setting_raw[SENSOR_SETTING_DATA_MAX_LEN]
struct rtk_bt_mesh_sensor_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor get act message structure.

rtk_bt_mesh_sensor_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
struct rtk_bt_mesh_sensor_column_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor get column act message structure.

rtk_bt_mesh_sensor_column_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t raw_value_x_len
uint8_t raw_value_x[SENSOR_COLUMN_DATA_MAX_LEN]
struct rtk_bt_mesh_sensor_series_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor get series act message structure.

rtk_bt_mesh_sensor_series_get_t

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t property_id
uint8_t raw_value_x_len
uint8_t raw_value_x1[SENSOR_COLUMN_DATA_MAX_LEN]
uint8_t raw_value_x2[SENSOR_COLUMN_DATA_MAX_LEN]
struct rtk_bt_mesh_sensor_client_status_descriptor_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model descriptor status message structure.

rtk_bt_mesh_sensor_client_status_descriptor_t

Public Members

uint16_t src
uint16_t property_id
uint16_t num_descriptors
rtk_bt_mesh_sensor_descriptor_t *descriptors
struct rtk_bt_mesh_sensor_client_status_cadence_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model cadence status message structure.

rtk_bt_mesh_sensor_client_status_cadence_t

Public Members

uint16_t src
uint16_t property_id
bool flag
rtk_bt_mesh_sensor_cadence_t *cadence
struct rtk_bt_mesh_sensor_client_status_settings_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model settings status message structure.

rtk_bt_mesh_sensor_client_status_settings_t

Public Members

uint16_t src
uint16_t property_id
uint16_t num_ids
uint16_t *setting_ids
struct rtk_bt_mesh_sensor_client_status_setting_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model setting status message structure.

rtk_bt_mesh_sensor_client_status_setting_t

Public Members

uint16_t src
uint16_t property_id
uint16_t setting_property_id
bool flag
rtk_bt_mesh_sensor_setting_t *setting
struct rtk_bt_mesh_sensor_client_status_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model status message structure.

rtk_bt_mesh_sensor_client_status_t

Public Members

uint16_t src
uint16_t marshalled_sensor_data_len
void *marshalled_sensor_data
struct rtk_bt_mesh_sensor_client_status_column_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model status message structure.

rtk_bt_mesh_sensor_client_status_t

Public Members

uint16_t src
uint16_t property_id
uint16_t column_raw_value_len
void *column_raw_value
struct rtk_bt_mesh_sensor_client_status_series_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor client model series status message structure.

rtk_bt_mesh_sensor_client_status_series_t

Public Members

uint16_t src
uint16_t property_id
uint16_t series_raw_value_len
void *series_raw_value
struct rtk_bt_mesh_sensor_db_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server database structure.

rtk_bt_mesh_sensor_db_t

Public Members

rtk_bt_mesh_sensor_descriptor_t descriptor
uint8_t sensor_raw_data_len
uint16_t num_settings
rtk_bt_mesh_sensor_setting_t *settings
rtk_bt_mesh_sensor_cadence_t *cadence
int32_t pub_count
struct rtk_bt_mesh_sensor_server_db_set_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server database set message structure.

rtk_bt_mesh_sensor_server_db_set_t

Public Members

uint16_t num_sensors
void *pdata_db
struct rtk_bt_mesh_sensor_server_get_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get message structure.

rtk_bt_mesh_sensor_server_get_t

Public Members

uint16_t property_id
void *raw_data
struct rtk_bt_mesh_sensor_server_get_column_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get column message structure.

rtk_bt_mesh_sensor_server_get_column_t

Public Members

uint16_t property_id
uint8_t raw_value_x_len
const void *raw_value_x
uint16_t column_len
void *column
struct rtk_bt_mesh_sensor_server_direct_get_column_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get column for direct calling message structure.

rtk_bt_mesh_sensor_server_direct_get_column_t

Public Members

uint16_t property_id
uint8_t raw_value_x_len
uint8_t raw_value_x[SENSOR_COLUMN_DATA_MAX_LEN]
void *value
struct rtk_bt_mesh_sensor_server_get_series_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get series message structure.

rtk_bt_mesh_sensor_server_get_series_t

Public Members

uint16_t property_id
uint8_t raw_value_x_len
const void *raw_value_x1
const void *raw_value_x2
uint16_t series_len
void *series
struct rtk_bt_mesh_sensor_server_direct_get_series_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get series for direct calling message structure.

rtk_bt_mesh_sensor_server_direct_get_series_t

Public Members

uint16_t property_id
uint8_t raw_value_x_len
uint8_t raw_value_x1[SENSOR_GET_SERIES_MAX_LEN]
uint8_t raw_value_x2[SENSOR_GET_SERIES_MAX_LEN]
void *value
struct rtk_bt_mesh_sensor_server_get_cadence_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get cadence message structure.

rtk_bt_mesh_sensor_server_get_cadence_t

Public Members

uint16_t property_id
uint8_t *cadence
struct rtk_bt_mesh_sensor_server_set_cadence_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model set cadence message structure.

rtk_bt_mesh_sensor_server_set_cadence_t

Public Members

uint16_t property_id
rtk_bt_mesh_sensor_cadence_t *cadence
struct rtk_bt_mesh_sensor_server_set_setting_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model set setting message structure.

rtk_bt_mesh_sensor_server_set_setting_t

Public Members

uint16_t property_id
rtk_bt_mesh_sensor_setting_t *setting
struct rtk_bt_mesh_sensor_server_get_settings_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get settings message structure.

rtk_bt_mesh_sensor_server_get_settings_t

Public Members

uint16_t property_id
uint16_t *settings_data
struct rtk_bt_mesh_sensor_server_get_setting_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get setting message structure.

rtk_bt_mesh_sensor_server_get_setting_t

Public Members

uint16_t property_id
uint16_t setting_property_id
uint8_t *setting_data
struct rtk_bt_mesh_sensor_server_compare_cadence_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model compare cadence message structure.

rtk_bt_mesh_sensor_server_compare_cadence_t

Public Members

uint16_t property_id
bool *need_fast_divisor
struct rtk_bt_mesh_sensor_server_get_descriptor_num_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get descriptor number message structure.

rtk_bt_mesh_sensor_server_get_descriptor_num_t

Public Members

uint16_t property_id
uint16_t *descriptor_num
struct rtk_bt_mesh_sensor_server_get_descriptor_t
#include <rtk_bt_mesh_sensor_model.h>

BLE MESH sensor server model get descriptor message structure.

rtk_bt_mesh_sensor_server_get_descriptor_t

Public Members

uint16_t property_id
uint16_t descriptor_num
rtk_bt_mesh_sensor_descriptor_t *descriptor

BT Mesh Subnet Bridge Model Types

enum rtk_bt_mesh_subnet_bridge_client_model_act_t

BLE MESH subnet bridge client model act definition.

rtk_bt_mesh_subnet_bridge_client_model_act_t

Values:

enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_ADD
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_REMOVE
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGED_SUBNETS_GET
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_GET
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_BRIDGING_TABLE_SIZE_GET
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_ACT_MAX
enum [anonymous]

Values:

enumerator RTK_BT_MESH_SUBNET_BRIDGE_STATE_DISABLE
enumerator RTK_BT_MESH_SUBNET_BRIDGE_STATE_ENABLE
enum [anonymous]

Values:

enumerator RTK_BT_MESH_SUBNETS_FILTER_ALL_PAIRS
enumerator RTK_BT_MESH_SUBNETS_FILTER_NET_KEY_INDEX1
enumerator RTK_BT_MESH_SUBNETS_FILTER_NET_KEY_INDEX2
enumerator RTK_BT_MESH_SUBNETS_FILTER_NET_KEY_INDEX_EITHER
enum rtk_bt_mesh_subnet_bridge_client_model_evt_t

BLE MESH subnet bridge client model evt definition.

rtk_bt_mesh_subnet_bridge_client_model_evt_t

Values:

enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SUBNET_BRIDGE_BRIDGING_TABLE_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_SUBNET_BRIDGE_BRIDGED_SUBNETS_CLIENT_MODEL_LIST
enumerator RTK_BT_MESH_SUBNET_BRIDGE_BRIDGING_TABLE_CLIENT_MODEL_LIST
enumerator RTK_BT_MESH_SUBNET_BRIDGE_BRIDGING_TABLE_CLIENT_MODEL_SIZE
enumerator RTK_BT_MESH_SUBNET_BRIDGE_CLIENT_MODEL_EVT_MAX
typedef uint8_t rtk_bt_mesh_subnet_bridge_state_t
typedef uint8_t rtk_bt_mesh_subnets_filter_t
struct rtk_bt_mesh_subnet_bridge_get_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge get act message structure.

rtk_bt_mesh_sensor_descriptor_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_subnet_bridge_set_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge set act message structure.

rtk_bt_mesh_sensor_descriptor_set_t

Public Members

uint16_t dst
uint16_t net_key_index
rtk_bt_mesh_subnet_bridge_state_t state
struct rtk_bt_mesh_bridging_table_add_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge table add act message structure.

rtk_bt_mesh_bridging_table_add_t

Public Members

uint16_t dst
uint16_t net_key_index
uint8_t directions
uint16_t net_key_index1
uint16_t net_key_index2
uint16_t addr1
uint16_t addr2
struct rtk_bt_mesh_bridging_table_remove_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge table remove act message structure.

rtk_bt_mesh_bridging_table_remove_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index1
uint16_t net_key_index2
uint16_t addr1
uint16_t addr2
struct rtk_bt_mesh_bridged_subnets_get_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH bridged subnets get act message structure.

rtk_bt_mesh_bridged_subnets_get_t

Public Members

uint16_t dst
uint16_t net_key_index
rtk_bt_mesh_subnets_filter_t filter
uint16_t filter_net_key_index
uint8_t start_index
struct rtk_bt_mesh_bridging_table_get_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH bridging table get act message structure.

rtk_bt_mesh_bridging_table_get_t

Public Members

uint16_t dst
uint16_t net_key_index
uint16_t net_key_index1
uint16_t net_key_index2
uint16_t start_index
struct rtk_bt_mesh_bridging_table_size_get_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH bridging table size get act message structure.

rtk_bt_mesh_bridging_table_size_get_t

Public Members

uint16_t dst
uint16_t net_key_index
struct rtk_bt_mesh_subnet_bridge_status_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge client model status message structure.

rtk_bt_mesh_subnet_bridge_status_t

struct rtk_bt_mesh_bridging_table_status_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge client model bridging table status message structure.

rtk_bt_mesh_subnet_bridge_status_t

Public Members

uint8_t status
uint32_t directions
uint32_t net_key_index1
uint32_t net_key_index2
uint16_t addr1
uint16_t addr2
struct rtk_bt_mesh_bridged_subnets_list_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge client model bridged subnets list message structure.

rtk_bt_mesh_subnet_bridge_status_t

Public Members

uint16_t filter
uint16_t prohibited
uint16_t net_key_index
uint8_t start_index
uint8_t bridged_subnets_list[0]
struct rtk_bt_mesh_bridged_address_entry_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

Public Members

uint16_t addr1
uint16_t addr2
uint8_t directions
struct rtk_bt_mesh_bridging_table_list_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge client model bridging table list message structure.

rtk_bt_mesh_subnet_bridge_status_t

Public Members

uint32_t status
uint32_t net_key_index1
uint32_t net_key_index2
uint16_t start_index
uint8_t bridged_addrs_list[0]
struct rtk_bt_mesh_bridging_table_size_status_t
#include <rtk_bt_mesh_subnet_bridge_model.h>

BLE MESH subnet bridge client model bridging table size status message structure.

rtk_bt_mesh_subnet_bridge_status_t

Public Members

uint16_t bridging_table_size

BT Mesh Time Model Types

enum rtk_bt_mesh_time_role_t

Values:

enumerator RTK_BT_MESH_TIME_ROLE_NONE
enumerator RTK_BT_MESH_TIME_ROLE_AUTHORITY
enumerator RTK_BT_MESH_TIME_ROLE_RELAY
enumerator RTK_BT_MESH_TIME_ROLE_CLIENT
enum rtk_bt_mesh_time_client_model_act_t

BLE MESH time client model act definition.

rtk_bt_mesh_time_client_model_act_t

Values:

enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_GET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ZONE_GET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_TAI_UTC_DELTA_GET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ROLE_GET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_SET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ZONE_SET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_TAI_UTC_DELTA_SET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ROLE_SET
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ACT_MAX
enum rtk_bt_mesh_time_client_model_evt_t

BLE MESH time client model evt definition.

rtk_bt_mesh_time_client_model_evt_t

Values:

enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_STATUS
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ROLE_STATUS
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_ZONE_STATUS
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_TAI_UTC_DELTA_STATUS
enumerator RTK_BT_MESH_TIME_CLIENT_MODEL_EVT_MAX
enum rtk_bt_mesh_time_server_model_evt_t

BLE MESH time server model event definition.

rtk_bt_mesh_time_server_model_evt_t

Values:

enumerator RTK_BT_MESH_TIME_SERVER_MODEL_GET
enumerator RTK_BT_MESH_TIME_SERVER_MODEL_ZONE_GET
enumerator RTK_BT_MESH_TIME_SERVER_MODEL_TAI_UTC_DELTA_GET
enumerator RTK_BT_MESH_TIME_SERVER_MODEL_STATUS_SET
enumerator RTK_BT_MESH_TIME_SERVER_MODEL_ROLE_GET
enumerator RTK_BT_MESH_TIME_SERVER_MODEL_EVT_MAX
enum rtk_bt_mesh_time_setup_server_model_evt_t

BLE MESH time setup server model event definition.

rtk_bt_mesh_time_setup_server_model_evt_t

Values:

enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_SET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_ZONE_SET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_ROLE_GET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_ROLE_SET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_TAI_UTC_DELTA_SET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_ZONE_GET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_TAI_UTC_DELTA_GET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_GET
enumerator RTK_BT_MESH_TIME_SETUP_SERVER_MODEL_EVT_MAX
typedef rtk_bt_mesh_tai_time_t rtk_bt_mesh_time_server_get_t

BLE MESH time get evt message structure.

rtk_bt_mesh_time_server_get_t

typedef rtk_bt_mesh_time_zone_t rtk_bt_mesh_time_server_get_zone_t

BLE MESH time zone get evt message structure.

rtk_bt_mesh_time_server_get_zone_t

typedef rtk_bt_mesh_tai_utc_delta_t rtk_bt_mesh_time_server_get_tai_utc_delta_t

BLE MESH time tai utc delta get evt message structure.

rtk_bt_mesh_time_server_get_tai_utc_delta_t

typedef rtk_bt_mesh_tai_time_t rtk_bt_mesh_time_server_set_t

BLE MESH time set evt message structure.

rtk_bt_mesh_time_server_set_t

struct rtk_bt_mesh_tai_time_t
#include <rtk_bt_mesh_time_model.h>

Public Members

uint8_t tai_seconds[5]
uint8_t subsecond
uint8_t uncertainty
uint16_t time_authority
uint16_t tai_utc_delta
uint8_t time_zone_offset
struct rtk_bt_mesh_time_zone_t
#include <rtk_bt_mesh_time_model.h>

Public Members

uint8_t time_zone_offset_current
uint8_t time_zone_offset_new
uint8_t tai_of_zone_change[5]
struct rtk_bt_mesh_tai_utc_delta_t
#include <rtk_bt_mesh_time_model.h>

Public Members

uint16_t tai_utc_delta_current
uint16_t padding1
uint16_t tai_utc_delta_new
uint16_t padding2
uint8_t tai_of_delta_change[5]
struct rtk_bt_mesh_time_get_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time get act message structure.

rtk_bt_mesh_time_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_time_zone_get_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time zone get act message structure.

rtk_bt_mesh_time_zone_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_time_tai_utc_delta_get_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time tai utc delta get act message structure.

rtk_bt_mesh_time_tai_utc_delta_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_time_role_get_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time role get act message structure.

rtk_bt_mesh_time_role_get_t

Public Members

uint16_t dst
uint16_t app_key_index
struct rtk_bt_mesh_time_set_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time set act message structure.

rtk_bt_mesh_time_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_tai_time_t time
struct rtk_bt_mesh_time_zone_set_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time zone set act message structure.

rtk_bt_mesh_time_zone_set_t;

Public Members

uint16_t dst
uint16_t app_key_index
uint8_t time_zone_offset_new
uint8_t tai_of_zone_change[5]
struct rtk_bt_mesh_time_tai_utc_delta_set_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time tai utc delta set act message structure.

rtk_bt_mesh_time_tai_utc_delta_set_t;

Public Members

uint16_t dst
uint16_t app_key_index
uint16_t tai_utc_delta_new
uint8_t tai_of_delta_change[5]
struct rtk_bt_mesh_time_role_set_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time role set act message structure.

rtk_bt_mesh_time_role_set_t

Public Members

uint16_t dst
uint16_t app_key_index
rtk_bt_mesh_time_role_t role
struct rtk_bt_mesh_time_client_status_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time client model status message structure.

rtk_bt_mesh_time_client_status_t

Public Members

uint16_t src
rtk_bt_mesh_tai_time_t tai_time
struct rtk_bt_mesh_time_client_status_zone_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time client model zone status message structure.

rtk_bt_mesh_time_client_status_zone_t

Public Members

uint16_t src
uint8_t time_zone_offset_current
uint8_t time_zone_offset_new
uint8_t tai_of_zone_change[5]
struct rtk_bt_mesh_time_client_status_tai_utc_delta_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time client model tai utc delta status message structure.

rtk_bt_mesh_time_client_status_tai_utc_delta_t

Public Members

uint16_t src
uint16_t tai_utc_delta_current
uint16_t padding1
uint16_t tai_utc_delta_new
uint16_t padding2
uint8_t tai_of_delta_change[5]
struct rtk_bt_mesh_time_client_status_role_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time client model role status message structure.

rtk_bt_mesh_time_client_status_role_t

Public Members

rtk_bt_mesh_time_role_t role
struct rtk_bt_mesh_time_server_direct_get_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time direct get evt message structure.

rtk_bt_mesh_time_server_direct_get_t

Public Members

rtk_bt_mesh_time_server_get_t *value
struct rtk_bt_mesh_time_server_direct_get_zone_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time zone direct get evt message structure.

rtk_bt_mesh_time_server_direct_get_zone_t

struct rtk_bt_mesh_time_server_direct_get_tai_utc_delta_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time tai utc delta direct get evt message structure.

rtk_bt_mesh_time_server_direct_get_tai_utc_delta_t

struct rtk_bt_mesh_time_server_status_set_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time server status set evt message structure.

rtk_bt_mesh_time_server_status_set_t

Public Members

uint8_t tai_seconds[5]
uint8_t subsecond
uint8_t uncertainty
uint16_t tai_utc_delta
uint8_t time_zone_offset
struct rtk_bt_mesh_time_server_get_role_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time get role evt message structure.

rtk_bt_mesh_time_server_get_role_t

Public Members

rtk_bt_mesh_time_role_t *role
struct rtk_bt_mesh_time_server_set_role_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time set role evt message structure.

rtk_bt_mesh_time_server_set_role_t

Public Members

rtk_bt_mesh_time_role_t role
struct rtk_bt_mesh_time_server_set_zone_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time set zone evt message structure.

rtk_bt_mesh_time_server_set_zone_t

Public Members

uint8_t time_zone_offset_new
uint8_t tai_of_zone_change[5]
struct rtk_bt_mesh_time_server_set_tai_utc_delta_t
#include <rtk_bt_mesh_time_model.h>

BLE MESH time set tai utc delta evt message structure.

rtk_bt_mesh_time_server_set_tai_utc_delta_t

Public Members

uint16_t tai_utc_delta_new
uint16_t padding
uint8_t tai_of_delta_change[5]

BT PBAP Types

enum rtk_bt_pbap_repository

Values:

enumerator RTK_BT_PBAP_REPOSITORY_LOCAL
enumerator RTK_BT_PBAP_REPOSITORY_SIM1
enum rtk_bt_pbap_path

Values:

enumerator RTK_BT_PBAP_PATH_ROOT
enumerator RTK_BT_PBAP_PATH_TELECOM
enumerator RTK_BT_PBAP_PATH_PB
enumerator RTK_BT_PBAP_PATH_ICH
enumerator RTK_BT_PBAP_PATH_OCH
enumerator RTK_BT_PBAP_PATH_MCH
enumerator RTK_BT_PBAP_PATH_CCH
enum rtk_bt_pbap_phone_book

Values:

enumerator RTK_BT_PBAP_PHONE_BOOK_PB

Main phone book object

enumerator RTK_BT_PBAP_PHONE_BOOK_ICH

Incoming calls history object

enumerator RTK_BT_PBAP_PHONE_BOOK_OCH

Outgoing calls history object

enumerator RTK_BT_PBAP_PHONE_BOOK_MCH

Missed calls history object

enumerator RTK_BT_PBAP_PHONE_BOOK_CCH

Combined (incoming, outgoing, and missed) calls history object

enumerator RTK_BT_PBAP_PHONE_BOOK_SPD

Speed-Dial object

enumerator RTK_BT_PBAP_PHONE_BOOK_FAV

Favorite contacts object

struct rtk_bt_pbap_set_pb_t
#include <rtk_bt_pbap.h>

pbap set phone book struct.

Public Members

uint8_t bd_addr[6]

address

rtk_bt_pbap_repository repos

repository

rtk_bt_pbap_path path

path

struct rtk_bt_pbap_pb_pull_t
#include <rtk_bt_pbap.h>

pbap phone book pull struct.

Public Members

uint8_t bd_addr[6]

address

rtk_bt_pbap_repository repos

repository

rtk_bt_pbap_phone_book phone_book

The phone book object to be retrieved

uint16_t start_offset

The offset of the first entry to be retrieved compared to

uint16_t max_list_count

The maximum number of entries to be retrieved

uint64_t filter

The filter attribute mask of 64 bits, and 0 for disabling filter RTK_BT_PBAP_PROPERTY_MASK

struct rtk_bt_pbap_pb_size_get_t
#include <rtk_bt_pbap.h>

pbap phone book size get struct.

Public Members

uint8_t bd_addr[6]

address

rtk_bt_pbap_repository repos

repository

rtk_bt_pbap_phone_book phone_book

The phone book object to be retrieved

struct rtk_bt_pbap_pull_caller_id_name_t
#include <rtk_bt_pbap.h>

pbap pull caller id name struct.

Public Members

uint8_t bd_addr[6]

address

char number[20]

phone number

struct rtk_bt_pbap_conn_ind_t
#include <rtk_bt_pbap.h>

pbap connection indication.

Public Members

uint8_t bd_addr[6]

address

struct rtk_bt_pbap_conn_fail_ind_t
#include <rtk_bt_pbap.h>

pbap connection fail indication.

Public Members

uint8_t bd_addr[6]

address

uint16_t cause

cause

struct rtk_bt_pbap_disconn_cmpl_t
#include <rtk_bt_pbap.h>

pbap disconnection completion indication.

Public Members

uint8_t bd_addr[6]

address

uint16_t cause

cause

struct rtk_bt_pbap_set_pb_cmpl_t
#include <rtk_bt_pbap.h>

pbap set phone book completion indication.

Public Members

uint8_t bd_addr[6]

address

bool result

result

rtk_bt_pbap_path path

cause

struct rtk_bt_pbap_get_pb_cmpl_t
#include <rtk_bt_pbap.h>

pbap get phone book completion indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t *p_data

pointer of data

uint16_t data_len

data length

uint16_t pb_size

phone book size

uint8_t new_missed_calls

new missed calls

bool data_end

indicate data ends

struct rtk_bt_pbap_caller_id_name_t
#include <rtk_bt_pbap.h>

pbap caller id name indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t *name_ptr

pointer of name

uint16_t name_len

name length

struct rtk_bt_pbap_get_pb_size_cmpl
#include <rtk_bt_pbap.h>

pbap get phone book size completion indication.

Public Members

uint8_t bd_addr[6]

address

uint16_t pb_size

phone book size

uint8_t new_missed_calls

new missed calls

BT RFC Types

enum rtk_bt_rfc_uuid_type_t

rfc uuid type

Values:

enumerator RFC_UUID16

UUID type 16 bits

enumerator RFC_UUID32

UUID type 32 bits

enumerator RFC_UUID128

UUID type 128 bits

union rtk_bt_rfc_uuid_data_t
#include <rtk_bt_rfc.h>

rfc uuid data

Public Members

uint16_t uuid_16

UUID data in 16 bits

uint32_t uuid_32

UUID data in 32 bits

uint8_t uuid_128[16]

UUID data in 128 bits

struct rtk_bt_rfc_attr_info_t
#include <rtk_bt_rfc.h>

Bluetooth RFC SDP attribute information struct.

Public Members

uint8_t bd_addr[6]

Address

rtk_bt_rfc_uuid_type_t srv_class_uuid_type

Service class UUID type

rtk_bt_rfc_uuid_data_t srv_class_uuid_data

Service class UUID data

uint16_t profile_version

Remote profile version

uint16_t protocol_version

Remote protocol version

uint8_t server_channel

Server channel number

uint16_t supported_feat

Supported features

uint16_t l2c_psm

L2CAP PSM value

uint8_t supported_repos

Supported repositories

uint32_t pbap_supported_feat

PBAP supported features

struct rtk_bt_rfc_data_send_t
#include <rtk_bt_rfc.h>

Bluetooth RFC data send struct.

Public Members

uint8_t bd_addr[6]

address

uint8_t server_chann

channel number

uint8_t *p_data

pointer to the data.

uint16_t data_len

data length

struct rtk_bt_rfc_conn_ind_t
#include <rtk_bt_rfc.h>

rfc connection indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t local_server_chann

channel number

uint16_t frame_size

frame size

struct rtk_bt_rfc_conn_cmpl_t
#include <rtk_bt_rfc.h>

rfc connection completion indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t local_server_chann

channel number

uint16_t frame_size

frame size

uint8_t remain_credits

remain credits

struct rtk_bt_rfc_disconn_cmpl_t
#include <rtk_bt_rfc.h>

rfc disconnection completion indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t local_server_chann

channel number

uint16_t cause

disconnection cause

struct rtk_bt_rfc_data_ind_t
#include <rtk_bt_rfc.h>

rfc data indication.

Public Members

uint8_t bd_addr[6]

address

uint8_t local_server_chann

channel number

uint8_t remain_credits

remain credits

uint16_t length

data length

uint8_t *buf

pointer of the data

struct rtk_bt_rfc_credit_info_t
#include <rtk_bt_rfc.h>

rfc receive credits infomation.

Public Members

uint8_t local_server_chann

channel number

uint8_t remain_credits

remain credits

struct rtk_bt_rfc_credits_give_t
#include <rtk_bt_rfc.h>

rfc give credits struct.

Public Members

uint8_t bd_addr[6]

address

uint8_t local_server_chann

channel number

uint8_t credits

The number of credit

BT SDP Types

struct rtk_sdp_record_t
#include <rtk_bt_sdp.h>

Bluetooth sdp srecord struct.

Public Members

struct list_head list

list of .rtk_sdp_record_t.

uint8_t record[RTK_BT_SDK_MAX_RECORD_LENGTH]

record data

uint32_t length

indicate length of record data

struct rtk_sdp_did_attr_info
#include <rtk_bt_sdp.h>

sdp did discovery call back.

Public Members

uint8_t bd_addr[6]
uint16_t specific_id
uint16_t vendor_id
uint16_t vendor_src
uint16_t product_id
uint16_t version
struct rtk_sdp_discov_cmpl
#include <rtk_bt_sdp.h>

sdp discovery completion info.

Public Members

uint8_t bd_addr[6]
uint16_t cause

BT SPP Types

enum rtk_bt_spp_role_t

spp role

Values:

enumerator RTK_BT_SPP_ROLE_CLIENT

BT SPP client

enumerator RTK_BT_SPP_ROLE_SERVER

BT SPP server

enum rtk_bt_spp_uuid_type_t

spp uuid type

Values:

enumerator SPP_UUID16

UUID type 16 bits

enumerator SPP_UUID32

UUID type 32 bits

enumerator SPP_UUID128

UUID type 128 bits

union rtk_bt_spp_uuid_data_t
#include <rtk_bt_spp.h>

spp uuid data

Public Members

uint16_t uuid_16

UUID data in 16 bits

uint32_t uuid_32

UUID data in 32 bits

uint8_t uuid_128[16]

UUID data in 128 bits

struct T_SPP_CHANN_DB
#include <rtk_bt_spp.h>

SPP channel database.

Public Members

bool used

If true, it indicates that this element has been used

uint8_t spp_chann_num

SPP channel index

rtk_bt_spp_uuid_data_t service_uuid

Service UUID

bool is_spp_sdp_ok

Accept sdp disov info flag

bool is_on_connection

Is on spp connection or not flag

uint8_t local_server_chann

Local SPP server channel

uint8_t remote_server_chann

Remote SPP server channel

struct rtk_bt_spp_attr_info_t
#include <rtk_bt_spp.h>

Public Members

uint8_t bd_addr[6]

Address

rtk_bt_spp_uuid_type_t srv_class_uuid_type

Service class UUID type

rtk_bt_spp_uuid_data_t srv_class_uuid_data

Service class UUID data

uint16_t profile_version

Remote profile version

uint16_t protocol_version

Remote protocol version

uint8_t server_channel

Server channel number

uint16_t supported_feat

Supported features

uint16_t l2c_psm

L2CAP PSM value

uint8_t supported_repos

Supported repositories

uint32_t pbap_supported_feat

PBAP supported features

struct rtk_bt_spp_init_cfg_t
#include <rtk_bt_spp.h>

SPP service register configuration.

Public Members

SPP maximum channel numbers

uint8_t spp_rfc_max_service_num

SPP maximum service numbers

uint16_t default_mtu_size

link default mtu size

uint8_t default_credits

link default credits

struct rtk_bt_spp_srv_cfg_t
#include <rtk_bt_spp.h>

SPP service register configuration.

Public Members

uint8_t local_server_chann

Server channel number

uint32_t length

Service class UUID data length

uint8_t srv_class_uuid128[RTK_BT_SPP_MAX_SRV_CLASS_UUID_LENGTH]

Service class UUID data

struct rtk_bt_spp_sdp_discov_cmpl_t
#include <rtk_bt_spp.h>

SPP SDP discovery completely.

Public Members

uint8_t bd_addr[6]

Address

uint16_t cause

cause

struct rtk_bt_spp_conn_ind_t
#include <rtk_bt_spp.h>

SPP connection connect indication.

Public Members

uint8_t bd_addr[6]

Address

uint8_t local_server_chann

local server channel

uint16_t frame_size

SPP tx/rx mtu size

struct rtk_bt_spp_disconn_ind_t
#include <rtk_bt_spp.h>

SPP connection disconnect indication.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

uint16_t cause

cause

struct rtk_bt_spp_conn_cmpl_t
#include <rtk_bt_spp.h>

SPP connection connect completed.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

remained SPP tx link credit

uint16_t frame_size

SPP tx/rx mtu size

struct rtk_bt_spp_disconn_cmpl_t
#include <rtk_bt_spp.h>

SPP connection disconnect completed.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

uint16_t cause

cause

struct rtk_bt_spp_credit_rcvd_t
#include <rtk_bt_spp.h>

SPP link credits received.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

SPP link credit

struct rtk_bt_spp_data_ind_t
#include <rtk_bt_spp.h>

SPP data transfer indication.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

uint8_t data[RTK_BT_SPP_MAX_DATA_IND_LENGTH]

data buffer

uint16_t len

data buffer length

struct rtk_bt_spp_data_rsp_t
#include <rtk_bt_spp.h>

SPP data response with ack flag set.

Public Members

uint8_t bd_addr[6]

BT address

uint8_t local_server_chann

local server channel

struct rtk_bt_spp_send_data_t
#include <rtk_bt_spp.h>

Bluetooth SPP send data on specific server channel.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t local_server_chann

local server channel

uint8_t *data

data buffer

uint16_t len

data buffer length

struct rtk_bt_spp_disconn_req_t
#include <rtk_bt_spp.h>

Bluetooth SPP send disconnect request on specific server channel.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t local_server_chann

local server channel

struct rtk_bt_spp_credits_give_t
#include <rtk_bt_spp.h>

Bluetooth SPP give link credits to peer device.

Public Members

uint8_t bd_addr[6]

Remote BT address

uint8_t local_server_chann

local server channel

uint8_t credits

SPP tx credits that the local device gives to the remote device

struct rtk_bt_spp_sdp_attr_info_t
#include <rtk_bt_spp.h>

Bluetooth SPP SDP attribute information struct.

BT Vendor Types

enum rtk_bt_vendor_adv_tx_power_type_t

Set ADV TX power type.

Values:

enumerator ADV_TX_POW_SET_1M
enumerator ADV_TX_POW_SET_2M
enumerator ADV_TX_POW_SET_1M_DEFAULT
enumerator ADV_TX_POW_SET_2M_DEFAULT
enum rtk_bt_vendor_conn_tx_power_is_reset_t

Set connect TX power type.

Values:

enumerator CONN_TX_POW_USER_MODE
enumerator CONN_TX_POW_RESET_TO_ORIGINAL
enum rtk_bt_vendor_tx_power_subcmd_type_t

Set TX power subcmd type.

Values:

enumerator SUB_CMD_SET_ADV_TX_POWER
enumerator SUB_CMD_SET_CONN_TX_POWER
enum rtk_bt_vendor_free_run_clock_latch_subcmd_type_t

Free run clock latch subcmd type.

Values:

enumerator SUB_CMD_FREE_RUN_CLOCK_LATCH_ENABLE
enumerator SUB_CMD_FREE_RUN_CLOCK_LATCH
struct rtk_bt_vendor_tx_power_param_t
#include <rtk_bt_vendor.h>

Set ADV or connect TX power parameter.

Public Members

uint8_t tx_power_type

0: Set ADV TX power, 1: Set connect TX power

rtk_bt_vendor_adv_tx_power_type_t type

ADV TX power type

struct rtk_bt_vendor_tx_power_param_t::[anonymous]::adv_tx_power_param adv_tx_power
uint16_t conn_handle

Connect handle

rtk_bt_vendor_conn_tx_power_is_reset_t is_reset

0: User mode, 1: Reset to original

struct rtk_bt_vendor_tx_power_param_t::[anonymous]::conn_tx_power_param conn_tx_power
union rtk_bt_vendor_tx_power_param_t::[anonymous] [anonymous]
uint8_t tx_gain

Ref gain index

struct rtk_bt_vendor_free_run_clock_t
#include <rtk_bt_vendor.h>

Public Members

uint64_t host_free_run_clock[3]
uint64_t controller_free_run_clock[3]
int64_t hc_clock_offset[3]
void *sem
uint8_t index
bool enable