Developer World
Spresense SDK Library v3.3.0-375c679
ble_hal_common_ops_s Struct Reference

Bluetooth LE common HAL callbacks. More...

#include <bt_if.h>

Public Attributes

int(* setDevAddr )(BT_ADDR *addr, uint8_t type)
 
int(* setDevName )(char *name)
 
int(* setAppearance )(BLE_APPEARANCE appearance)
 
int(* setPPCP )(BLE_CONN_PARAMS ppcp)
 
int(* advertise )(bool enable)
 
int(* startScan )(bool duplicate_filter)
 
int(* stopScan )(void)
 
int(* connect )(uint8_t addr_type, const BT_ADDR *addr)
 
int(* disconnect )(const uint16_t conn_handle)
 
int(* pairing )(uint16_t conn_handle)
 
uint16_t(* setMtuSize )(uint16_t sz)
 
uint16_t(* getMtuSize )(void)
 
int(* getNegotiatedMtuSize )(uint16_t handle)
 
int(* setTxPower )(int8_t tx_power)
 
int(* setScanParam )(struct ble_scan_param_s *param)
 
int(* setConnParam )(struct ble_conn_param_s *param)
 

Detailed Description

Bluetooth LE common HAL callbacks.

Member Data Documentation

◆ setDevAddr

int(* setDevAddr) (BT_ADDR *addr, uint8_t type)

Set BLE device address and type

◆ setDevName

int(* setDevName) (char *name)

Set BLE device name

◆ setAppearance

int(* setAppearance) (BLE_APPEARANCE appearance)

Set BLE appearance ID BLE_APPEARANCE

◆ setPPCP

int(* setPPCP) (BLE_CONN_PARAMS ppcp)

Set PPCP connection parameter

◆ advertise

int(* advertise) (bool enable)

Advertisement start/stop

◆ startScan

int(* startScan) (bool duplicate_filter)

Start scan

◆ stopScan

int(* stopScan) (void)

Stop scan

◆ connect

int(* connect) (uint8_t addr_type, const BT_ADDR *addr)

Create a connection

◆ disconnect

int(* disconnect) (const uint16_t conn_handle)

Destroy a connection

◆ pairing

int(* pairing) (uint16_t conn_handle)

Execute pairing

◆ setMtuSize

uint16_t(* setMtuSize) (uint16_t sz)

Set MTU size

◆ getMtuSize

uint16_t(* getMtuSize) (void)

Get MTU size

◆ getNegotiatedMtuSize

int(* getNegotiatedMtuSize) (uint16_t handle)

Get negotiated MTU size

◆ setTxPower

int(* setTxPower) (int8_t tx_power)

Set Tx Power

◆ setScanParam

int(* setScanParam) (struct ble_scan_param_s *param)

Set scan parameter

◆ setConnParam

int(* setConnParam) (struct ble_conn_param_s *param)

Set connection parameter


The documentation for this struct was generated from the following file: