File: hw.go

package info (click to toggle)
golang-github-muka-go-bluetooth 5.60-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,688 kB
  • sloc: makefile: 92; sh: 2
file content (35 lines) | stat: -rw-r--r-- 750 bytes parent folder | download
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
35
package hw

import (
	"github.com/muka/go-bluetooth/hw/linux"
	"github.com/muka/go-bluetooth/hw/linux/btmgmt"
	"github.com/muka/go-bluetooth/hw/linux/hciconfig"
)

func GetAdapter(adapterID string) (a linux.AdapterInfo, err error) {
	return linux.GetAdapter(adapterID)
}

func GetAdapters() ([]linux.AdapterInfo, error) {
	return linux.GetAdapters()
}

func Up(adapterID string) error {
	return linux.Up(adapterID)
}

func Down(adapterID string) error {
	return linux.Down(adapterID)
}

func Reset(adapterID string) error {
	return linux.Reset(adapterID)
}

func NewBtMgmt(adapterID string) *btmgmt.BtMgmt {
	return btmgmt.NewBtMgmt(adapterID)
}

func NewHCIConfig(adapterID string) *hciconfig.HCIConfig {
	return hciconfig.NewHCIConfig(adapterID)
}