cmd

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disconnect

type Disconnect struct {
	ConnectionHandle uint16
	Reason           uint8
}

Disconnect implements Disconnect (0x01|0x0006) [Vol 2, Part E, 7.1.6]

func (*Disconnect) Len

func (c *Disconnect) Len() int

Len returns the length of the command.

func (*Disconnect) Marshal

func (c *Disconnect) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*Disconnect) OpCode

func (c *Disconnect) OpCode() int

OpCode returns the opcode of the command.

func (*Disconnect) String

func (c *Disconnect) String() string

type HostBufferSize

type HostBufferSize struct {
	HostACLDataPacketLength            uint16
	HostSynchronousDataPacketLength    uint8
	HostTotalNumACLDataPackets         uint16
	HostTotalNumSynchronousDataPackets uint16
}

HostBufferSize implements Host Buffer Size (0x03|0x0033) [Vol 2, Part E, 7.3.39]

func (*HostBufferSize) Len

func (c *HostBufferSize) Len() int

Len returns the length of the command.

func (*HostBufferSize) Marshal

func (c *HostBufferSize) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*HostBufferSize) OpCode

func (c *HostBufferSize) OpCode() int

OpCode returns the opcode of the command.

func (*HostBufferSize) String

func (c *HostBufferSize) String() string

type HostBufferSizeRP

type HostBufferSizeRP struct {
	Status uint8
}

HostBufferSizeRP returns the return parameter of Host Buffer Size

func (*HostBufferSizeRP) Unmarshal

func (c *HostBufferSizeRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type HostNumberOfCompletedPackets

type HostNumberOfCompletedPackets struct {
	NumberOfHandles           uint8
	ConnectionHandle          []uint16
	HostNumOfCompletedPackets []uint16
}

HostNumberOfCompletedPackets implements Host Number Of Completed Packets (0x03|0x0035) [Vol 2, Part E, 7.3.40]

func (*HostNumberOfCompletedPackets) Len

Len returns the length of the command.

func (*HostNumberOfCompletedPackets) OpCode

func (c *HostNumberOfCompletedPackets) OpCode() int

OpCode returns the opcode of the command.

func (*HostNumberOfCompletedPackets) String

type LEAddDeviceToWhiteList

type LEAddDeviceToWhiteList struct {
	AddressType uint8
	Address     [6]byte
}

LEAddDeviceToWhiteList implements LE Add Device To White List (0x08|0x0011) [Vol 2, Part E, 7.8.16]

func (*LEAddDeviceToWhiteList) Len

func (c *LEAddDeviceToWhiteList) Len() int

Len returns the length of the command.

func (*LEAddDeviceToWhiteList) Marshal

func (c *LEAddDeviceToWhiteList) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEAddDeviceToWhiteList) OpCode

func (c *LEAddDeviceToWhiteList) OpCode() int

OpCode returns the opcode of the command.

func (*LEAddDeviceToWhiteList) String

func (c *LEAddDeviceToWhiteList) String() string

type LEAddDeviceToWhiteListRP

type LEAddDeviceToWhiteListRP struct {
	Status uint8
}

LEAddDeviceToWhiteListRP returns the return parameter of LE Add Device To White List

func (*LEAddDeviceToWhiteListRP) Unmarshal

func (c *LEAddDeviceToWhiteListRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEClearWhiteList

type LEClearWhiteList struct {
}

LEClearWhiteList implements LE Clear White List (0x08|0x0010) [Vol 2, Part E, 7.8.15]

func (*LEClearWhiteList) Len

func (c *LEClearWhiteList) Len() int

Len returns the length of the command.

func (*LEClearWhiteList) Marshal

func (c *LEClearWhiteList) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEClearWhiteList) OpCode

func (c *LEClearWhiteList) OpCode() int

OpCode returns the opcode of the command.

func (*LEClearWhiteList) String

func (c *LEClearWhiteList) String() string

type LEClearWhiteListRP

type LEClearWhiteListRP struct {
	Status uint8
}

LEClearWhiteListRP returns the return parameter of LE Clear White List

func (*LEClearWhiteListRP) Unmarshal

func (c *LEClearWhiteListRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEConnectionUpdate

type LEConnectionUpdate struct {
	ConnectionHandle   uint16
	ConnIntervalMin    uint16
	ConnIntervalMax    uint16
	ConnLatency        uint16
	SupervisionTimeout uint16
	MinimumCELength    uint16
	MaximumCELength    uint16
}

LEConnectionUpdate implements LE Connection Update (0x08|0x0013) [Vol 2, Part E, 7.8.18]

func (*LEConnectionUpdate) Len

func (c *LEConnectionUpdate) Len() int

Len returns the length of the command.

func (*LEConnectionUpdate) Marshal

func (c *LEConnectionUpdate) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEConnectionUpdate) OpCode

func (c *LEConnectionUpdate) OpCode() int

OpCode returns the opcode of the command.

func (*LEConnectionUpdate) String

func (c *LEConnectionUpdate) String() string

type LECreateConnection

type LECreateConnection struct {
	LEScanInterval        uint16
	LEScanWindow          uint16
	InitiatorFilterPolicy uint8
	PeerAddressType       uint8
	PeerAddress           [6]byte
	OwnAddressType        uint8
	ConnIntervalMin       uint16
	ConnIntervalMax       uint16
	ConnLatency           uint16
	SupervisionTimeout    uint16
	MinimumCELength       uint16
	MaximumCELength       uint16
}

LECreateConnection implements LE Create Connection (0x08|0x000D) [Vol 2, Part E, 7.8.12]

func (*LECreateConnection) Len

func (c *LECreateConnection) Len() int

Len returns the length of the command.

func (*LECreateConnection) Marshal

func (c *LECreateConnection) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LECreateConnection) OpCode

func (c *LECreateConnection) OpCode() int

OpCode returns the opcode of the command.

func (*LECreateConnection) String

func (c *LECreateConnection) String() string

type LECreateConnectionCancel

type LECreateConnectionCancel struct {
}

LECreateConnectionCancel implements LE Create Connection Cancel (0x08|0x000E) [Vol 2, Part E, 7.8.13]

func (*LECreateConnectionCancel) Len

func (c *LECreateConnectionCancel) Len() int

Len returns the length of the command.

func (*LECreateConnectionCancel) Marshal

func (c *LECreateConnectionCancel) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LECreateConnectionCancel) OpCode

func (c *LECreateConnectionCancel) OpCode() int

OpCode returns the opcode of the command.

func (*LECreateConnectionCancel) String

func (c *LECreateConnectionCancel) String() string

type LECreateConnectionCancelRP

type LECreateConnectionCancelRP struct {
	Status uint8
}

LECreateConnectionCancelRP returns the return parameter of LE Create Connection Cancel

func (*LECreateConnectionCancelRP) Unmarshal

func (c *LECreateConnectionCancelRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEEncrypt

type LEEncrypt struct {
	Key           [16]byte
	PlaintextData [16]byte
}

LEEncrypt implements LE Encrypt (0x08|0x0017) [Vol 2, Part E, 7.8.22]

func (*LEEncrypt) Len

func (c *LEEncrypt) Len() int

Len returns the length of the command.

func (*LEEncrypt) Marshal

func (c *LEEncrypt) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEEncrypt) OpCode

func (c *LEEncrypt) OpCode() int

OpCode returns the opcode of the command.

func (*LEEncrypt) String

func (c *LEEncrypt) String() string

type LEEncryptRP

type LEEncryptRP struct {
	Status        uint8
	EncryptedData [16]byte
}

LEEncryptRP returns the return parameter of LE Encrypt

func (*LEEncryptRP) Unmarshal

func (c *LEEncryptRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LELongTermKeyRequestNegativeReply

type LELongTermKeyRequestNegativeReply struct {
	ConnectionHandle uint16
}

LELongTermKeyRequestNegativeReply implements LE Long Term Key Request Negative Reply (0x08|0x001B) [Vol 2, Part E, 7.8.26]

func (*LELongTermKeyRequestNegativeReply) Len

Len returns the length of the command.

func (*LELongTermKeyRequestNegativeReply) Marshal

Marshal serializes the command parameters into binary form.

func (*LELongTermKeyRequestNegativeReply) OpCode

OpCode returns the opcode of the command.

func (*LELongTermKeyRequestNegativeReply) String

type LELongTermKeyRequestNegativeReplyRP

type LELongTermKeyRequestNegativeReplyRP struct {
	Status           uint8
	ConnectionHandle uint16
}

LELongTermKeyRequestNegativeReplyRP returns the return parameter of LE Long Term Key Request Negative Reply

func (*LELongTermKeyRequestNegativeReplyRP) Unmarshal

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LELongTermKeyRequestReply

type LELongTermKeyRequestReply struct {
	ConnectionHandle uint16
	LongTermKey      [16]byte
}

LELongTermKeyRequestReply implements LE Long Term Key Request Reply (0x08|0x001A) [Vol 2, Part E, 7.8.25]

func (*LELongTermKeyRequestReply) Len

func (c *LELongTermKeyRequestReply) Len() int

Len returns the length of the command.

func (*LELongTermKeyRequestReply) Marshal

func (c *LELongTermKeyRequestReply) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LELongTermKeyRequestReply) OpCode

func (c *LELongTermKeyRequestReply) OpCode() int

OpCode returns the opcode of the command.

func (*LELongTermKeyRequestReply) String

func (c *LELongTermKeyRequestReply) String() string

type LELongTermKeyRequestReplyRP

type LELongTermKeyRequestReplyRP struct {
	Status           uint8
	ConnectionHandle uint16
}

LELongTermKeyRequestReplyRP returns the return parameter of LE Long Term Key Request Reply

func (*LELongTermKeyRequestReplyRP) Unmarshal

func (c *LELongTermKeyRequestReplyRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LERand

type LERand struct {
}

LERand implements LE Rand (0x08|0x0018) [Vol 2, Part E, 7.8.23]

func (*LERand) Len

func (c *LERand) Len() int

Len returns the length of the command.

func (*LERand) Marshal

func (c *LERand) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LERand) OpCode

func (c *LERand) OpCode() int

OpCode returns the opcode of the command.

func (*LERand) String

func (c *LERand) String() string

type LERandRP

type LERandRP struct {
	Status       uint8
	RandomNumber uint64
}

LERandRP returns the return parameter of LE Rand

func (*LERandRP) Unmarshal

func (c *LERandRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadAdvertisingChannelTxPower

type LEReadAdvertisingChannelTxPower struct {
}

LEReadAdvertisingChannelTxPower implements LE Read Advertising Channel Tx Power (0x08|0x0007) [Vol 2, Part E, 7.8.6]

func (*LEReadAdvertisingChannelTxPower) Len

Len returns the length of the command.

func (*LEReadAdvertisingChannelTxPower) Marshal

func (c *LEReadAdvertisingChannelTxPower) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadAdvertisingChannelTxPower) OpCode

OpCode returns the opcode of the command.

func (*LEReadAdvertisingChannelTxPower) String

type LEReadAdvertisingChannelTxPowerRP

type LEReadAdvertisingChannelTxPowerRP struct {
	Status             uint8
	TransmitPowerLevel uint8
}

LEReadAdvertisingChannelTxPowerRP returns the return parameter of LE Read Advertising Channel Tx Power

func (*LEReadAdvertisingChannelTxPowerRP) Unmarshal

func (c *LEReadAdvertisingChannelTxPowerRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadBufferSize

type LEReadBufferSize struct {
}

LEReadBufferSize implements LE Read Buffer Size (0x08|0x0002) [Vol 2, Part E, 7.8.2]

func (*LEReadBufferSize) Len

func (c *LEReadBufferSize) Len() int

Len returns the length of the command.

func (*LEReadBufferSize) Marshal

func (c *LEReadBufferSize) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadBufferSize) OpCode

func (c *LEReadBufferSize) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadBufferSize) String

func (c *LEReadBufferSize) String() string

type LEReadBufferSizeRP

type LEReadBufferSizeRP struct {
	Status                  uint8
	HCLEDataPacketLength    uint16
	HCTotalNumLEDataPackets uint8
}

LEReadBufferSizeRP returns the return parameter of LE Read Buffer Size

func (*LEReadBufferSizeRP) Unmarshal

func (c *LEReadBufferSizeRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadChannelMap

type LEReadChannelMap struct {
	ConnectionHandle uint16
}

LEReadChannelMap implements LE Read Channel Map (0x08|0x0015) [Vol 2, Part E, 7.8.20]

func (*LEReadChannelMap) Len

func (c *LEReadChannelMap) Len() int

Len returns the length of the command.

func (*LEReadChannelMap) Marshal

func (c *LEReadChannelMap) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadChannelMap) OpCode

func (c *LEReadChannelMap) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadChannelMap) String

func (c *LEReadChannelMap) String() string

type LEReadChannelMapRP

type LEReadChannelMapRP struct {
	Status           uint8
	ConnectionHandle uint16
	ChannelMap       [5]byte
}

LEReadChannelMapRP returns the return parameter of LE Read Channel Map

func (*LEReadChannelMapRP) Unmarshal

func (c *LEReadChannelMapRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadLocalSupportedFeatures

type LEReadLocalSupportedFeatures struct {
}

LEReadLocalSupportedFeatures implements LE Read Local Supported Features (0x08|0x0003) [Vol 2, Part E, 7.8.3]

func (*LEReadLocalSupportedFeatures) Len

Len returns the length of the command.

func (*LEReadLocalSupportedFeatures) Marshal

func (c *LEReadLocalSupportedFeatures) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadLocalSupportedFeatures) OpCode

func (c *LEReadLocalSupportedFeatures) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadLocalSupportedFeatures) String

type LEReadLocalSupportedFeaturesRP

type LEReadLocalSupportedFeaturesRP struct {
	Status     uint8
	LEFeatures uint64
}

LEReadLocalSupportedFeaturesRP returns the return parameter of LE Read Local Supported Features

func (*LEReadLocalSupportedFeaturesRP) Unmarshal

func (c *LEReadLocalSupportedFeaturesRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadRemoteUsedFeatures

type LEReadRemoteUsedFeatures struct {
	ConnectionHandle uint16
}

LEReadRemoteUsedFeatures implements LE Read Remote Used Features (0x08|0x0016) [Vol 2, Part E, 7.8.21]

func (*LEReadRemoteUsedFeatures) Len

func (c *LEReadRemoteUsedFeatures) Len() int

Len returns the length of the command.

func (*LEReadRemoteUsedFeatures) Marshal

func (c *LEReadRemoteUsedFeatures) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadRemoteUsedFeatures) OpCode

func (c *LEReadRemoteUsedFeatures) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadRemoteUsedFeatures) String

func (c *LEReadRemoteUsedFeatures) String() string

type LEReadSupportedStates

type LEReadSupportedStates struct {
}

LEReadSupportedStates implements LE Read Supported States (0x08|0x001C) [Vol 2, Part E, 7.8.27]

func (*LEReadSupportedStates) Len

func (c *LEReadSupportedStates) Len() int

Len returns the length of the command.

func (*LEReadSupportedStates) Marshal

func (c *LEReadSupportedStates) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadSupportedStates) OpCode

func (c *LEReadSupportedStates) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadSupportedStates) String

func (c *LEReadSupportedStates) String() string

type LEReadSupportedStatesRP

type LEReadSupportedStatesRP struct {
	Status   uint8
	LEStates uint64
}

LEReadSupportedStatesRP returns the return parameter of LE Read Supported States

func (*LEReadSupportedStatesRP) Unmarshal

func (c *LEReadSupportedStatesRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReadWhiteListSize

type LEReadWhiteListSize struct {
}

LEReadWhiteListSize implements LE Read White List Size (0x08|0x000F) [Vol 2, Part E, 7.8.14]

func (*LEReadWhiteListSize) Len

func (c *LEReadWhiteListSize) Len() int

Len returns the length of the command.

func (*LEReadWhiteListSize) Marshal

func (c *LEReadWhiteListSize) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReadWhiteListSize) OpCode

func (c *LEReadWhiteListSize) OpCode() int

OpCode returns the opcode of the command.

func (*LEReadWhiteListSize) String

func (c *LEReadWhiteListSize) String() string

type LEReadWhiteListSizeRP

type LEReadWhiteListSizeRP struct {
	Status        uint8
	WhiteListSize uint8
}

LEReadWhiteListSizeRP returns the return parameter of LE Read White List Size

func (*LEReadWhiteListSizeRP) Unmarshal

func (c *LEReadWhiteListSizeRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEReceiverTest

type LEReceiverTest struct {
	RXChannel uint8
}

LEReceiverTest implements LE Receiver Test (0x08|0x001D) [Vol 2, Part E, 7.8.28]

func (*LEReceiverTest) Len

func (c *LEReceiverTest) Len() int

Len returns the length of the command.

func (*LEReceiverTest) Marshal

func (c *LEReceiverTest) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEReceiverTest) OpCode

func (c *LEReceiverTest) OpCode() int

OpCode returns the opcode of the command.

func (*LEReceiverTest) String

func (c *LEReceiverTest) String() string

type LEReceiverTestRP

type LEReceiverTestRP struct {
	Status uint8
}

LEReceiverTestRP returns the return parameter of LE Receiver Test

func (*LEReceiverTestRP) Unmarshal

func (c *LEReceiverTestRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LERemoteConnectionParameterRequestNegativeReply

type LERemoteConnectionParameterRequestNegativeReply struct {
	ConnectionHandle uint16
	Reason           uint8
}

LERemoteConnectionParameterRequestNegativeReply implements LE Remote Connection Parameter Request Negative Reply (0x08|0x0021) [Vol 2, Part E, 7.8.32]

func (*LERemoteConnectionParameterRequestNegativeReply) Len

Len returns the length of the command.

func (*LERemoteConnectionParameterRequestNegativeReply) Marshal

Marshal serializes the command parameters into binary form.

func (*LERemoteConnectionParameterRequestNegativeReply) OpCode

OpCode returns the opcode of the command.

func (*LERemoteConnectionParameterRequestNegativeReply) String

type LERemoteConnectionParameterRequestNegativeReplyRP

type LERemoteConnectionParameterRequestNegativeReplyRP struct {
	Status           uint8
	ConnectionHandle uint16
}

LERemoteConnectionParameterRequestNegativeReplyRP returns the return parameter of LE Remote Connection Parameter Request Negative Reply

func (*LERemoteConnectionParameterRequestNegativeReplyRP) Unmarshal

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LERemoteConnectionParameterRequestReply

type LERemoteConnectionParameterRequestReply struct {
	ConnectionHandle uint16
	IntervalMin      uint16
	IntervalMax      uint16
	Latency          uint16
	Timeout          uint16
	MinimumCELength  uint16
	MaximumCELength  uint16
}

LERemoteConnectionParameterRequestReply implements LE Remote Connection Parameter Request Reply (0x08|0x0020) [Vol 2, Part E, 7.8.31]

func (*LERemoteConnectionParameterRequestReply) Len

Len returns the length of the command.

func (*LERemoteConnectionParameterRequestReply) Marshal

Marshal serializes the command parameters into binary form.

func (*LERemoteConnectionParameterRequestReply) OpCode

OpCode returns the opcode of the command.

func (*LERemoteConnectionParameterRequestReply) String

type LERemoteConnectionParameterRequestReplyRP

type LERemoteConnectionParameterRequestReplyRP struct {
	Status           uint8
	ConnectionHandle uint16
}

LERemoteConnectionParameterRequestReplyRP returns the return parameter of LE Remote Connection Parameter Request Reply

func (*LERemoteConnectionParameterRequestReplyRP) Unmarshal

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LERemoveDeviceFromWhiteList

type LERemoveDeviceFromWhiteList struct {
	AddressType uint8
	Address     [6]byte
}

LERemoveDeviceFromWhiteList implements LE Remove Device From White List (0x08|0x0012) [Vol 2, Part E, 7.8.17]

func (*LERemoveDeviceFromWhiteList) Len

Len returns the length of the command.

func (*LERemoveDeviceFromWhiteList) Marshal

func (c *LERemoveDeviceFromWhiteList) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LERemoveDeviceFromWhiteList) OpCode

func (c *LERemoveDeviceFromWhiteList) OpCode() int

OpCode returns the opcode of the command.

func (*LERemoveDeviceFromWhiteList) String

func (c *LERemoveDeviceFromWhiteList) String() string

type LERemoveDeviceFromWhiteListRP

type LERemoveDeviceFromWhiteListRP struct {
	Status uint8
}

LERemoveDeviceFromWhiteListRP returns the return parameter of LE Remove Device From White List

func (*LERemoveDeviceFromWhiteListRP) Unmarshal

func (c *LERemoveDeviceFromWhiteListRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetAdvertiseEnable

type LESetAdvertiseEnable struct {
	AdvertisingEnable uint8
}

LESetAdvertiseEnable implements LE Set Advertise Enable (0x08|0x000A) [Vol 2, Part E, 7.8.9]

func (*LESetAdvertiseEnable) Len

func (c *LESetAdvertiseEnable) Len() int

Len returns the length of the command.

func (*LESetAdvertiseEnable) Marshal

func (c *LESetAdvertiseEnable) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetAdvertiseEnable) OpCode

func (c *LESetAdvertiseEnable) OpCode() int

OpCode returns the opcode of the command.

func (*LESetAdvertiseEnable) String

func (c *LESetAdvertiseEnable) String() string

type LESetAdvertiseEnableRP

type LESetAdvertiseEnableRP struct {
	Status uint8
}

LESetAdvertiseEnableRP returns the return parameter of LE Set Advertise Enable

func (*LESetAdvertiseEnableRP) Unmarshal

func (c *LESetAdvertiseEnableRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetAdvertisingData

type LESetAdvertisingData struct {
	AdvertisingDataLength uint8
	AdvertisingData       [31]byte
}

LESetAdvertisingData implements LE Set Advertising Data (0x08|0x0008) [Vol 2, Part E, 7.8.7]

func (*LESetAdvertisingData) Len

func (c *LESetAdvertisingData) Len() int

Len returns the length of the command.

func (*LESetAdvertisingData) Marshal

func (c *LESetAdvertisingData) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetAdvertisingData) OpCode

func (c *LESetAdvertisingData) OpCode() int

OpCode returns the opcode of the command.

func (*LESetAdvertisingData) String

func (c *LESetAdvertisingData) String() string

type LESetAdvertisingDataRP

type LESetAdvertisingDataRP struct {
	Status                  uint8
	HCLEDataPacketLength    uint16
	HCTotalNumLEDataPackets uint8
}

LESetAdvertisingDataRP returns the return parameter of LE Set Advertising Data

func (*LESetAdvertisingDataRP) Unmarshal

func (c *LESetAdvertisingDataRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetAdvertisingParameters

type LESetAdvertisingParameters struct {
	AdvertisingIntervalMin  uint16
	AdvertisingIntervalMax  uint16
	AdvertisingType         uint8
	OwnAddressType          uint8
	DirectAddressType       uint8
	DirectAddress           [6]byte
	AdvertisingChannelMap   uint8
	AdvertisingFilterPolicy uint8
}

LESetAdvertisingParameters implements LE Set Advertising Parameters (0x08|0x0006) [Vol 2, Part E, 7.8.5]

func (*LESetAdvertisingParameters) Len

Len returns the length of the command.

func (*LESetAdvertisingParameters) Marshal

func (c *LESetAdvertisingParameters) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetAdvertisingParameters) OpCode

func (c *LESetAdvertisingParameters) OpCode() int

OpCode returns the opcode of the command.

func (*LESetAdvertisingParameters) String

func (c *LESetAdvertisingParameters) String() string

type LESetAdvertisingParametersRP

type LESetAdvertisingParametersRP struct {
	Status uint8
}

LESetAdvertisingParametersRP returns the return parameter of LE Set Advertising Parameters

func (*LESetAdvertisingParametersRP) Unmarshal

func (c *LESetAdvertisingParametersRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetEventMask

type LESetEventMask struct {
	LEEventMask uint64
}

LESetEventMask implements LE Set Event Mask (0x08|0x0001) [Vol 2, Part E, 7.8.1]

func (*LESetEventMask) Len

func (c *LESetEventMask) Len() int

Len returns the length of the command.

func (*LESetEventMask) Marshal

func (c *LESetEventMask) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetEventMask) OpCode

func (c *LESetEventMask) OpCode() int

OpCode returns the opcode of the command.

func (*LESetEventMask) String

func (c *LESetEventMask) String() string

type LESetEventMaskRP

type LESetEventMaskRP struct {
	Status uint8
}

LESetEventMaskRP returns the return parameter of LE Set Event Mask

func (*LESetEventMaskRP) Unmarshal

func (c *LESetEventMaskRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetHostChannelClassification

type LESetHostChannelClassification struct {
	ChannelMap [5]byte
}

LESetHostChannelClassification implements LE Set Host Channel Classification (0x08|0x0014) [Vol 2, Part E, 7.8.19]

func (*LESetHostChannelClassification) Len

Len returns the length of the command.

func (*LESetHostChannelClassification) Marshal

func (c *LESetHostChannelClassification) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetHostChannelClassification) OpCode

func (c *LESetHostChannelClassification) OpCode() int

OpCode returns the opcode of the command.

func (*LESetHostChannelClassification) String

type LESetHostChannelClassificationRP

type LESetHostChannelClassificationRP struct {
	Status uint8
}

LESetHostChannelClassificationRP returns the return parameter of LE Set Host Channel Classification

func (*LESetHostChannelClassificationRP) Unmarshal

func (c *LESetHostChannelClassificationRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetRandomAddress

type LESetRandomAddress struct {
	RandomAddress [6]byte
}

LESetRandomAddress implements LE Set Random Address (0x08|0x0005) [Vol 2, Part E, 7.8.4]

func (*LESetRandomAddress) Len

func (c *LESetRandomAddress) Len() int

Len returns the length of the command.

func (*LESetRandomAddress) Marshal

func (c *LESetRandomAddress) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetRandomAddress) OpCode

func (c *LESetRandomAddress) OpCode() int

OpCode returns the opcode of the command.

func (*LESetRandomAddress) String

func (c *LESetRandomAddress) String() string

type LESetRandomAddressRP

type LESetRandomAddressRP struct {
	Status uint8
}

LESetRandomAddressRP returns the return parameter of LE Set Random Address

func (*LESetRandomAddressRP) Unmarshal

func (c *LESetRandomAddressRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetScanEnable

type LESetScanEnable struct {
	LEScanEnable     uint8
	FilterDuplicates uint8
}

LESetScanEnable implements LE Set Scan Enable (0x08|0x000C) [Vol 2, Part E, 7.8.11]

func (*LESetScanEnable) Len

func (c *LESetScanEnable) Len() int

Len returns the length of the command.

func (*LESetScanEnable) Marshal

func (c *LESetScanEnable) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetScanEnable) OpCode

func (c *LESetScanEnable) OpCode() int

OpCode returns the opcode of the command.

func (*LESetScanEnable) String

func (c *LESetScanEnable) String() string

type LESetScanEnableRP

type LESetScanEnableRP struct {
	Status uint8
}

LESetScanEnableRP returns the return parameter of LE Set Scan Enable

func (*LESetScanEnableRP) Unmarshal

func (c *LESetScanEnableRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetScanParameters

type LESetScanParameters struct {
	LEScanType           uint8
	LEScanInterval       uint16
	LEScanWindow         uint16
	OwnAddressType       uint8
	ScanningFilterPolicy uint8
}

LESetScanParameters implements LE Set Scan Parameters (0x08|0x000B) [Vol 2, Part E, 7.8.10]

func (*LESetScanParameters) Len

func (c *LESetScanParameters) Len() int

Len returns the length of the command.

func (*LESetScanParameters) Marshal

func (c *LESetScanParameters) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetScanParameters) OpCode

func (c *LESetScanParameters) OpCode() int

OpCode returns the opcode of the command.

func (*LESetScanParameters) String

func (c *LESetScanParameters) String() string

type LESetScanParametersRP

type LESetScanParametersRP struct {
	Status uint8
}

LESetScanParametersRP returns the return parameter of LE Set Scan Parameters

func (*LESetScanParametersRP) Unmarshal

func (c *LESetScanParametersRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LESetScanResponseData

type LESetScanResponseData struct {
	ScanResponseDataLength uint8
	ScanResponseData       [31]byte
}

LESetScanResponseData implements LE Set Scan Response Data (0x08|0x0009) [Vol 2, Part E, 7.8.8]

func (*LESetScanResponseData) Len

func (c *LESetScanResponseData) Len() int

Len returns the length of the command.

func (*LESetScanResponseData) Marshal

func (c *LESetScanResponseData) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LESetScanResponseData) OpCode

func (c *LESetScanResponseData) OpCode() int

OpCode returns the opcode of the command.

func (*LESetScanResponseData) String

func (c *LESetScanResponseData) String() string

type LESetScanResponseDataRP

type LESetScanResponseDataRP struct {
	Status uint8
}

LESetScanResponseDataRP returns the return parameter of LE Set Scan Response Data

func (*LESetScanResponseDataRP) Unmarshal

func (c *LESetScanResponseDataRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LEStartEncryption

type LEStartEncryption struct {
	ConnectionHandle     uint16
	RandomNumber         uint64
	EncryptedDiversifier uint16
	LongTermKey          [16]byte
}

LEStartEncryption implements LE Start Encryption (0x08|0x0019) [Vol 2, Part E, 7.8.24]

func (*LEStartEncryption) Len

func (c *LEStartEncryption) Len() int

Len returns the length of the command.

func (*LEStartEncryption) Marshal

func (c *LEStartEncryption) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LEStartEncryption) OpCode

func (c *LEStartEncryption) OpCode() int

OpCode returns the opcode of the command.

func (*LEStartEncryption) String

func (c *LEStartEncryption) String() string

type LETestEnd

type LETestEnd struct {
}

LETestEnd implements LE Test End (0x08|0x001F) [Vol 2, Part E, 7.8.30]

func (*LETestEnd) Len

func (c *LETestEnd) Len() int

Len returns the length of the command.

func (*LETestEnd) Marshal

func (c *LETestEnd) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LETestEnd) OpCode

func (c *LETestEnd) OpCode() int

OpCode returns the opcode of the command.

func (*LETestEnd) String

func (c *LETestEnd) String() string

type LETestEndRP

type LETestEndRP struct {
	Status          uint8
	NumberOfPackats uint16
}

LETestEndRP returns the return parameter of LE Test End

func (*LETestEndRP) Unmarshal

func (c *LETestEndRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type LETransmitterTest

type LETransmitterTest struct {
	TXChannel        uint8
	LengthOfTestData uint8
	PacketPayload    uint8
}

LETransmitterTest implements LE Transmitter Test (0x08|0x001E) [Vol 2, Part E, 7.8.29]

func (*LETransmitterTest) Len

func (c *LETransmitterTest) Len() int

Len returns the length of the command.

func (*LETransmitterTest) Marshal

func (c *LETransmitterTest) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*LETransmitterTest) OpCode

func (c *LETransmitterTest) OpCode() int

OpCode returns the opcode of the command.

func (*LETransmitterTest) String

func (c *LETransmitterTest) String() string

type LETransmitterTestRP

type LETransmitterTestRP struct {
	Status uint8
}

LETransmitterTestRP returns the return parameter of LE Transmitter Test

func (*LETransmitterTestRP) Unmarshal

func (c *LETransmitterTestRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadAuthenticatedPayloadTimeout

type ReadAuthenticatedPayloadTimeout struct {
	ConnectionHandle uint16
}

ReadAuthenticatedPayloadTimeout implements Read Authenticated Payload Timeout (0x03|0x007B) [Vol 2, Part E, 7.3.93]

func (*ReadAuthenticatedPayloadTimeout) Len

Len returns the length of the command.

func (*ReadAuthenticatedPayloadTimeout) Marshal

func (c *ReadAuthenticatedPayloadTimeout) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadAuthenticatedPayloadTimeout) OpCode

OpCode returns the opcode of the command.

func (*ReadAuthenticatedPayloadTimeout) String

type ReadAuthenticatedPayloadTimeoutRP

type ReadAuthenticatedPayloadTimeoutRP struct {
	Status                      uint8
	ConnectionHandle            uint16
	AuthenticatedPayloadTimeout uint16
}

ReadAuthenticatedPayloadTimeoutRP returns the return parameter of Read Authenticated Payload Timeout

func (*ReadAuthenticatedPayloadTimeoutRP) Unmarshal

func (c *ReadAuthenticatedPayloadTimeoutRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadBDADDR

type ReadBDADDR struct {
}

ReadBDADDR implements Read BD_ADDR (0x04|0x0009) [Vol 2, Part E, 7.4.6]

func (*ReadBDADDR) Len

func (c *ReadBDADDR) Len() int

Len returns the length of the command.

func (*ReadBDADDR) Marshal

func (c *ReadBDADDR) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadBDADDR) OpCode

func (c *ReadBDADDR) OpCode() int

OpCode returns the opcode of the command.

func (*ReadBDADDR) String

func (c *ReadBDADDR) String() string

type ReadBDADDRRP

type ReadBDADDRRP struct {
	Status uint8
	BDADDR [6]byte
}

ReadBDADDRRP returns the return parameter of Read BD_ADDR

func (*ReadBDADDRRP) Unmarshal

func (c *ReadBDADDRRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadBufferSize

type ReadBufferSize struct {
}

ReadBufferSize implements Read Buffer Size (0x04|0x0005) [Vol 2, Part E, 7.4.5]

func (*ReadBufferSize) Len

func (c *ReadBufferSize) Len() int

Len returns the length of the command.

func (*ReadBufferSize) Marshal

func (c *ReadBufferSize) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadBufferSize) OpCode

func (c *ReadBufferSize) OpCode() int

OpCode returns the opcode of the command.

func (*ReadBufferSize) String

func (c *ReadBufferSize) String() string

type ReadBufferSizeRP

type ReadBufferSizeRP struct {
	Status                           uint8
	HCACLDataPacketLength            uint16
	HCSynchronousDataPacketLength    uint8
	HCTotalNumACLDataPackets         uint16
	HCTotalNumSynchronousDataPackets uint16
}

ReadBufferSizeRP returns the return parameter of Read Buffer Size

func (*ReadBufferSizeRP) Unmarshal

func (c *ReadBufferSizeRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadLocalSupportedCommands

type ReadLocalSupportedCommands struct {
}

ReadLocalSupportedCommands implements Read Local Supported Commands (0x04|0x0002) [Vol 2, Part E, 7.4.2]

func (*ReadLocalSupportedCommands) Len

Len returns the length of the command.

func (*ReadLocalSupportedCommands) Marshal

func (c *ReadLocalSupportedCommands) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadLocalSupportedCommands) OpCode

func (c *ReadLocalSupportedCommands) OpCode() int

OpCode returns the opcode of the command.

func (*ReadLocalSupportedCommands) String

func (c *ReadLocalSupportedCommands) String() string

type ReadLocalSupportedCommandsRP

type ReadLocalSupportedCommandsRP struct {
	Status     uint8
	Supporteds uint64
}

ReadLocalSupportedCommandsRP returns the return parameter of Read Local Supported Commands

func (*ReadLocalSupportedCommandsRP) Unmarshal

func (c *ReadLocalSupportedCommandsRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadLocalSupportedFeatures

type ReadLocalSupportedFeatures struct {
}

ReadLocalSupportedFeatures implements Read Local Supported Features (0x04|0x0003) [Vol 2, Part E, 7.4.3]

func (*ReadLocalSupportedFeatures) Len

Len returns the length of the command.

func (*ReadLocalSupportedFeatures) Marshal

func (c *ReadLocalSupportedFeatures) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadLocalSupportedFeatures) OpCode

func (c *ReadLocalSupportedFeatures) OpCode() int

OpCode returns the opcode of the command.

func (*ReadLocalSupportedFeatures) String

func (c *ReadLocalSupportedFeatures) String() string

type ReadLocalSupportedFeaturesRP

type ReadLocalSupportedFeaturesRP struct {
	Status      uint8
	LMPFeatures uint64
}

ReadLocalSupportedFeaturesRP returns the return parameter of Read Local Supported Features

func (*ReadLocalSupportedFeaturesRP) Unmarshal

func (c *ReadLocalSupportedFeaturesRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadLocalVersionInformation

type ReadLocalVersionInformation struct {
}

ReadLocalVersionInformation implements Read Local Version Information (0x04|0x0001) [Vol 2, Part E, 7.4.1]

func (*ReadLocalVersionInformation) Len

Len returns the length of the command.

func (*ReadLocalVersionInformation) Marshal

func (c *ReadLocalVersionInformation) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadLocalVersionInformation) OpCode

func (c *ReadLocalVersionInformation) OpCode() int

OpCode returns the opcode of the command.

func (*ReadLocalVersionInformation) String

func (c *ReadLocalVersionInformation) String() string

type ReadLocalVersionInformationRP

type ReadLocalVersionInformationRP struct {
	Status           uint8
	HCIVersion       uint8
	HCIRevision      uint16
	LMPPAMVersion    uint8
	ManufacturerName uint16
	LMPPAMSubversion uint16
}

ReadLocalVersionInformationRP returns the return parameter of Read Local Version Information

func (*ReadLocalVersionInformationRP) Unmarshal

func (c *ReadLocalVersionInformationRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadRSSI

type ReadRSSI struct {
	Handle uint16
}

ReadRSSI implements Read RSSI (0x05|0x0005) [Vol 2, Part E, 7.5.4]

func (*ReadRSSI) Len

func (c *ReadRSSI) Len() int

Len returns the length of the command.

func (*ReadRSSI) Marshal

func (c *ReadRSSI) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadRSSI) OpCode

func (c *ReadRSSI) OpCode() int

OpCode returns the opcode of the command.

func (*ReadRSSI) String

func (c *ReadRSSI) String() string

type ReadRSSIRP

type ReadRSSIRP struct {
	Status           uint8
	ConnectionHandle uint16
	RSSI             int8
}

ReadRSSIRP returns the return parameter of Read RSSI

func (*ReadRSSIRP) Unmarshal

func (c *ReadRSSIRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type ReadRemoteVersionInformation

type ReadRemoteVersionInformation struct {
	ConnectionHandle uint16
}

ReadRemoteVersionInformation implements Read Remote Version Information (0x01|0x001D) [Vol 2, Part E, 7.1.23]

func (*ReadRemoteVersionInformation) Len

Len returns the length of the command.

func (*ReadRemoteVersionInformation) Marshal

func (c *ReadRemoteVersionInformation) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadRemoteVersionInformation) OpCode

func (c *ReadRemoteVersionInformation) OpCode() int

OpCode returns the opcode of the command.

func (*ReadRemoteVersionInformation) String

type ReadTransmitPowerLevel

type ReadTransmitPowerLevel struct {
	ConnectionHandle uint16
	Type             uint8
}

ReadTransmitPowerLevel implements Read Transmit Power Level (0x03|0x002D) [Vol 2, Part E, 7.3.35]

func (*ReadTransmitPowerLevel) Len

func (c *ReadTransmitPowerLevel) Len() int

Len returns the length of the command.

func (*ReadTransmitPowerLevel) Marshal

func (c *ReadTransmitPowerLevel) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*ReadTransmitPowerLevel) OpCode

func (c *ReadTransmitPowerLevel) OpCode() int

OpCode returns the opcode of the command.

func (*ReadTransmitPowerLevel) String

func (c *ReadTransmitPowerLevel) String() string

type ReadTransmitPowerLevelRP

type ReadTransmitPowerLevelRP struct {
	Status           uint8
	ConnectionHandle uint16
}

ReadTransmitPowerLevelRP returns the return parameter of Read Transmit Power Level

func (*ReadTransmitPowerLevelRP) Unmarshal

func (c *ReadTransmitPowerLevelRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type Reset

type Reset struct {
}

Reset implements Reset (0x03|0x003) [Vol 2, Part E, 7.3.2]

func (*Reset) Len

func (c *Reset) Len() int

Len returns the length of the command.

func (*Reset) Marshal

func (c *Reset) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*Reset) OpCode

func (c *Reset) OpCode() int

OpCode returns the opcode of the command.

func (*Reset) String

func (c *Reset) String() string

type ResetRP

type ResetRP struct {
	Status uint8
}

ResetRP returns the return parameter of Reset

func (*ResetRP) Unmarshal

func (c *ResetRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type SetEventMask

type SetEventMask struct {
	EventMask uint64
}

SetEventMask implements Set Event Mask (0x03|0x0001) [Vol 2, Part E, 7.3.1]

func (*SetEventMask) Len

func (c *SetEventMask) Len() int

Len returns the length of the command.

func (*SetEventMask) Marshal

func (c *SetEventMask) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*SetEventMask) OpCode

func (c *SetEventMask) OpCode() int

OpCode returns the opcode of the command.

func (*SetEventMask) String

func (c *SetEventMask) String() string

type SetEventMaskPage2

type SetEventMaskPage2 struct {
	EventMaskPage2 uint64
}

SetEventMaskPage2 implements Set Event Mask Page 2 (0x03|0x0063) [Vol 2, Part E, 7.3.69]

func (*SetEventMaskPage2) Len

func (c *SetEventMaskPage2) Len() int

Len returns the length of the command.

func (*SetEventMaskPage2) Marshal

func (c *SetEventMaskPage2) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*SetEventMaskPage2) OpCode

func (c *SetEventMaskPage2) OpCode() int

OpCode returns the opcode of the command.

func (*SetEventMaskPage2) String

func (c *SetEventMaskPage2) String() string

type SetEventMaskPage2RP

type SetEventMaskPage2RP struct {
	Status uint8
}

SetEventMaskPage2RP returns the return parameter of Set Event Mask Page 2

func (*SetEventMaskPage2RP) Unmarshal

func (c *SetEventMaskPage2RP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type SetEventMaskRP

type SetEventMaskRP struct {
	Status uint8
}

SetEventMaskRP returns the return parameter of Set Event Mask

func (*SetEventMaskRP) Unmarshal

func (c *SetEventMaskRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type WriteAuthenticatedPayloadTimeout

type WriteAuthenticatedPayloadTimeout struct {
	ConnectionHandle            uint16
	AuthenticatedPayloadTimeout uint16
}

WriteAuthenticatedPayloadTimeout implements Write Authenticated Payload Timeout (0x01|0x007C) [Vol 2, Part E, 7.3.94]

func (*WriteAuthenticatedPayloadTimeout) Len

Len returns the length of the command.

func (*WriteAuthenticatedPayloadTimeout) Marshal

Marshal serializes the command parameters into binary form.

func (*WriteAuthenticatedPayloadTimeout) OpCode

OpCode returns the opcode of the command.

func (*WriteAuthenticatedPayloadTimeout) String

type WriteAuthenticatedPayloadTimeoutRP

type WriteAuthenticatedPayloadTimeoutRP struct {
	Status           uint8
	ConnectionHandle uint16
}

WriteAuthenticatedPayloadTimeoutRP returns the return parameter of Write Authenticated Payload Timeout

func (*WriteAuthenticatedPayloadTimeoutRP) Unmarshal

func (c *WriteAuthenticatedPayloadTimeoutRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type WriteClassOfDevice

type WriteClassOfDevice struct {
	ClassOfDevice [3]byte
}

WriteClassOfDevice implements Write Class Of Device (0x03|0x0024) [Vol 2, Part E, 7.3.26]

func (*WriteClassOfDevice) Len

func (c *WriteClassOfDevice) Len() int

Len returns the length of the command.

func (*WriteClassOfDevice) Marshal

func (c *WriteClassOfDevice) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*WriteClassOfDevice) OpCode

func (c *WriteClassOfDevice) OpCode() int

OpCode returns the opcode of the command.

func (*WriteClassOfDevice) String

func (c *WriteClassOfDevice) String() string

type WriteClassOfDeviceRP

type WriteClassOfDeviceRP struct {
	Status uint8
}

WriteClassOfDeviceRP returns the return parameter of Write Class Of Device

func (*WriteClassOfDeviceRP) Unmarshal

func (c *WriteClassOfDeviceRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type WriteDefaultLinkPolicySettings

type WriteDefaultLinkPolicySettings struct {
	DefaultLinkPolicySettings uint16
}

WriteDefaultLinkPolicySettings implements Write Default Link Policy Settings (0x02|0x000D) [Vol 2, Part E, 7.2.12]

func (*WriteDefaultLinkPolicySettings) Len

Len returns the length of the command.

func (*WriteDefaultLinkPolicySettings) Marshal

func (c *WriteDefaultLinkPolicySettings) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*WriteDefaultLinkPolicySettings) OpCode

func (c *WriteDefaultLinkPolicySettings) OpCode() int

OpCode returns the opcode of the command.

func (*WriteDefaultLinkPolicySettings) String

type WriteDefaultLinkPolicySettingsRP

type WriteDefaultLinkPolicySettingsRP struct {
	Status uint8
}

WriteDefaultLinkPolicySettingsRP returns the return parameter of Write Default Link Policy Settings

func (*WriteDefaultLinkPolicySettingsRP) Unmarshal

func (c *WriteDefaultLinkPolicySettingsRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type WriteLEHostSupport

type WriteLEHostSupport struct {
	LESupportedHost    uint8
	SimultaneousLEHost uint8
}

WriteLEHostSupport implements Write LE Host Support (0x03|0x006D) [Vol 2, Part E, 7.3.79]

func (*WriteLEHostSupport) Len

func (c *WriteLEHostSupport) Len() int

Len returns the length of the command.

func (*WriteLEHostSupport) Marshal

func (c *WriteLEHostSupport) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*WriteLEHostSupport) OpCode

func (c *WriteLEHostSupport) OpCode() int

OpCode returns the opcode of the command.

func (*WriteLEHostSupport) String

func (c *WriteLEHostSupport) String() string

type WriteLEHostSupportRP

type WriteLEHostSupportRP struct {
	Status uint8
}

WriteLEHostSupportRP returns the return parameter of Write LE Host Support

func (*WriteLEHostSupportRP) Unmarshal

func (c *WriteLEHostSupportRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

type WritePageTimeout

type WritePageTimeout struct {
	PageTimeout uint16
}

WritePageTimeout implements Write Page Timeout (0x03|0x0018) [Vol 2, Part E, 7.3.16]

func (*WritePageTimeout) Len

func (c *WritePageTimeout) Len() int

Len returns the length of the command.

func (*WritePageTimeout) Marshal

func (c *WritePageTimeout) Marshal(b []byte) error

Marshal serializes the command parameters into binary form.

func (*WritePageTimeout) OpCode

func (c *WritePageTimeout) OpCode() int

OpCode returns the opcode of the command.

func (*WritePageTimeout) String

func (c *WritePageTimeout) String() string

type WritePageTimeoutRP

type WritePageTimeoutRP struct {
	Status uint8
}

WritePageTimeoutRP returns the return parameter of Write Page Timeout

func (*WritePageTimeoutRP) Unmarshal

func (c *WritePageTimeoutRP) Unmarshal(b []byte) error

Unmarshal de-serializes the binary data and stores the result in the receiver.

Jump to

Keyboard shortcuts

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