Developer World
Spresense SDK Library v3.2.0-ebc0364
ble_hal_common_ops_s Struct Reference

Bluetooth LE common HAL callbacks. More...

#include <bt_if.h>

Public Attributes

int(* setDevAddr )(BT_ADDR *addr)
 
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)
 

Detailed Description

Bluetooth LE common HAL callbacks.

Member Data Documentation

◆ setDevAddr

int(* setDevAddr) (BT_ADDR *addr)

Set BLE device address

◆ 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


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