blatann.nrf.nrf_driver module
- blatann.nrf.nrf_driver.NordicSemiErrorCheck(wrapped=None, expected=0)
- class blatann.nrf.nrf_driver.NrfDriver(serial_port, baud_rate=None, log_driver_comms=False)
Bases:
object- default_baud_rate = 1000000
- ATT_MTU_DEFAULT = 23
- property serial_port
- open()
- property is_open
- close()
- event_subscribe(handler, *event_types)
- event_unsubscribe(handler, *event_types)
- event_unsubscribe_all(handler)
- observer_register(observer)
- observer_unregister(observer)
- ble_enable_params_setup()
- adv_params_setup()
- scan_params_setup()
- conn_params_setup()
- security_params_setup()
- ble_conn_configure(conn_params)
- ble_enable(ble_enable_params=None)
- ble_opt_set(ble_opt)
- ble_user_mem_reply(conn_handle)
- ble_vs_uuid_add(uuid_base)
- ble_gap_addr_get()
- ble_gap_addr_set(address)
- ble_gap_device_name_set(name)
- ble_gap_appearance_set(value)
- ble_gap_ppcp_set(conn_params)
- ble_gap_tx_power_set(tx_power)
- ble_gap_privacy_set(privacy)
- ble_gap_adv_start(adv_params=None, conn_cfg_tag=0)
- ble_gap_conn_param_update(conn_handle, conn_params)
- ble_gap_adv_stop()
- ble_gap_scan_start(scan_params=None)
- ble_gap_scan_stop()
- ble_gap_rssi_start(conn_handle, threshold_dbm, skip_count)
- ble_gap_rssi_stop(conn_handle)
- ble_gap_rssi_get(conn_handle)
- ble_gap_connect(address, scan_params=None, conn_params=None, conn_cfg_tag=0)
- ble_gap_disconnect(conn_handle, hci_status_code=BLEHci.remote_user_terminated_connection)
- ble_gap_adv_data_set(adv_data={}, scan_data={})
- ble_gap_data_length_update(conn_handle, params=None)
- ble_gap_phy_update(conn_handle, tx_phy=<BLEGapPhy.auto: 0>, rx_phy=<BLEGapPhy.auto: 0>)
- ble_gap_authenticate(conn_handle, sec_params)
- ble_gap_sec_params_reply(conn_handle, sec_status, sec_params, sec_keyset)
- ble_gap_auth_key_reply(conn_handle, key_type, key)
- ble_gap_sec_info_reply(conn_handle, enc_info=None, irk=None, sign_info=None)
- ble_gap_encrypt(conn_handle, master_id, enc_info)
- ble_gap_lesc_dhkey_reply(conn_handle, dh_key)
- ble_gatts_service_add(service_type, uuid, service_handle)
- ble_gatts_characteristic_add(service_handle, char_md, attr_char_value, char_handle)
- ble_gatts_descriptor_add(char_handle, attr)
- ble_gatts_rw_authorize_reply(conn_handle, authorize_reply_params)
- ble_gatts_value_get(conn_handle, attribute_handle, gatts_value, max_bytes_read=512)
- ble_gatts_value_set(conn_handle, attribute_handle, gatts_value)
- ble_gatts_hvx(conn_handle, hvx_params)
- ble_gatts_service_changed(conn_handle, start_handle, end_handle)
- ble_gatts_exchange_mtu_reply(conn_handle, server_mtu)
- ble_gatts_sys_attr_set(conn_handle, sys_attr_data, flags=0)
- ble_gattc_write(conn_handle, write_params)
- ble_gattc_prim_srvc_disc(conn_handle, srvc_uuid, start_handle)
- ble_gattc_char_disc(conn_handle, start_handle, end_handle)
- ble_gattc_desc_disc(conn_handle, start_handle, end_handle)
- ble_gattc_attr_info_disc(conn_handle, start_handle, end_handle)
- ble_gattc_read(conn_handle, read_handle, offset=0)
- ble_gattc_exchange_mtu_req(conn_handle, att_mtu_size)
- ble_gattc_hv_confirm(conn_handle, attr_handle)
- ble_evt_handler(adapter, ble_event)