func (c *LEReadAdvertisingChannelTxPower) Marshal(b []byte) error {
	return marshal(c, b)
}
Marshal serializes the command parameters into binary form.
package cmd
type Disconnect struct {
	ConnectionHandle uint16
	Reason           uint8
}
func (c *Disconnect) String() string {
	return "Disconnect (0x01|0x0006)"
}
func (c *Disconnect) OpCode() int { return 0x01<<10 | 0x0006 }
func (c *Disconnect) Len() int { return 3 }
func (c *Disconnect) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadRemoteVersionInformation struct {
	ConnectionHandle uint16
}
func (c *ReadRemoteVersionInformation) String() string {
	return "Read Remote Version Information (0x01|0x001D)"
}
func (c *ReadRemoteVersionInformation) OpCode() int { return 0x01<<10 | 0x001D }
func (c *ReadRemoteVersionInformation) Len() int { return 2 }
func (c *ReadRemoteVersionInformation) Marshal(b []byte) error {
	return marshal(c, b)
}
type WriteDefaultLinkPolicySettings struct {
	DefaultLinkPolicySettings uint16
}
func (c *WriteDefaultLinkPolicySettings) String() string {
	return "Write Default Link Policy Settings (0x02|0x000D)"
}
func (c *WriteDefaultLinkPolicySettings) OpCode() int { return 0x02<<10 | 0x000D }
func (c *WriteDefaultLinkPolicySettings) Len() int { return 2 }
func (c *WriteDefaultLinkPolicySettings) Marshal(b []byte) error {
	return marshal(c, b)
}
type WriteDefaultLinkPolicySettingsRP struct {
	Status uint8
}
func (c *WriteDefaultLinkPolicySettingsRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type SetEventMask struct {
	EventMask uint64
}
func (c *SetEventMask) String() string {
	return "Set Event Mask (0x03|0x0001)"
}
func (c *SetEventMask) OpCode() int { return 0x03<<10 | 0x0001 }
func (c *SetEventMask) Len() int { return 8 }
func (c *SetEventMask) Marshal(b []byte) error {
	return marshal(c, b)
}
type SetEventMaskRP struct {
	Status uint8
}
func (c *SetEventMaskRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type Reset struct {
}
func (c *Reset) String() string {
	return "Reset (0x03|0x003)"
}
func (c *Reset) OpCode() int { return 0x03<<10 | 0x003 }
func (c *Reset) Len() int { return 0 }
func (c *Reset) Marshal(b []byte) error {
	return marshal(c, b)
}
type ResetRP struct {
	Status uint8
}
func (c *ResetRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type WritePageTimeout struct {
	PageTimeout uint16
}
func (c *WritePageTimeout) String() string {
	return "Write Page Timeout (0x03|0x0018)"
}
func (c *WritePageTimeout) OpCode() int { return 0x03<<10 | 0x0018 }
func (c *WritePageTimeout) Len() int { return 2 }
func (c *WritePageTimeout) Marshal(b []byte) error {
	return marshal(c, b)
}
type WritePageTimeoutRP struct {
	Status uint8
}
func (c *WritePageTimeoutRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type WriteClassOfDevice struct {
	ClassOfDevice [3]byte
}
func (c *WriteClassOfDevice) String() string {
	return "Write Class Of Device (0x03|0x0024)"
}
func (c *WriteClassOfDevice) OpCode() int { return 0x03<<10 | 0x0024 }
func (c *WriteClassOfDevice) Len() int { return 3 }
func (c *WriteClassOfDevice) Marshal(b []byte) error {
	return marshal(c, b)
}
type WriteClassOfDeviceRP struct {
	Status uint8
}
func (c *WriteClassOfDeviceRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadTransmitPowerLevel struct {
	ConnectionHandle uint16
	Type             uint8
}
func (c *ReadTransmitPowerLevel) String() string {
	return "Read Transmit Power Level (0x03|0x002D)"
}
func (c *ReadTransmitPowerLevel) OpCode() int { return 0x03<<10 | 0x002D }
func (c *ReadTransmitPowerLevel) Len() int { return 3 }
func (c *ReadTransmitPowerLevel) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadTransmitPowerLevelRP struct {
	Status           uint8
	ConnectionHandle uint16
}
func (c *ReadTransmitPowerLevelRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type HostBufferSize struct {
	HostACLDataPacketLength            uint16
	HostSynchronousDataPacketLength    uint8
	HostTotalNumACLDataPackets         uint16
	HostTotalNumSynchronousDataPackets uint16
}
func (c *HostBufferSize) String() string {
	return "Host Buffer Size (0x03|0x0033)"
}
func (c *HostBufferSize) OpCode() int { return 0x03<<10 | 0x0033 }
func (c *HostBufferSize) Len() int { return 7 }
func (c *HostBufferSize) Marshal(b []byte) error {
	return marshal(c, b)
}
type HostBufferSizeRP struct {
	Status uint8
}
func (c *HostBufferSizeRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type HostNumberOfCompletedPackets struct {
	NumberOfHandles           uint8
	ConnectionHandle          []uint16
	HostNumOfCompletedPackets []uint16
}
func (c *HostNumberOfCompletedPackets) String() string {
	return "Host Number Of Completed Packets (0x03|0x0035)"
}
func (c *HostNumberOfCompletedPackets) OpCode() int { return 0x03<<10 | 0x0035 }
func (c *HostNumberOfCompletedPackets) Len() int { return -1 }
type SetEventMaskPage2 struct {
	EventMaskPage2 uint64
}
func (c *SetEventMaskPage2) String() string {
	return "Set Event Mask Page 2 (0x03|0x0063)"
}
func (c *SetEventMaskPage2) OpCode() int { return 0x03<<10 | 0x0063 }
func (c *SetEventMaskPage2) Len() int { return 8 }
func (c *SetEventMaskPage2) Marshal(b []byte) error {
	return marshal(c, b)
}
type SetEventMaskPage2RP struct {
	Status uint8
}
func (c *SetEventMaskPage2RP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type WriteLEHostSupport struct {
	LESupportedHost    uint8
	SimultaneousLEHost uint8
}
func (c *WriteLEHostSupport) String() string {
	return "Write LE Host Support (0x03|0x006D)"
}
func (c *WriteLEHostSupport) OpCode() int { return 0x03<<10 | 0x006D }
func (c *WriteLEHostSupport) Len() int { return 2 }
func (c *WriteLEHostSupport) Marshal(b []byte) error {
	return marshal(c, b)
}
type WriteLEHostSupportRP struct {
	Status uint8
}
func (c *WriteLEHostSupportRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadAuthenticatedPayloadTimeout struct {
	ConnectionHandle uint16
}
func (c *ReadAuthenticatedPayloadTimeout) String() string {
	return "Read Authenticated Payload Timeout (0x03|0x007B)"
}
func (c *ReadAuthenticatedPayloadTimeout) OpCode() int { return 0x03<<10 | 0x007B }
func (c *ReadAuthenticatedPayloadTimeout) Len() int { return 2 }
func (c *ReadAuthenticatedPayloadTimeout) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadAuthenticatedPayloadTimeoutRP struct {
	Status                      uint8
	ConnectionHandle            uint16
	AuthenticatedPayloadTimeout uint16
}
func (c *ReadAuthenticatedPayloadTimeoutRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type WriteAuthenticatedPayloadTimeout struct {
	ConnectionHandle            uint16
	AuthenticatedPayloadTimeout uint16
}
func (c *WriteAuthenticatedPayloadTimeout) String() string {
	return "Write Authenticated Payload Timeout (0x01|0x007C)"
}
func (c *WriteAuthenticatedPayloadTimeout) OpCode() int { return 0x01<<10 | 0x007C }
func (c *WriteAuthenticatedPayloadTimeout) Len() int { return 4 }
func (c *WriteAuthenticatedPayloadTimeout) Marshal(b []byte) error {
	return marshal(c, b)
}
type WriteAuthenticatedPayloadTimeoutRP struct {
	Status           uint8
	ConnectionHandle uint16
}
func (c *WriteAuthenticatedPayloadTimeoutRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadLocalVersionInformation struct {
}
func (c *ReadLocalVersionInformation) String() string {
	return "Read Local Version Information (0x04|0x0001)"
}
func (c *ReadLocalVersionInformation) OpCode() int { return 0x04<<10 | 0x0001 }
func (c *ReadLocalVersionInformation) Len() int { return 0 }
func (c *ReadLocalVersionInformation) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadLocalVersionInformationRP struct {
	Status           uint8
	HCIVersion       uint8
	HCIRevision      uint16
	LMPPAMVersion    uint8
	ManufacturerName uint16
	LMPPAMSubversion uint16
}
func (c *ReadLocalVersionInformationRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadLocalSupportedCommands struct {
}
func (c *ReadLocalSupportedCommands) String() string {
	return "Read Local Supported Commands (0x04|0x0002)"
}
func (c *ReadLocalSupportedCommands) OpCode() int { return 0x04<<10 | 0x0002 }
func (c *ReadLocalSupportedCommands) Len() int { return 0 }
func (c *ReadLocalSupportedCommands) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadLocalSupportedCommandsRP struct {
	Status     uint8
	Supporteds uint64
}
func (c *ReadLocalSupportedCommandsRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadLocalSupportedFeatures struct {
}
func (c *ReadLocalSupportedFeatures) String() string {
	return "Read Local Supported Features (0x04|0x0003)"
}
func (c *ReadLocalSupportedFeatures) OpCode() int { return 0x04<<10 | 0x0003 }
func (c *ReadLocalSupportedFeatures) Len() int { return 0 }
func (c *ReadLocalSupportedFeatures) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadLocalSupportedFeaturesRP struct {
	Status      uint8
	LMPFeatures uint64
}
func (c *ReadLocalSupportedFeaturesRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadBufferSize struct {
}
func (c *ReadBufferSize) String() string {
	return "Read Buffer Size (0x04|0x0005)"
}
func (c *ReadBufferSize) OpCode() int { return 0x04<<10 | 0x0005 }
func (c *ReadBufferSize) Len() int { return 0 }
func (c *ReadBufferSize) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadBufferSizeRP struct {
	Status                           uint8
	HCACLDataPacketLength            uint16
	HCSynchronousDataPacketLength    uint8
	HCTotalNumACLDataPackets         uint16
	HCTotalNumSynchronousDataPackets uint16
}
func (c *ReadBufferSizeRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadBDADDR struct {
}
func (c *ReadBDADDR) String() string {
	return "Read BD_ADDR (0x04|0x0009)"
}
func (c *ReadBDADDR) OpCode() int { return 0x04<<10 | 0x0009 }
func (c *ReadBDADDR) Len() int { return 0 }
func (c *ReadBDADDR) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadBDADDRRP struct {
	Status uint8
	BDADDR [6]byte
}
func (c *ReadBDADDRRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type ReadRSSI struct {
	Handle uint16
}
func (c *ReadRSSI) String() string {
	return "Read RSSI (0x05|0x0005)"
}
func (c *ReadRSSI) OpCode() int { return 0x05<<10 | 0x0005 }
func (c *ReadRSSI) Len() int { return 2 }
func (c *ReadRSSI) Marshal(b []byte) error {
	return marshal(c, b)
}
type ReadRSSIRP struct {
	Status           uint8
	ConnectionHandle uint16
	RSSI             int8
}
func (c *ReadRSSIRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LESetEventMask struct {
	LEEventMask uint64
}
func (c *LESetEventMask) String() string {
	return "LE Set Event Mask (0x08|0x0001)"
}
func (c *LESetEventMask) OpCode() int { return 0x08<<10 | 0x0001 }
func (c *LESetEventMask) Len() int { return 8 }
func (c *LESetEventMask) Marshal(b []byte) error {
	return marshal(c, b)
}
type LESetEventMaskRP struct {
	Status uint8
}
func (c *LESetEventMaskRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LEReadBufferSize struct {
}
func (c *LEReadBufferSize) String() string {
	return "LE Read Buffer Size (0x08|0x0002)"
}
func (c *LEReadBufferSize) OpCode() int { return 0x08<<10 | 0x0002 }
func (c *LEReadBufferSize) Len() int { return 0 }
func (c *LEReadBufferSize) Marshal(b []byte) error {
	return marshal(c, b)
}
type LEReadBufferSizeRP struct {
	Status                  uint8
	HCLEDataPacketLength    uint16
	HCTotalNumLEDataPackets uint8
}
func (c *LEReadBufferSizeRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LEReadLocalSupportedFeatures struct {
}
func (c *LEReadLocalSupportedFeatures) String() string {
	return "LE Read Local Supported Features (0x08|0x0003)"
}
func (c *LEReadLocalSupportedFeatures) OpCode() int { return 0x08<<10 | 0x0003 }
func (c *LEReadLocalSupportedFeatures) Len() int { return 0 }
func (c *LEReadLocalSupportedFeatures) Marshal(b []byte) error {
	return marshal(c, b)
}
type LEReadLocalSupportedFeaturesRP struct {
	Status     uint8
	LEFeatures uint64
}
func (c *LEReadLocalSupportedFeaturesRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LESetRandomAddress struct {
	RandomAddress [6]byte
}
func (c *LESetRandomAddress) String() string {
	return "LE Set Random Address (0x08|0x0005)"
}
func (c *LESetRandomAddress) OpCode() int { return 0x08<<10 | 0x0005 }
func (c *LESetRandomAddress) Len() int { return 6 }
func (c *LESetRandomAddress) Marshal(b []byte) error {
	return marshal(c, b)
}
type LESetRandomAddressRP struct {
	Status uint8
}
func (c *LESetRandomAddressRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LESetAdvertisingParameters struct {
	AdvertisingIntervalMin  uint16
	AdvertisingIntervalMax  uint16
	AdvertisingType         uint8
	OwnAddressType          uint8
	DirectAddressType       uint8
	DirectAddress           [6]byte
	AdvertisingChannelMap   uint8
	AdvertisingFilterPolicy uint8
}
func (c *LESetAdvertisingParameters) String() string {
	return "LE Set Advertising Parameters (0x08|0x0006)"
}
func (c *LESetAdvertisingParameters) OpCode() int { return 0x08<<10 | 0x0006 }
func (c *LESetAdvertisingParameters) Len() int { return 15 }
func (c *LESetAdvertisingParameters) Marshal(b []byte) error {
	return marshal(c, b)
}
type LESetAdvertisingParametersRP struct {
	Status uint8
}
func (c *LESetAdvertisingParametersRP) Unmarshal(b []byte) error {
	return unmarshal(c, b)
}
type LEReadAdvertisingChannelTxPower struct {
}
func (c *LEReadAdvertisingChannelTxPower) String() string {
	return "LE Read Advertising Channel Tx Power (0x08|0x0007)"
}
func (c *LEReadAdvertisingChannelTxPower) OpCode() int { return 0x08<<10 | 0x0007 }
func (c *LEReadAdvertisingChannelTxPower) Len() int { return 0 }