Versions in this module Expand all Collapse all v1 v1.0.2 Sep 12, 2023 v1.0.1 Aug 17, 2023 Changes in this version + type Cmd struct + func NewCmd(d io.Writer) *Cmd + func (c *Cmd) HandleComplete(b []byte) error + func (c *Cmd) HandleStatus(b []byte) error + func (c *Cmd) Send(cp CmdParam) ([]byte, error) + func (c *Cmd) SendAndCheckResp(cp CmdParam, exp []byte) error + type CmdParam interface + Len func() int + Marshal func([]byte) + Opcode func() int + type Disconnect struct + ConnectionHandle uint16 + Reason uint8 + func (c Disconnect) Len() int + func (c Disconnect) Marshal(b []byte) + func (c Disconnect) Opcode() int + type DisconnectRP struct + type Flush struct + ConnectionHandle uint16 + func (c Flush) Len() int + func (c Flush) Marshal(b []byte) + func (c Flush) Opcode() int + type HostBufferSize struct + HostACLDataPacketLength uint16 + HostSynchronousDataPacketLength uint8 + HostTotalNumACLDataPackets uint16 + HostTotalNumSynchronousDataPackets uint16 + func (c HostBufferSize) Len() int + func (c HostBufferSize) Marshal(b []byte) + func (c HostBufferSize) Opcode() int + type HostBufferSizeRP struct + Status uint8 + type LEAddDeviceToWhiteList struct + Address [6]byte + AddressType uint8 + func (c LEAddDeviceToWhiteList) Len() int + func (c LEAddDeviceToWhiteList) Marshal(b []byte) + func (c LEAddDeviceToWhiteList) Opcode() int + type LEAddDeviceToWhiteListRP struct + Status uint8 + type LEClearWhiteList struct + func (c LEClearWhiteList) Len() int + func (c LEClearWhiteList) Marshal(b []byte) + func (c LEClearWhiteList) Opcode() int + type LEClearWhiteListRP struct + Status uint8 + type LEConnUpdate struct + ConnIntervalMax uint16 + ConnIntervalMin uint16 + ConnLatency uint16 + ConnectionHandle uint16 + MaximumCELength uint16 + MinimumCELength uint16 + SupervisionTimeout uint16 + func (c LEConnUpdate) Len() int + func (c LEConnUpdate) Marshal(b []byte) + func (c LEConnUpdate) Opcode() int + type LEConnUpdateRP struct + type LECreateConn struct + ConnIntervalMax uint16 + ConnIntervalMin uint16 + ConnLatency uint16 + InitiatorFilterPolicy uint8 + LEScanInterval uint16 + LEScanWindow uint16 + MaximumCELength uint16 + MinimumCELength uint16 + OwnAddressType uint8 + PeerAddress [6]byte + PeerAddressType uint8 + SupervisionTimeout uint16 + func (c LECreateConn) Len() int + func (c LECreateConn) Marshal(b []byte) + func (c LECreateConn) Opcode() int + type LECreateConnCancel struct + func (c LECreateConnCancel) Len() int + func (c LECreateConnCancel) Marshal(b []byte) + func (c LECreateConnCancel) Opcode() int + type LECreateConnCancelRP struct + Status uint8 + type LECreateConnRP struct + type LEEncrypt struct + Key [16]byte + PlaintextData [16]byte + func (c LEEncrypt) Len() int + func (c LEEncrypt) Marshal(b []byte) + func (c LEEncrypt) Opcode() int + type LEEncryptRP struct + EncryptedData [16]byte + Stauts uint8 + type LELTKNegReply struct + ConnectionHandle uint16 + func (c LELTKNegReply) Len() int + func (c LELTKNegReply) Marshal(b []byte) + func (c LELTKNegReply) Opcode() int + type LELTKNegReplyRP struct + ConnectionHandle uint16 + Status uint8 + type LELTKReply struct + ConnectionHandle uint16 + LongTermKey [16]byte + func (c LELTKReply) Len() int + func (c LELTKReply) Marshal(b []byte) + func (c LELTKReply) Opcode() int + type LELTKReplyRP struct + ConnectionHandle uint16 + Status uint8 + type LERand struct + func (c LERand) Len() int + func (c LERand) Marshal(b []byte) + func (c LERand) Opcode() int + type LERandRP struct + RandomNumber uint64 + Status uint8 + type LEReadAdvertisingChannelTxPower struct + func (c LEReadAdvertisingChannelTxPower) Len() int + func (c LEReadAdvertisingChannelTxPower) Marshal(b []byte) + func (c LEReadAdvertisingChannelTxPower) Opcode() int + type LEReadAdvertisingChannelTxPowerRP struct + Status uint8 + TransmitPowerLevel uint8 + type LEReadBufferSize struct + func (c LEReadBufferSize) Len() int + func (c LEReadBufferSize) Marshal(b []byte) + func (c LEReadBufferSize) Opcode() int + type LEReadBufferSizeRP struct + HCLEACLDataPacketLength uint16 + HCTotalNumLEACLDataPackets uint8 + Status uint8 + type LEReadChannelMap struct + ConnectionHandle uint16 + func (c LEReadChannelMap) Len() int + func (c LEReadChannelMap) Marshal(b []byte) + func (c LEReadChannelMap) Opcode() int + type LEReadChannelMapRP struct + ChannelMap [5]byte + ConnectionHandle uint16 + Status uint8 + type LEReadLocalSupportedFeatures struct + func (c LEReadLocalSupportedFeatures) Len() int + func (c LEReadLocalSupportedFeatures) Marshal(b []byte) + func (c LEReadLocalSupportedFeatures) Opcode() int + type LEReadLocalSupportedFeaturesRP struct + LEFeatures uint64 + Status uint8 + type LEReadRemoteUsedFeatures struct + ConnectionHandle uint16 + func (c LEReadRemoteUsedFeatures) Len() int + func (c LEReadRemoteUsedFeatures) Marshal(b []byte) + func (c LEReadRemoteUsedFeatures) Opcode() int + type LEReadRemoteUsedFeaturesRP struct + type LEReadSupportedStates struct + func (c LEReadSupportedStates) Len() int + func (c LEReadSupportedStates) Marshal(b []byte) + func (c LEReadSupportedStates) Opcode() int + type LEReadSupportedStatesRP struct + LEStates [8]byte + Status uint8 + type LEReadWhiteListSize struct + func (c LEReadWhiteListSize) Len() int + func (c LEReadWhiteListSize) Marshal(b []byte) + func (c LEReadWhiteListSize) Opcode() int + type LEReadWhiteListSizeRP struct + Status uint8 + WhiteListSize uint8 + type LEReceiverTest struct + RxChannel uint8 + func (c LEReceiverTest) Len() int + func (c LEReceiverTest) Marshal(b []byte) + func (c LEReceiverTest) Opcode() int + type LEReceiverTestRP struct + Status uint8 + type LERemoteConnectionParameterNegReply struct + ConnectionHandle uint16 + Reason uint8 + func (c LERemoteConnectionParameterNegReply) Len() int + func (c LERemoteConnectionParameterNegReply) Marshal(b []byte) + func (c LERemoteConnectionParameterNegReply) Opcode() int + type LERemoteConnectionParameterNegReplyRP struct + ConnectionHandle uint16 + Status uint8 + type LERemoteConnectionParameterReply struct + ConnectionHandle uint16 + IntervalMax uint16 + IntervalMin uint16 + Latency uint16 + MaximumCELength uint16 + MinimumCELength uint16 + Timeout uint16 + func (c LERemoteConnectionParameterReply) Len() int + func (c LERemoteConnectionParameterReply) Marshal(b []byte) + func (c LERemoteConnectionParameterReply) Opcode() int + type LERemoteConnectionParameterReplyRP struct + ConnectionHandle uint16 + Status uint8 + type LERemoveDeviceFromWhiteList struct + Address [6]byte + AddressType uint8 + func (c LERemoveDeviceFromWhiteList) Len() int + func (c LERemoveDeviceFromWhiteList) Marshal(b []byte) + func (c LERemoveDeviceFromWhiteList) Opcode() int + type LERemoveDeviceFromWhiteListRP struct + Status uint8 + type LESetAdvertiseEnable struct + AdvertisingEnable uint8 + func (c LESetAdvertiseEnable) Len() int + func (c LESetAdvertiseEnable) Marshal(b []byte) + func (c LESetAdvertiseEnable) Opcode() int + type LESetAdvertiseEnableRP struct + Status uint8 + type LESetAdvertisingData struct + AdvertisingData [31]byte + AdvertisingDataLength uint8 + func (c LESetAdvertisingData) Len() int + func (c LESetAdvertisingData) Marshal(b []byte) + func (c LESetAdvertisingData) Opcode() int + type LESetAdvertisingDataRP struct + Status uint8 + type LESetAdvertisingParameters struct + AdvertisingChannelMap uint8 + AdvertisingFilterPolicy uint8 + AdvertisingIntervalMax uint16 + AdvertisingIntervalMin uint16 + AdvertisingType uint8 + DirectAddress [6]byte + DirectAddressType uint8 + OwnAddressType uint8 + func (c LESetAdvertisingParameters) Len() int + func (c LESetAdvertisingParameters) Marshal(b []byte) + func (c LESetAdvertisingParameters) Opcode() int + type LESetAdvertisingParametersRP struct + Status uint8 + type LESetEventMask struct + LEEventMask uint64 + func (c LESetEventMask) Len() int + func (c LESetEventMask) Marshal(b []byte) + func (c LESetEventMask) Opcode() int + type LESetEventMaskRP struct + Status uint8 + type LESetHostChannelClassification struct + ChannelMap [5]byte + func (c LESetHostChannelClassification) Len() int + func (c LESetHostChannelClassification) Marshal(b []byte) + func (c LESetHostChannelClassification) Opcode() int + type LESetHostChannelClassificationRP struct + Status uint8 + type LESetRandomAddress struct + RandomAddress [6]byte + func (c LESetRandomAddress) Len() int + func (c LESetRandomAddress) Marshal(b []byte) + func (c LESetRandomAddress) Opcode() int + type LESetRandomAddressRP struct + Status uint8 + type LESetScanEnable struct + FilterDuplicates uint8 + LEScanEnable uint8 + func (c LESetScanEnable) Len() int + func (c LESetScanEnable) Marshal(b []byte) + func (c LESetScanEnable) Opcode() int + type LESetScanEnableRP struct + Status uint8 + type LESetScanParameters struct + LEScanInterval uint16 + LEScanType uint8 + LEScanWindow uint16 + OwnAddressType uint8 + ScanningFilterPolicy uint8 + func (c LESetScanParameters) Len() int + func (c LESetScanParameters) Marshal(b []byte) + func (c LESetScanParameters) Opcode() int + type LESetScanParametersRP struct + Status uint8 + type LESetScanResponseData struct + ScanResponseData [31]byte + ScanResponseDataLength uint8 + func (c LESetScanResponseData) Len() int + func (c LESetScanResponseData) Marshal(b []byte) + func (c LESetScanResponseData) Opcode() int + type LESetScanResponseDataRP struct + Status uint8 + type LEStartEncryption struct + ConnectionHandle uint16 + EncryptedDiversifier uint16 + LongTermKey [16]byte + RandomNumber uint64 + func (c LEStartEncryption) Len() int + func (c LEStartEncryption) Marshal(b []byte) + func (c LEStartEncryption) Opcode() int + type LEStartEncryptionRP struct + type LETestEnd struct + func (c LETestEnd) Len() int + func (c LETestEnd) Marshal(b []byte) + func (c LETestEnd) Opcode() int + type LETestEndRP struct + NumberOfPackets uint16 + Status uint8 + type LETransmitterTest struct + LengthOfTestData uint8 + PacketPayload uint8 + TxChannel uint8 + func (c LETransmitterTest) Len() int + func (c LETransmitterTest) Marshal(b []byte) + func (c LETransmitterTest) Opcode() int + type LETransmitterTestRP struct + Status uint8 + type Reset struct + func (c Reset) Len() int + func (c Reset) Marshal(b []byte) + func (c Reset) Opcode() int + type ResetRP struct + Status uint8 + type SetEventFltRP struct + Status uint8 + type SetEventMask struct + EventMask uint64 + func (c SetEventMask) Len() int + func (c SetEventMask) Marshal(b []byte) + func (c SetEventMask) Opcode() int + type SetEventMaskPage2 struct + EventMaskPage2 uint64 + func (c SetEventMaskPage2) Len() int + func (c SetEventMaskPage2) Marshal(b []byte) + func (c SetEventMaskPage2) Opcode() int + type SetEventMaskPage2RP struct + Status uint8 + type SetEventMaskRP struct + Status uint8 + type WriteClassOfDevRP struct + type WriteClassOfDevice struct + ClassOfDevice [3]byte + func (c WriteClassOfDevice) Len() int + func (c WriteClassOfDevice) Marshal(b []byte) + func (c WriteClassOfDevice) Opcode() int + type WriteDefaultLinkPolicy struct + DefaultLinkPolicySettings uint16 + func (c WriteDefaultLinkPolicy) Len() int + func (c WriteDefaultLinkPolicy) Marshal(b []byte) + func (c WriteDefaultLinkPolicy) Opcode() int + type WriteDefaultLinkPolicyRP struct + Status uint8 + type WriteInquiryMode struct + InquiryMode uint8 + func (c WriteInquiryMode) Len() int + func (c WriteInquiryMode) Marshal(b []byte) + func (c WriteInquiryMode) Opcode() int + type WriteInquiryModeRP struct + Status uint8 + type WriteInquiryScanType struct + ScanType uint8 + func (c WriteInquiryScanType) Len() int + func (c WriteInquiryScanType) Marshal(b []byte) + func (c WriteInquiryScanType) Opcode() int + type WriteInquiryScanTypeRP struct + Status uint8 + type WriteLEHostSupported struct + LESupportedHost uint8 + SimultaneousLEHost uint8 + func (c WriteLEHostSupported) Len() int + func (c WriteLEHostSupported) Marshal(b []byte) + func (c WriteLEHostSupported) Opcode() int + type WriteLeHostSupportedRP struct + Status uint8 + type WritePageScanType struct + PageScanType uint8 + func (c WritePageScanType) Len() int + func (c WritePageScanType) Marshal(b []byte) + func (c WritePageScanType) Opcode() int + type WritePageScanTypeRP struct + Status uint8 + type WritePageTimeout struct + PageTimeout uint16 + func (c WritePageTimeout) Len() int + func (c WritePageTimeout) Marshal(b []byte) + func (c WritePageTimeout) Opcode() int + type WritePageTimeoutRP struct + type WriteSimplePairingMode struct + SimplePairingMode uint8 + func (c WriteSimplePairingMode) Len() int + func (c WriteSimplePairingMode) Marshal(b []byte) + func (c WriteSimplePairingMode) Opcode() int + type WriteSimplePairingModeRP struct