Documentation ¶
Index ¶
- type Cmd
- type CmdParam
- type Disconnect
- type DisconnectRP
- type Flush
- type HostBufferSize
- type HostBufferSizeRP
- type LEAddDeviceToWhiteList
- type LEAddDeviceToWhiteListRP
- type LEClearWhiteList
- type LEClearWhiteListRP
- type LEConnUpdate
- type LEConnUpdateRP
- type LECreateConn
- type LECreateConnCancel
- type LECreateConnCancelRP
- type LECreateConnRP
- type LEEncrypt
- type LEEncryptRP
- type LELTKNegReply
- type LELTKNegReplyRP
- type LELTKReply
- type LELTKReplyRP
- type LERand
- type LERandRP
- type LEReadAdvertisingChannelTxPower
- type LEReadAdvertisingChannelTxPowerRP
- type LEReadBufferSize
- type LEReadBufferSizeRP
- type LEReadChannelMap
- type LEReadChannelMapRP
- type LEReadLocalSupportedFeatures
- type LEReadLocalSupportedFeaturesRP
- type LEReadRemoteUsedFeatures
- type LEReadRemoteUsedFeaturesRP
- type LEReadSupportedStates
- type LEReadSupportedStatesRP
- type LEReadWhiteListSize
- type LEReadWhiteListSizeRP
- type LEReceiverTest
- type LEReceiverTestRP
- type LERemoteConnectionParameterNegReply
- type LERemoteConnectionParameterNegReplyRP
- type LERemoteConnectionParameterReply
- type LERemoteConnectionParameterReplyRP
- type LERemoveDeviceFromWhiteList
- type LERemoveDeviceFromWhiteListRP
- type LESetAdvertiseEnable
- type LESetAdvertiseEnableRP
- type LESetAdvertisingData
- type LESetAdvertisingDataRP
- type LESetAdvertisingParameters
- type LESetAdvertisingParametersRP
- type LESetEventMask
- type LESetEventMaskRP
- type LESetHostChannelClassification
- type LESetHostChannelClassificationRP
- type LESetRandomAddress
- type LESetRandomAddressRP
- type LESetScanEnable
- type LESetScanEnableRP
- type LESetScanParameters
- type LESetScanParametersRP
- type LESetScanResponseData
- type LESetScanResponseDataRP
- type LEStartEncryption
- type LEStartEncryptionRP
- type LETestEnd
- type LETestEndRP
- type LETransmitterTest
- type LETransmitterTestRP
- type Reset
- type ResetRP
- type SetEventFltRP
- type SetEventMask
- type SetEventMaskPage2
- type SetEventMaskPage2RP
- type SetEventMaskRP
- type WriteClassOfDevRP
- type WriteClassOfDevice
- type WriteDefaultLinkPolicy
- type WriteDefaultLinkPolicyRP
- type WriteInquiryMode
- type WriteInquiryModeRP
- type WriteInquiryScanType
- type WriteInquiryScanTypeRP
- type WriteLEHostSupported
- type WriteLeHostSupportedRP
- type WritePageScanType
- type WritePageScanTypeRP
- type WritePageTimeout
- type WritePageTimeoutRP
- type WriteSimplePairingMode
- type WriteSimplePairingModeRP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
type Disconnect ¶
Disconnect (0x0006)
func (Disconnect) Len ¶
func (c Disconnect) Len() int
func (Disconnect) Marshal ¶
func (c Disconnect) Marshal(b []byte)
func (Disconnect) Opcode ¶
func (c Disconnect) Opcode() int
type DisconnectRP ¶
type DisconnectRP struct{}
No Return Parameters, Check for Disconnection Complete Event
type HostBufferSize ¶
type HostBufferSize struct { HostACLDataPacketLength uint16 HostSynchronousDataPacketLength uint8 HostTotalNumACLDataPackets uint16 HostTotalNumSynchronousDataPackets uint16 }
Write Host Buffer Size (0x0033)
func (HostBufferSize) Len ¶
func (c HostBufferSize) Len() int
func (HostBufferSize) Marshal ¶
func (c HostBufferSize) Marshal(b []byte)
func (HostBufferSize) Opcode ¶
func (c HostBufferSize) Opcode() int
type LEAddDeviceToWhiteList ¶
LE Add Device To White List (0x0011)
func (LEAddDeviceToWhiteList) Len ¶
func (c LEAddDeviceToWhiteList) Len() int
func (LEAddDeviceToWhiteList) Marshal ¶
func (c LEAddDeviceToWhiteList) Marshal(b []byte)
func (LEAddDeviceToWhiteList) Opcode ¶
func (c LEAddDeviceToWhiteList) Opcode() int
type LEClearWhiteList ¶
type LEClearWhiteList struct{}
LE Clear White List (0x0010)
func (LEClearWhiteList) Len ¶
func (c LEClearWhiteList) Len() int
func (LEClearWhiteList) Marshal ¶
func (c LEClearWhiteList) Marshal(b []byte)
func (LEClearWhiteList) Opcode ¶
func (c LEClearWhiteList) Opcode() int
type LEConnUpdate ¶
type LEConnUpdate struct { ConnectionHandle uint16 ConnIntervalMin uint16 ConnIntervalMax uint16 ConnLatency uint16 SupervisionTimeout uint16 MinimumCELength uint16 MaximumCELength uint16 }
LE Connection Update (0x0013)
func (LEConnUpdate) Len ¶
func (c LEConnUpdate) Len() int
func (LEConnUpdate) Marshal ¶
func (c LEConnUpdate) Marshal(b []byte)
func (LEConnUpdate) Opcode ¶
func (c LEConnUpdate) Opcode() int
type LEConnUpdateRP ¶
type LEConnUpdateRP struct{}
type LECreateConn ¶
type LECreateConn 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 }
LE Create Connection (0x000D)
func (LECreateConn) Len ¶
func (c LECreateConn) Len() int
func (LECreateConn) Marshal ¶
func (c LECreateConn) Marshal(b []byte)
func (LECreateConn) Opcode ¶
func (c LECreateConn) Opcode() int
type LECreateConnCancel ¶
type LECreateConnCancel struct{}
LE Create Connection Cancel (0x000E)
func (LECreateConnCancel) Len ¶
func (c LECreateConnCancel) Len() int
func (LECreateConnCancel) Marshal ¶
func (c LECreateConnCancel) Marshal(b []byte)
func (LECreateConnCancel) Opcode ¶
func (c LECreateConnCancel) Opcode() int
type LECreateConnRP ¶
type LECreateConnRP struct{}
type LEEncrypt ¶
LE Encrypt (0x0017)
type LELTKNegReply ¶
type LELTKNegReply struct{ ConnectionHandle uint16 }
LE Long Term Key Negative Reply (0x001B)
func (LELTKNegReply) Len ¶
func (c LELTKNegReply) Len() int
func (LELTKNegReply) Marshal ¶
func (c LELTKNegReply) Marshal(b []byte)
func (LELTKNegReply) Opcode ¶
func (c LELTKNegReply) Opcode() int
type LELTKReply ¶
LE Long Term Key Reply (0x001A)
func (LELTKReply) Len ¶
func (c LELTKReply) Len() int
func (LELTKReply) Marshal ¶
func (c LELTKReply) Marshal(b []byte)
func (LELTKReply) Opcode ¶
func (c LELTKReply) Opcode() int
type LEReadAdvertisingChannelTxPower ¶
type LEReadAdvertisingChannelTxPower struct{}
LE Read Advertising Channel Tx Power (0x0007)
func (LEReadAdvertisingChannelTxPower) Len ¶
func (c LEReadAdvertisingChannelTxPower) Len() int
func (LEReadAdvertisingChannelTxPower) Marshal ¶
func (c LEReadAdvertisingChannelTxPower) Marshal(b []byte)
func (LEReadAdvertisingChannelTxPower) Opcode ¶
func (c LEReadAdvertisingChannelTxPower) Opcode() int
type LEReadAdvertisingChannelTxPowerRP ¶
type LEReadBufferSize ¶
type LEReadBufferSize struct{}
LE Read Buffer Size (0x0002)
func (LEReadBufferSize) Len ¶
func (c LEReadBufferSize) Len() int
func (LEReadBufferSize) Marshal ¶
func (c LEReadBufferSize) Marshal(b []byte)
func (LEReadBufferSize) Opcode ¶
func (c LEReadBufferSize) Opcode() int
type LEReadBufferSizeRP ¶
type LEReadChannelMap ¶
type LEReadChannelMap struct{ ConnectionHandle uint16 }
LE Read Channel Map (0x0015)
func (LEReadChannelMap) Len ¶
func (c LEReadChannelMap) Len() int
func (LEReadChannelMap) Marshal ¶
func (c LEReadChannelMap) Marshal(b []byte)
func (LEReadChannelMap) Opcode ¶
func (c LEReadChannelMap) Opcode() int
type LEReadChannelMapRP ¶
type LEReadLocalSupportedFeatures ¶
type LEReadLocalSupportedFeatures struct{}
LE Read Local Supported Features (0x0003)
func (LEReadLocalSupportedFeatures) Len ¶
func (c LEReadLocalSupportedFeatures) Len() int
func (LEReadLocalSupportedFeatures) Marshal ¶
func (c LEReadLocalSupportedFeatures) Marshal(b []byte)
func (LEReadLocalSupportedFeatures) Opcode ¶
func (c LEReadLocalSupportedFeatures) Opcode() int
type LEReadLocalSupportedFeaturesRP ¶
type LEReadRemoteUsedFeatures ¶
type LEReadRemoteUsedFeatures struct{ ConnectionHandle uint16 }
LE Read Remote Used Features (0x0016)
func (LEReadRemoteUsedFeatures) Len ¶
func (c LEReadRemoteUsedFeatures) Len() int
func (LEReadRemoteUsedFeatures) Marshal ¶
func (c LEReadRemoteUsedFeatures) Marshal(b []byte)
func (LEReadRemoteUsedFeatures) Opcode ¶
func (c LEReadRemoteUsedFeatures) Opcode() int
type LEReadRemoteUsedFeaturesRP ¶
type LEReadRemoteUsedFeaturesRP struct{}
type LEReadSupportedStates ¶
type LEReadSupportedStates struct{}
LE Read Supported States (0x001C)
func (LEReadSupportedStates) Len ¶
func (c LEReadSupportedStates) Len() int
func (LEReadSupportedStates) Marshal ¶
func (c LEReadSupportedStates) Marshal(b []byte)
func (LEReadSupportedStates) Opcode ¶
func (c LEReadSupportedStates) Opcode() int
type LEReadSupportedStatesRP ¶
type LEReadWhiteListSize ¶
type LEReadWhiteListSize struct{}
LE Read White List Size (0x000F)
func (LEReadWhiteListSize) Len ¶
func (c LEReadWhiteListSize) Len() int
func (LEReadWhiteListSize) Marshal ¶
func (c LEReadWhiteListSize) Marshal(b []byte)
func (LEReadWhiteListSize) Opcode ¶
func (c LEReadWhiteListSize) Opcode() int
type LEReceiverTest ¶
type LEReceiverTest struct{ RxChannel uint8 }
LE Reciever Test (0x001D)
func (LEReceiverTest) Len ¶
func (c LEReceiverTest) Len() int
func (LEReceiverTest) Marshal ¶
func (c LEReceiverTest) Marshal(b []byte)
func (LEReceiverTest) Opcode ¶
func (c LEReceiverTest) Opcode() int
type LERemoteConnectionParameterNegReply ¶
LE Remote Connection Parameters Negative Reply (0x0021)
func (LERemoteConnectionParameterNegReply) Len ¶
func (c LERemoteConnectionParameterNegReply) Len() int
func (LERemoteConnectionParameterNegReply) Marshal ¶
func (c LERemoteConnectionParameterNegReply) Marshal(b []byte)
func (LERemoteConnectionParameterNegReply) Opcode ¶
func (c LERemoteConnectionParameterNegReply) Opcode() int
type LERemoteConnectionParameterNegReplyRP ¶
type LERemoteConnectionParameterReply ¶
type LERemoteConnectionParameterReply struct { ConnectionHandle uint16 IntervalMin uint16 IntervalMax uint16 Latency uint16 Timeout uint16 MinimumCELength uint16 MaximumCELength uint16 }
LE Remote Connection Parameters Reply (0x0020)
func (LERemoteConnectionParameterReply) Len ¶
func (c LERemoteConnectionParameterReply) Len() int
func (LERemoteConnectionParameterReply) Marshal ¶
func (c LERemoteConnectionParameterReply) Marshal(b []byte)
func (LERemoteConnectionParameterReply) Opcode ¶
func (c LERemoteConnectionParameterReply) Opcode() int
type LERemoteConnectionParameterReplyRP ¶
type LERemoveDeviceFromWhiteList ¶
LE Remove Device From White List (0x0012)
func (LERemoveDeviceFromWhiteList) Len ¶
func (c LERemoveDeviceFromWhiteList) Len() int
func (LERemoveDeviceFromWhiteList) Marshal ¶
func (c LERemoveDeviceFromWhiteList) Marshal(b []byte)
func (LERemoveDeviceFromWhiteList) Opcode ¶
func (c LERemoveDeviceFromWhiteList) Opcode() int
type LESetAdvertiseEnable ¶
type LESetAdvertiseEnable struct{ AdvertisingEnable uint8 }
LE Set Advertising Enable (0x000A)
func (LESetAdvertiseEnable) Len ¶
func (c LESetAdvertiseEnable) Len() int
func (LESetAdvertiseEnable) Marshal ¶
func (c LESetAdvertiseEnable) Marshal(b []byte)
func (LESetAdvertiseEnable) Opcode ¶
func (c LESetAdvertiseEnable) Opcode() int
type LESetAdvertisingData ¶
LE Set Advertising Data (0x0008)
func (LESetAdvertisingData) Len ¶
func (c LESetAdvertisingData) Len() int
func (LESetAdvertisingData) Marshal ¶
func (c LESetAdvertisingData) Marshal(b []byte)
func (LESetAdvertisingData) Opcode ¶
func (c LESetAdvertisingData) Opcode() int
type LESetAdvertisingParameters ¶
type LESetAdvertisingParameters struct { AdvertisingIntervalMin uint16 AdvertisingIntervalMax uint16 AdvertisingType uint8 OwnAddressType uint8 DirectAddressType uint8 DirectAddress [6]byte AdvertisingChannelMap uint8 AdvertisingFilterPolicy uint8 }
LE Set Advertising Parameters (0x0006)
func (LESetAdvertisingParameters) Len ¶
func (c LESetAdvertisingParameters) Len() int
func (LESetAdvertisingParameters) Marshal ¶
func (c LESetAdvertisingParameters) Marshal(b []byte)
func (LESetAdvertisingParameters) Opcode ¶
func (c LESetAdvertisingParameters) Opcode() int
type LESetEventMask ¶
type LESetEventMask struct{ LEEventMask uint64 }
LE Set Event Mask (0x0001)
func (LESetEventMask) Len ¶
func (c LESetEventMask) Len() int
func (LESetEventMask) Marshal ¶
func (c LESetEventMask) Marshal(b []byte)
func (LESetEventMask) Opcode ¶
func (c LESetEventMask) Opcode() int
type LESetHostChannelClassification ¶
type LESetHostChannelClassification struct{ ChannelMap [5]byte }
LE Set Host Channel Classification (0x0014)
func (LESetHostChannelClassification) Len ¶
func (c LESetHostChannelClassification) Len() int
func (LESetHostChannelClassification) Marshal ¶
func (c LESetHostChannelClassification) Marshal(b []byte)
func (LESetHostChannelClassification) Opcode ¶
func (c LESetHostChannelClassification) Opcode() int
type LESetHostChannelClassificationRP ¶
type LESetHostChannelClassificationRP struct{ Status uint8 }
type LESetRandomAddress ¶
type LESetRandomAddress struct{ RandomAddress [6]byte }
LE Set Random Address (0x0005)
func (LESetRandomAddress) Len ¶
func (c LESetRandomAddress) Len() int
func (LESetRandomAddress) Marshal ¶
func (c LESetRandomAddress) Marshal(b []byte)
func (LESetRandomAddress) Opcode ¶
func (c LESetRandomAddress) Opcode() int
type LESetScanEnable ¶
LE Set Scan Enable (0x000C)
func (LESetScanEnable) Len ¶
func (c LESetScanEnable) Len() int
func (LESetScanEnable) Marshal ¶
func (c LESetScanEnable) Marshal(b []byte)
func (LESetScanEnable) Opcode ¶
func (c LESetScanEnable) Opcode() int
type LESetScanParameters ¶
type LESetScanParameters struct { LEScanType uint8 LEScanInterval uint16 LEScanWindow uint16 OwnAddressType uint8 ScanningFilterPolicy uint8 }
LE Set Scan Parameters (0x000B)
func (LESetScanParameters) Len ¶
func (c LESetScanParameters) Len() int
func (LESetScanParameters) Marshal ¶
func (c LESetScanParameters) Marshal(b []byte)
func (LESetScanParameters) Opcode ¶
func (c LESetScanParameters) Opcode() int
type LESetScanResponseData ¶
LE Set Scan Response Data (0x0009)
func (LESetScanResponseData) Len ¶
func (c LESetScanResponseData) Len() int
func (LESetScanResponseData) Marshal ¶
func (c LESetScanResponseData) Marshal(b []byte)
func (LESetScanResponseData) Opcode ¶
func (c LESetScanResponseData) Opcode() int
type LEStartEncryption ¶
type LEStartEncryption struct { ConnectionHandle uint16 RandomNumber uint64 EncryptedDiversifier uint16 LongTermKey [16]byte }
LE Start Encryption (0x0019)
func (LEStartEncryption) Len ¶
func (c LEStartEncryption) Len() int
func (LEStartEncryption) Marshal ¶
func (c LEStartEncryption) Marshal(b []byte)
func (LEStartEncryption) Opcode ¶
func (c LEStartEncryption) Opcode() int
type LEStartEncryptionRP ¶
type LEStartEncryptionRP struct{}
type LETransmitterTest ¶
LE Transmitter Test (0x001E)
func (LETransmitterTest) Len ¶
func (c LETransmitterTest) Len() int
func (LETransmitterTest) Marshal ¶
func (c LETransmitterTest) Marshal(b []byte)
func (LETransmitterTest) Opcode ¶
func (c LETransmitterTest) Opcode() int
type SetEventMask ¶
type SetEventMask struct{ EventMask uint64 }
Set Event Mask (0x0001)
func (SetEventMask) Len ¶
func (c SetEventMask) Len() int
func (SetEventMask) Marshal ¶
func (c SetEventMask) Marshal(b []byte)
func (SetEventMask) Opcode ¶
func (c SetEventMask) Opcode() int
type SetEventMaskPage2 ¶
type SetEventMaskPage2 struct{ EventMaskPage2 uint64 }
Set Event Mask Page 2 (0x0063)
func (SetEventMaskPage2) Len ¶
func (c SetEventMaskPage2) Len() int
func (SetEventMaskPage2) Marshal ¶
func (c SetEventMaskPage2) Marshal(b []byte)
func (SetEventMaskPage2) Opcode ¶
func (c SetEventMaskPage2) Opcode() int
type WriteClassOfDevRP ¶
type WriteClassOfDevRP struct {
// contains filtered or unexported fields
}
type WriteClassOfDevice ¶
type WriteClassOfDevice struct{ ClassOfDevice [3]byte }
Write Class of Device (0x0024)
func (WriteClassOfDevice) Len ¶
func (c WriteClassOfDevice) Len() int
func (WriteClassOfDevice) Marshal ¶
func (c WriteClassOfDevice) Marshal(b []byte)
func (WriteClassOfDevice) Opcode ¶
func (c WriteClassOfDevice) Opcode() int
type WriteDefaultLinkPolicy ¶
type WriteDefaultLinkPolicy struct{ DefaultLinkPolicySettings uint16 }
Write Default Link Policy
func (WriteDefaultLinkPolicy) Len ¶
func (c WriteDefaultLinkPolicy) Len() int
func (WriteDefaultLinkPolicy) Marshal ¶
func (c WriteDefaultLinkPolicy) Marshal(b []byte)
func (WriteDefaultLinkPolicy) Opcode ¶
func (c WriteDefaultLinkPolicy) Opcode() int
type WriteInquiryMode ¶
type WriteInquiryMode struct {
InquiryMode uint8
}
Write Inquiry Mode (0x0045)
func (WriteInquiryMode) Len ¶
func (c WriteInquiryMode) Len() int
func (WriteInquiryMode) Marshal ¶
func (c WriteInquiryMode) Marshal(b []byte)
func (WriteInquiryMode) Opcode ¶
func (c WriteInquiryMode) Opcode() int
type WriteInquiryScanType ¶
type WriteInquiryScanType struct{ ScanType uint8 }
Write Inquiry Scan Type (0x0043)
func (WriteInquiryScanType) Len ¶
func (c WriteInquiryScanType) Len() int
func (WriteInquiryScanType) Marshal ¶
func (c WriteInquiryScanType) Marshal(b []byte)
func (WriteInquiryScanType) Opcode ¶
func (c WriteInquiryScanType) Opcode() int
type WriteLEHostSupported ¶
Write LE Host Supported (0x006D)
func (WriteLEHostSupported) Len ¶
func (c WriteLEHostSupported) Len() int
func (WriteLEHostSupported) Marshal ¶
func (c WriteLEHostSupported) Marshal(b []byte)
func (WriteLEHostSupported) Opcode ¶
func (c WriteLEHostSupported) Opcode() int
type WritePageScanType ¶
type WritePageScanType struct{ PageScanType uint8 }
Write Page Scan Type (0x0046)
func (WritePageScanType) Len ¶
func (c WritePageScanType) Len() int
func (WritePageScanType) Marshal ¶
func (c WritePageScanType) Marshal(b []byte)
func (WritePageScanType) Opcode ¶
func (c WritePageScanType) Opcode() int
type WritePageTimeout ¶
type WritePageTimeout struct{ PageTimeout uint16 }
Write Page Timeout (0x0018)
func (WritePageTimeout) Len ¶
func (c WritePageTimeout) Len() int
func (WritePageTimeout) Marshal ¶
func (c WritePageTimeout) Marshal(b []byte)
func (WritePageTimeout) Opcode ¶
func (c WritePageTimeout) Opcode() int
type WritePageTimeoutRP ¶
type WritePageTimeoutRP struct{}
type WriteSimplePairingMode ¶
type WriteSimplePairingMode struct{ SimplePairingMode uint8 }
Write Simple Pairing Mode (0x0056)
func (WriteSimplePairingMode) Len ¶
func (c WriteSimplePairingMode) Len() int
func (WriteSimplePairingMode) Marshal ¶
func (c WriteSimplePairingMode) Marshal(b []byte)
func (WriteSimplePairingMode) Opcode ¶
func (c WriteSimplePairingMode) Opcode() int
type WriteSimplePairingModeRP ¶
type WriteSimplePairingModeRP struct{}