linux

package
v0.0.0-...-913cb6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HCI

type HCI struct {
	AcceptMasterHandler  func(pd *PlatData)
	AcceptSlaveHandler   func(pd *PlatData)
	AdvertisementHandler func(pd *PlatData)
	// contains filtered or unexported fields
}

func NewHCI

func NewHCI(devID int, chk bool, maxConn int) (*HCI, error)

func (*HCI) CancelConnection

func (h *HCI) CancelConnection(pd *PlatData) error

func (*HCI) Close

func (h *HCI) Close() error

func (*HCI) Connect

func (h *HCI) Connect(pd *PlatData) error

func (*HCI) SendCmdWithAdvOff

func (h *HCI) SendCmdWithAdvOff(c cmd.CmdParam) error

func (*HCI) SendRawCommand

func (h *HCI) SendRawCommand(c cmd.CmdParam) ([]byte, error)

func (*HCI) SetAdvertiseEnable

func (h *HCI) SetAdvertiseEnable(en bool) error

func (*HCI) SetScanEnable

func (h *HCI) SetScanEnable(en bool, dup bool) error

type PlatData

type PlatData struct {
	Name        string
	AddressType uint8
	Address     [6]byte
	Data        []byte
	Connectable bool
	RSSI        int8

	Conn io.ReadWriteCloser
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL