linux

package
v0.0.0-...-31d001b Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: BSD-3-Clause Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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