Documentation
¶
Index ¶
- Constants
- func NewFactory() hci.ConnectionFactory
- type Conn
- func (c *Conn) BufferPool() hci.BufferPool
- func (c *Conn) CancelContext()
- func (c *Conn) Close() error
- func (c *Conn) CloseInputChannel()
- func (c *Conn) Context() context.Context
- func (c *Conn) Disconnected() <-chan struct{}
- func (c *Conn) LECreditBasedConnectionRequest(s sigCmd)
- func (c *Conn) LEFlowControlCredit(s sigCmd)
- func (c *Conn) LocalAddr() ble.Addr
- func (c *Conn) Pair(authData ble.AuthData, to time.Duration) error
- func (c *Conn) PutPacket(b []byte)
- func (c *Conn) Read(sdu []byte) (n int, err error)
- func (c *Conn) RemoteAddr() ble.Addr
- func (c *Conn) Role() uint8
- func (c *Conn) Run()
- func (c *Conn) RxMTU() int
- func (c *Conn) SetClosed()
- func (c *Conn) SetContext(ctx context.Context)
- func (c *Conn) SetRxMTU(mtu int)
- func (c *Conn) SetTxMTU(mtu int)
- func (c *Conn) Signal(req Signal, rsp Signal) error
- func (c *Conn) StartEncryption() error
- func (c *Conn) TxMTU() int
- func (c *Conn) Write(sdu []byte) (int, error)
- type Encrypter
- type Packet
- type Pdu
- type Signal
Constants ¶
View Source
const (
CidSMP uint16 = 0x06 // SecurityManager Protocol [Vol 3, Part H].
)
L2CAP Channel Identifier namespace for LE-U logical link [Vol 3, Part A, 2.1].
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() hci.ConnectionFactory
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn ...
func New ¶
func New(ctrl hci.Controller, param evt.LEConnectionComplete) *Conn
func (*Conn) BufferPool ¶
func (c *Conn) BufferPool() hci.BufferPool
func (*Conn) CancelContext ¶
func (c *Conn) CancelContext()
func (*Conn) Close ¶
Close disconnects the connection by sending hci disconnect command to the device.
func (*Conn) CloseInputChannel ¶
func (c *Conn) CloseInputChannel()
func (*Conn) Disconnected ¶
func (c *Conn) Disconnected() <-chan struct{}
Disconnected returns a receiving channel, which is closed when the connection disconnects.
func (*Conn) LECreditBasedConnectionRequest ¶
func (c *Conn) LECreditBasedConnectionRequest(s sigCmd)
LECreditBasedConnectionRequest ...
func (*Conn) LEFlowControlCredit ¶
func (c *Conn) LEFlowControlCredit(s sigCmd)
LEFlowControlCredit ...
func (*Conn) RemoteAddr ¶
RemoteAddr returns remote device's MAC address.
func (*Conn) SetContext ¶
SetContext sets the context that is used by this Conn.
func (*Conn) StartEncryption ¶
Click to show internal directories.
Click to hide internal directories.