Back to

Package linux

v0.0.0 (569d3d9)
Latest Go to latest
Published: Oct 18, 2019 | License: BSD-3-Clause | Module:


Package Files

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier