-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathadapter_s113v7.go
More file actions
34 lines (28 loc) · 959 Bytes
/
adapter_s113v7.go
File metadata and controls
34 lines (28 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//go:build softdevice && s113v7
package bluetooth
/*
// Add the correct SoftDevice include path to CFLAGS, so #include will work as
// expected.
#cgo CFLAGS: -Is113_nrf52_7.0.1/s113_nrf52_7.0.1_API/include
#include "nrf_nvic.h"
nrf_nvic_state_t nrf_nvic_state = {0};
*/
import "C"
// Connect starts a connection attempt to the given peripheral device address.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (a *Adapter) Connect(address Address, params ConnectionParams) (Device, error) {
return Device{}, errNotSupported
}
// Scan starts a BLE scan. It is stopped by a call to StopScan.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (a *Adapter) Scan(callback func(*Adapter, ScanResult)) (err error) {
return errNotSupported
}
// StopScan stops any in-progress scan.
//
// s113v7 is a peripheral-only device, so this is not supported.
func (a *Adapter) StopScan() error {
return errNotSupported
}