Documentation
¶
Index ¶
- Variables
- func HandleGeneral(req *ipod.Command, tr ipod.CommandWriter, dev DeviceGeneral) error
- type ACK
- type ACKDataDropped
- type ACKPending
- type ACKStatus
- type AccCapBit
- type AccEndIDPSStatus
- type AccInfoType
- type AccessoryStatusNotification
- type AckDevAuthenticationInfo
- type AckDevAuthenticationStatus
- type AckiPodAuthenticationInfo
- type AckiPodAuthenticationStatus
- type CancelCommand
- type CloseDataSession
- type DevACK
- type DevAuthInfoStatus
- type DevAuthStatus
- type DevDataTransfer
- type DeviceGeneral
- type EndIDPS
- type EnterRemoteUIMode
- type ExitRemoteUIMode
- type FIDAccCapsToken
- type FIDAccInfoToken
- type FIDBundleSeedIDPrefToken
- type FIDEAProtocolMetadataToken
- type FIDEAProtocolToken
- type FIDIdentifyToken
- type FIDMicrophoneCapsToken
- type FIDScreenInfoToken
- type FIDTokenValue
- type FIDTokenValueACK
- type FIDiPodPreferenceToken
- type GetAccessoryInfo
- type GetAccessoryInfo2
- type GetAccessoryInfo3
- type GetDevAuthenticationInfo
- type GetDevAuthenticationSignatureV1
- type GetDevAuthenticationSignatureV2
- type GetEventNotification
- type GetNowPlayingFocusApp
- type GetSupportedEventNotification
- type GetUIMode
- type GetiPodAuthenticationInfo
- type GetiPodAuthenticationSignature
- type GetiPodOptions
- type GetiPodOptionsForLingo
- type GetiPodPreferences
- type IDPSStatus
- type IDPSStatusEnum
- type IPodDataTransfer
- type IPodNotification
- type IdentifyDeviceLingoes
- type LingoBit
- type LingoMask
- type NotifyiPodStateChange
- type OpenDataSessionForProtocol
- type RequestApplicationLaunch
- type RequestIdentify
- type RequestLingoProtocolVersion
- type RequestRemoteUIMode
- type RequestTransportMaxPayloadSize
- type RequestiPodModelNum
- type RequestiPodName
- type RequestiPodSerialNum
- type RequestiPodSoftwareVersion
- type RetAccStatusNotification
- type RetAccessoryInfo
- type RetDevAuthenticationInfo
- type RetDevAuthenticationSignature
- type RetEventNotification
- type RetFIDTokenValueACKs
- type RetNowPlayingFocusApp
- type RetSupportedEventNotification
- type RetUIMode
- type RetiPodAuthenticationInfo
- type RetiPodAuthenticationSignature
- type RetiPodOptions
- type RetiPodOptionsForLingo
- type RetiPodPreferences
- type ReturnLingoProtocolVersion
- type ReturnRemoteUIMode
- type ReturnTransportMaxPayloadSize
- type ReturniPodModelNum
- type ReturniPodName
- type ReturniPodSerialNum
- type ReturniPodSoftwareVersion
- type SetAccStatusNotification
- type SetAvailableCurrent
- type SetEventNotification
- type SetFIDTokenValues
- type SetUIMode
- type SetiPodPreferences
- type StartIDPS
- type TokenID
- type UIMode
Constants ¶
This section is empty.
Variables ¶
View Source
var AccCaps = []AccCapBit{ AccCapAnalogLineOut, AccCapAnalogLineIn, AccCapAnalogVideoOut, AccCapUSBAudio, AccCapAppComm, AccCapCheckVolume, }
View Source
var Lingos struct { RequestIdentify `id:"0x00"` ACK `id:"0x02"` ACKPending `id:"0x02"` ACKDataDropped `id:"0x02"` RequestRemoteUIMode `id:"0x03"` ReturnRemoteUIMode `id:"0x04"` EnterRemoteUIMode `id:"0x05"` ExitRemoteUIMode `id:"0x06"` RequestiPodName `id:"0x07"` ReturniPodName `id:"0x08"` RequestiPodSoftwareVersion `id:"0x09"` ReturniPodSoftwareVersion `id:"0x0A"` RequestiPodSerialNum `id:"0x0B"` ReturniPodSerialNum `id:"0x0C"` RequestiPodModelNum `id:"0x0D"` ReturniPodModelNum `id:"0x0E"` RequestLingoProtocolVersion `id:"0x0F"` ReturnLingoProtocolVersion `id:"0x10"` RequestTransportMaxPayloadSize `id:"0x11"` ReturnTransportMaxPayloadSize `id:"0x12"` IdentifyDeviceLingoes `id:"0x13"` GetDevAuthenticationInfo `id:"0x14"` //RetDevAuthenticationInfoV1 `id:"0x15"` //RetDevAuthenticationInfoV2 `id:"0x15"` RetDevAuthenticationInfo `id:"0x15"` AckDevAuthenticationInfo `id:"0x16"` GetDevAuthenticationSignatureV1 `id:"0x17"` GetDevAuthenticationSignatureV2 `id:"0x17"` //RetDevAuthenticationSignatureV1 `id:"0x18"` //RetDevAuthenticationSignatureV2 `id:"0x18"` RetDevAuthenticationSignature `id:"0x18"` AckDevAuthenticationStatus `id:"0x19"` GetiPodAuthenticationInfo `id:"0x1A"` RetiPodAuthenticationInfo `id:"0x1B"` AckiPodAuthenticationInfo `id:"0x1C"` GetiPodAuthenticationSignature `id:"0x1D"` RetiPodAuthenticationSignature `id:"0x1E"` AckiPodAuthenticationStatus `id:"0x1F"` NotifyiPodStateChange `id:"0x23"` GetiPodOptions `id:"0x24"` RetiPodOptions `id:"0x25"` GetAccessoryInfo `id:"0x27"` RetAccessoryInfo `id:"0x28"` GetiPodPreferences `id:"0x29"` RetiPodPreferences `id:"0x2A"` SetiPodPreferences `id:"0x2B"` GetUIMode `id:"0x35"` RetUIMode `id:"0x36"` SetUIMode `id:"0x37"` StartIDPS `id:"0x38"` SetFIDTokenValues `id:"0x39"` RetFIDTokenValueACKs `id:"0x3A"` EndIDPS `id:"0x3B"` IDPSStatus `id:"0x3C"` OpenDataSessionForProtocol `id:"0x3F"` CloseDataSession `id:"0x40"` DevACK `id:"0x41"` DevDataTransfer `id:"0x42"` IPodDataTransfer `id:"0x43"` SetAccStatusNotification `id:"0x46"` RetAccStatusNotification `id:"0x47"` AccessoryStatusNotification `id:"0x48"` SetEventNotification `id:"0x49"` IPodNotification `id:"0x4A"` GetiPodOptionsForLingo `id:"0x4B"` RetiPodOptionsForLingo `id:"0x4C"` GetEventNotification `id:"0x4D"` RetEventNotification `id:"0x4E"` GetSupportedEventNotification `id:"0x4F"` CancelCommand `id:"0x50"` RetSupportedEventNotification `id:"0x51"` SetAvailableCurrent `id:"0x54"` RequestApplicationLaunch `id:"0x64"` GetNowPlayingFocusApp `id:"0x65"` RetNowPlayingFocusApp `id:"0x66"` }
Functions ¶
func HandleGeneral ¶
func HandleGeneral(req *ipod.Command, tr ipod.CommandWriter, dev DeviceGeneral) error
Types ¶
type ACKDataDropped ¶
type ACKPending ¶
type AccEndIDPSStatus ¶
type AccEndIDPSStatus uint8
const ( AccEndIDPSStatusContinue AccEndIDPSStatus = 0x00 AccEndIDPSStatusReset AccEndIDPSStatus = 0x01 AccEndIDPSStatusAbandon AccEndIDPSStatus = 0x02 AccEndIDPSStatusNewLink AccEndIDPSStatus = 0x03 )
type AccInfoType ¶
type AccInfoType uint8
const ( AccInfoName AccInfoType = 0x01 AccInfoFirmware AccInfoType = 0x04 AccInfoHardware AccInfoType = 0x05 AccInfoMfr AccInfoType = 0x06 AccInfoModel AccInfoType = 0x07 AccInfoSerial AccInfoType = 0x08 AccInfoMaxPayload AccInfoType = 0x09 )
func (AccInfoType) String ¶
func (i AccInfoType) String() string
type AckDevAuthenticationInfo ¶
type AckDevAuthenticationInfo struct {
Status DevAuthInfoStatus
}
type AckDevAuthenticationStatus ¶
type AckDevAuthenticationStatus struct {
Status DevAuthStatus
}
type AckiPodAuthenticationInfo ¶
type AckiPodAuthenticationInfo struct {
Status byte
}
type AckiPodAuthenticationStatus ¶
type AckiPodAuthenticationStatus struct {
Status byte
}
type CancelCommand ¶
type CloseDataSession ¶
type CloseDataSession struct {
SessionID uint16
}
type DevAuthInfoStatus ¶
type DevAuthInfoStatus uint8
const (
DevAuthInfoStatusSupported DevAuthInfoStatus = 0x00
)
type DevAuthStatus ¶
type DevAuthStatus uint8
const ( DevAuthStatusPassed DevAuthStatus = 0x00 DevAuthStatusFailed DevAuthStatus = 0x01 )
type DevDataTransfer ¶
type DeviceGeneral ¶
type DeviceGeneral interface { UIMode() UIMode SetUIMode(UIMode) Name() string SoftwareVersion() (major, minor, rev uint8) SerialNum() string LingoProtocolVersion(lingo uint8) (major, minor uint8) LingoOptions(ling uint8) uint64 PrefSettingID(classID uint8) uint8 SetPrefSettingID(classID, settingID uint8, restoreOnExit bool) StartIDPS() EndIDPS(status AccEndIDPSStatus) SetToken(token FIDTokenValue) error AccAuthCert(cert []byte) SetEventNotificationMask(mask uint64) EventNotificationMask() uint64 SupportedEventNotificationMask() uint64 CancelCommand(lingo uint8, cmd uint16, transaction uint16) MaxPayload() uint16 }
type EndIDPS ¶
type EndIDPS struct {
AccEndIDPSStatus AccEndIDPSStatus
}
type EnterRemoteUIMode ¶
type EnterRemoteUIMode struct{}
type ExitRemoteUIMode ¶
type ExitRemoteUIMode struct{}
type FIDAccCapsToken ¶
type FIDAccCapsToken struct {
AccCapsBitmask uint64
}
func (*FIDAccCapsToken) UnmarshalBinary ¶
func (t *FIDAccCapsToken) UnmarshalBinary(data []byte) error
type FIDAccInfoToken ¶
type FIDAccInfoToken struct { AccInfoType byte Value interface{} }
func (*FIDAccInfoToken) UnmarshalBinary ¶
func (t *FIDAccInfoToken) UnmarshalBinary(data []byte) error
type FIDBundleSeedIDPrefToken ¶
type FIDBundleSeedIDPrefToken struct {
BundleSeedIDString [11]byte
}
type FIDEAProtocolToken ¶
func (*FIDEAProtocolToken) UnmarshalBinary ¶
func (t *FIDEAProtocolToken) UnmarshalBinary(data []byte) error
type FIDIdentifyToken ¶
func (*FIDIdentifyToken) MarshalBinary ¶
func (t *FIDIdentifyToken) MarshalBinary() ([]byte, error)
func (*FIDIdentifyToken) UnmarshalBinary ¶
func (t *FIDIdentifyToken) UnmarshalBinary(data []byte) error
type FIDMicrophoneCapsToken ¶
type FIDMicrophoneCapsToken struct {
MicCapsBitmask uint32
}
type FIDScreenInfoToken ¶
type FIDTokenValue ¶
type FIDTokenValue struct { ID TokenID Token interface{} }
func (*FIDTokenValue) MarshalBinary ¶
func (v *FIDTokenValue) MarshalBinary() ([]byte, error)
func (*FIDTokenValue) UnmarshalBinary ¶
func (v *FIDTokenValue) UnmarshalBinary(data []byte) error
type FIDTokenValueACK ¶
type FIDTokenValueACK struct { ID TokenID ACK interface{} }
func (*FIDTokenValueACK) MarshalBinary ¶
func (v *FIDTokenValueACK) MarshalBinary() ([]byte, error)
func (*FIDTokenValueACK) UnmarshalBinary ¶
func (v *FIDTokenValueACK) UnmarshalBinary(data []byte) error
type FIDiPodPreferenceToken ¶
type GetAccessoryInfo ¶
type GetAccessoryInfo struct {
InfoType byte
}
type GetAccessoryInfo2 ¶
type GetAccessoryInfo3 ¶
type GetDevAuthenticationInfo ¶
type GetDevAuthenticationInfo struct{}
type GetEventNotification ¶
type GetEventNotification struct{}
type GetNowPlayingFocusApp ¶
type GetNowPlayingFocusApp struct{}
type GetSupportedEventNotification ¶
type GetSupportedEventNotification struct{}
type GetiPodAuthenticationInfo ¶
type GetiPodAuthenticationInfo struct{}
type GetiPodOptions ¶
type GetiPodOptions struct{}
type GetiPodOptionsForLingo ¶
type GetiPodOptionsForLingo struct {
LingoID byte
}
type GetiPodPreferences ¶
type GetiPodPreferences struct {
PrefClassID byte
}
type IDPSStatus ¶
type IDPSStatus struct {
Status IDPSStatusEnum
}
type IDPSStatusEnum ¶
type IDPSStatusEnum uint8
const ( IDPSStatusOK IDPSStatusEnum = 0x00 IDPSStatusTimeLimitNotExceeded IDPSStatusEnum = 0x04 IDPSStatusWillNotAccept IDPSStatusEnum = 0x06 )
type IPodDataTransfer ¶
type IPodNotification ¶
type IdentifyDeviceLingoes ¶
type LingoBit ¶
type LingoBit uint32
const ( LingoGeneralBit LingoBit = 1 << ipod.LingoGeneralID LingoSimpleRemoteBit LingoBit = 1 << ipod.LingoSimpleRemoteID LingoDisplayRemoteBit LingoBit = 1 << ipod.LingoDisplayRemoteID LingoExtRemoteBit LingoBit = 1 << ipod.LingoExtRemoteID LingoUSBHostBit LingoBit = 1 << ipod.LingoUSBHostID LingoRFTunerBit LingoBit = 1 << ipod.LingoRFTunerID LingoEqBit LingoBit = 1 << ipod.LingoEqID LingoSportsBit LingoBit = 1 << ipod.LingoSportsID LingoDigitalAudioBit LingoBit = 1 << ipod.LingoDigitalAudioID LingoStorageBit LingoBit = 1 << ipod.LingoStorageID )
type NotifyiPodStateChange ¶
type NotifyiPodStateChange struct {
StateChange byte
}
type RequestApplicationLaunch ¶
func (*RequestApplicationLaunch) UnmarshalBinary ¶
func (s *RequestApplicationLaunch) UnmarshalBinary(data []byte) error
type RequestIdentify ¶
type RequestIdentify struct{}
type RequestLingoProtocolVersion ¶
type RequestLingoProtocolVersion struct {
Lingo byte
}
type RequestRemoteUIMode ¶
type RequestRemoteUIMode struct{}
type RequestTransportMaxPayloadSize ¶
type RequestTransportMaxPayloadSize struct{}
type RequestiPodModelNum ¶
type RequestiPodModelNum struct { }
type RequestiPodName ¶
type RequestiPodName struct{}
type RequestiPodSerialNum ¶
type RequestiPodSerialNum struct { }
type RequestiPodSoftwareVersion ¶
type RequestiPodSoftwareVersion struct{}
type RetAccStatusNotification ¶
type RetAccStatusNotification struct {
StatusMask uint32
}
type RetAccessoryInfo ¶
type RetDevAuthenticationInfo ¶
type RetDevAuthenticationInfo struct { Major byte Minor byte CertCurrentSection byte CertMaxSection byte CertData []byte }
func (*RetDevAuthenticationInfo) UnmarshalBinary ¶
func (s *RetDevAuthenticationInfo) UnmarshalBinary(r []byte) error
type RetDevAuthenticationSignature ¶
type RetDevAuthenticationSignature struct {
Signature []byte
}
func (*RetDevAuthenticationSignature) UnmarshalBinary ¶
func (s *RetDevAuthenticationSignature) UnmarshalBinary(r []byte) error
type RetEventNotification ¶
type RetEventNotification struct {
EventMask uint64
}
type RetFIDTokenValueACKs ¶
type RetFIDTokenValueACKs struct {
FIDTokenValueACKs []FIDTokenValueACK
}
func (RetFIDTokenValueACKs) MarshalBinary ¶
func (s RetFIDTokenValueACKs) MarshalBinary() ([]byte, error)
func (*RetFIDTokenValueACKs) UnmarshalBinary ¶
func (s *RetFIDTokenValueACKs) UnmarshalBinary(data []byte) error
type RetNowPlayingFocusApp ¶
type RetNowPlayingFocusApp struct {
AppID []byte
}
type RetSupportedEventNotification ¶
type RetSupportedEventNotification struct {
EventMask uint64
}
type RetiPodAuthenticationSignature ¶
type RetiPodAuthenticationSignature struct {
Signature [20]byte
}
type RetiPodOptions ¶
type RetiPodOptions struct {
Options uint64
}
type RetiPodOptionsForLingo ¶
type RetiPodPreferences ¶
type ReturnRemoteUIMode ¶
type ReturnRemoteUIMode struct {
Mode byte
}
type ReturnTransportMaxPayloadSize ¶
type ReturnTransportMaxPayloadSize struct {
MaxPayload uint16
}
type ReturniPodModelNum ¶
func (ReturniPodModelNum) MarshalBinary ¶
func (s ReturniPodModelNum) MarshalBinary() ([]byte, error)
func (*ReturniPodModelNum) UnmarshalBinary ¶
func (s *ReturniPodModelNum) UnmarshalBinary(data []byte) error
type ReturniPodName ¶
type ReturniPodName struct {
Name []byte
}
func (ReturniPodName) MarshalBinary ¶
func (s ReturniPodName) MarshalBinary() ([]byte, error)
func (*ReturniPodName) UnmarshalBinary ¶
func (s *ReturniPodName) UnmarshalBinary(data []byte) error
type ReturniPodSerialNum ¶
type ReturniPodSerialNum struct {
Serial []byte
}
func (ReturniPodSerialNum) MarshalBinary ¶
func (s ReturniPodSerialNum) MarshalBinary() ([]byte, error)
func (*ReturniPodSerialNum) UnmarshalBinary ¶
func (s *ReturniPodSerialNum) UnmarshalBinary(data []byte) error
type SetAccStatusNotification ¶
type SetAccStatusNotification struct {
StatusMask uint32
}
type SetAvailableCurrent ¶
type SetAvailableCurrent struct {
CurrentLimit uint16
}
type SetEventNotification ¶
type SetEventNotification struct {
EventMask uint64
}
type SetFIDTokenValues ¶
type SetFIDTokenValues struct {
FIDTokenValues []FIDTokenValue
}
func (*SetFIDTokenValues) MarshalBinary ¶
func (s *SetFIDTokenValues) MarshalBinary() ([]byte, error)
func (*SetFIDTokenValues) UnmarshalBinary ¶
func (s *SetFIDTokenValues) UnmarshalBinary(data []byte) error
type SetiPodPreferences ¶
Click to show internal directories.
Click to hide internal directories.