dispremote

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lingos struct {
	ACK                        `id:"0x00"`
	GetCurrentEQProfileIndex   `id:"0x01"`
	RetCurrentEQProfileIndex   `id:"0x02"`
	SetCurrentEQProfileIndex   `id:"0x03"`
	GetNumEQProfiles           `id:"0x04"`
	RetNumEQProfiles           `id:"0x05"`
	GetIndexedEQProfileName    `id:"0x06"`
	RetIndexedEQProfileName    `id:"0x07"`
	SetRemoteEventNotification `id:"0x08"`
	RemoteEventNotification    `id:"0x09"`
	GetRemoteEventStatus       `id:"0x0A"`
	RetRemoteEventStatus       `id:"0x0B"`
	GetiPodStateInfo           `id:"0x0C"`
	RetiPodStateInfo           `id:"0x0D"`
	SetiPodStateInfo           `id:"0x0E"`
	GetPlayStatus              `id:"0x0F"`
	RetPlayStatus              `id:"0x10"`
	SetCurrentPlayingTrack     `id:"0x11"`
	GetIndexedPlayingTrackInfo `id:"0x12"`
	RetIndexedPlayingTrackInfo `id:"0x13"`
	GetNumPlayingTracks        `id:"0x14"`
	RetNumPlayingTracks        `id:"0x15"`
	GetArtworkFormats          `id:"0x16"`
	RetArtworkFormats          `id:"0x17"`
	GetTrackArtworkData        `id:"0x18"`
	RetTrackArtworkData        `id:"0x19"`
	GetPowerBatteryState       `id:"0x1A"`
	RetPowerBatteryState       `id:"0x1B"`
	GetSoundCheckState         `id:"0x1C"`
	RetSoundCheckState         `id:"0x1D"`
	SetSoundCheckState         `id:"0x1E"`
	GetTrackArtworkTimes       `id:"0x1F"`
	RetTrackArtworkTimes       `id:"0x20"`
}

Functions

func HandleDispRemote

func HandleDispRemote(req *ipod.Command, tr ipod.CommandWriter, dev DeviceDispRemote) error

Types

type ACK

type ACK struct {
	Status ACKStatus
	CmdID  uint8
}

type ACKStatus

type ACKStatus uint8
const (
	ACKStatusSuccess ACKStatus = 0x00
	ACKStatusPending ACKStatus = 0x06
)

type ArtworkFormat

type ArtworkFormat struct {
	FormatID    uint16
	PixelFormat uint8
	ImageWidth  uint16
	ImageHeight uint16
}

type DeviceDispRemote

type DeviceDispRemote interface {
}

type GetArtworkFormats

type GetArtworkFormats struct {
}

type GetCurrentEQProfileIndex

type GetCurrentEQProfileIndex struct {
}

type GetIndexedEQProfileName

type GetIndexedEQProfileName struct {
	EQProfileIndex uint32
}

type GetIndexedPlayingTrackInfo

type GetIndexedPlayingTrackInfo struct {
	InfoType     TrackInfoType
	TrackIndex   uint32
	ChapterIndex uint16
}

type GetNumEQProfiles

type GetNumEQProfiles struct {
}

type GetNumPlayingTracks

type GetNumPlayingTracks struct {
}

type GetPlayStatus

type GetPlayStatus struct {
}

type GetPowerBatteryState

type GetPowerBatteryState struct {
}

type GetRemoteEventStatus

type GetRemoteEventStatus struct {
}

type GetSoundCheckState

type GetSoundCheckState struct {
}

type GetTrackArtworkData

type GetTrackArtworkData struct {
	TrackIndex uint32
	FormatID   uint16
	TimeOffset uint32
}

type GetTrackArtworkTimes

type GetTrackArtworkTimes struct {
	TrackIndex   uint32
	FormatID     uint16
	ArtworkIndex uint16
	ArtworkCount uint16
}

type GetiPodStateInfo

type GetiPodStateInfo struct {
	InfoType InfoType
}

type InfoAudiobookSpeed

type InfoAudiobookSpeed struct {
	PlaybackSpeed uint8
}

type InfoBacklight

type InfoBacklight struct {
	BacklightLevel uint8
}

type InfoChapterIndex

type InfoChapterIndex struct {
	TrackIndex   uint32
	ChapterCount uint16
	ChapterIndex uint16
}

type InfoDateTime

type InfoDateTime struct {
	Year   uint16
	Month  uint8
	Day    uint8
	Hour   uint8
	Minute uint8
}

type InfoEqualizer

type InfoEqualizer struct {
	EqIndex uint32
}

type InfoHoldSwitch

type InfoHoldSwitch struct {
	HoldSwitchState uint8
}

type InfoPlayStatus

type InfoPlayStatus struct {
	PlayStatus PlayStatusType
}

type InfoPower

type InfoPower struct {
	PowerState   uint8
	BatteryLevel uint8
}

type InfoRepeat

type InfoRepeat struct {
	RepeatState uint8
}

type InfoShuffle

type InfoShuffle struct {
	ShuffleState uint8
}

type InfoSoundCheck

type InfoSoundCheck struct {
	SoundCheckState uint8
}

type InfoTrackIndex

type InfoTrackIndex struct {
	TrackIndex uint32
}

type InfoTrackPositionMs

type InfoTrackPositionMs struct {
	TrackPositionMs uint32
}

type InfoTrackPositionSec

type InfoTrackPositionSec struct {
	TrackPositionSec uint16
}

type InfoType

type InfoType uint8
const (
	InfoTypeTrackPositionMs InfoType = iota
	InfoTypeTrackIndex
	InfoTypeChapterIndex
	InfoTypePlayStatus
	InfoTypeVolume
	InfoTypePower
	InfoTypeEqualizer
	InfoTypeShuffle
	InfoTypeRepeat
	InfoTypeDateTime

	InfoTypeBacklight
	InfoTypeHoldSwitch
	InfoTypeSoundCheck
	InfoTypeAudiobookSpeed
	InfoTypeTrackPositionSec
	InfoTypeVolume2
)

func (InfoType) String

func (i InfoType) String() string

type InfoVolume

type InfoVolume struct {
	MuteState     uint8
	UIVolumeLevel uint8
}

type InfoVolume2

type InfoVolume2 struct {
	MuteState           uint8
	UIVolumeLevel       uint8
	AbsoluteVolumeLevel uint8
}

type PlayStatusType

type PlayStatusType uint8
const (
	PlayStatusStopped PlayStatusType = iota
	PlayStatusPlaying
	PlayStatusPaused
	PlayStatusFF
	PlayStatusREW
	PlayStatusEndFFREW
)

func (PlayStatusType) String

func (i PlayStatusType) String() string

type RemoteEventNotification

type RemoteEventNotification struct {
	EventNum  byte
	EventData []byte
}

type RetArtworkFormats

type RetArtworkFormats struct {
	Formats []ArtworkFormat
}

type RetCurrentEQProfileIndex

type RetCurrentEQProfileIndex struct {
	CurrentEQIndex uint32
}

type RetIndexedEQProfileName

type RetIndexedEQProfileName struct {
	EQProfileName []byte
}

type RetIndexedPlayingTrackInfo

type RetIndexedPlayingTrackInfo struct {
	InfoType TrackInfoType
	InfoData interface{}
}

func (*RetIndexedPlayingTrackInfo) MarshalBinary

func (t *RetIndexedPlayingTrackInfo) MarshalBinary() ([]byte, error)

func (*RetIndexedPlayingTrackInfo) UnmarshalBinary

func (t *RetIndexedPlayingTrackInfo) UnmarshalBinary(data []byte) error

type RetNumEQProfiles

type RetNumEQProfiles struct {
	NumEQProfiles uint32
}

type RetNumPlayingTracks

type RetNumPlayingTracks struct {
	NumPlayTracks uint32
}

type RetPlayStatus

type RetPlayStatus struct {
	PlayState   byte
	TrackIndex  uint32
	TrackLength uint32
	TrackPos    uint32
}

type RetPowerBatteryState

type RetPowerBatteryState struct {
	PowerState   byte
	BatteryLevel uint8
}

type RetRemoteEventStatus

type RetRemoteEventStatus struct {
	EventStatus uint32
}

type RetSoundCheckState

type RetSoundCheckState struct {
	Enabled bool
}

type RetTrackArtworkData

type RetTrackArtworkData struct {
}

type RetTrackArtworkTimes

type RetTrackArtworkTimes struct {
	TimeOffset []uint32
}

type RetiPodStateInfo

type RetiPodStateInfo struct {
	InfoType InfoType
	InfoData interface{}
}

func (*RetiPodStateInfo) MarshalBinary

func (t *RetiPodStateInfo) MarshalBinary() ([]byte, error)

func (*RetiPodStateInfo) UnmarshalBinary

func (t *RetiPodStateInfo) UnmarshalBinary(data []byte) error

type SetCurrentEQProfileIndex

type SetCurrentEQProfileIndex struct {
	CurrentEQIndex uint32
	RestoreOnExit  bool
}

type SetCurrentPlayingTrack

type SetCurrentPlayingTrack struct {
	TrackIndex uint32
}

type SetRemoteEventNotification

type SetRemoteEventNotification struct {
	EventMask uint32
}

type SetSoundCheckState

type SetSoundCheckState struct {
	Enabled       bool
	RestoreOnExit bool
}

type SetiPodStateInfo

type SetiPodStateInfo struct {
	InfoType byte
	InfoData byte // todo
}

type TrackInfoAlbum

type TrackInfoAlbum struct {
	Name []byte
}

type TrackInfoArtist

type TrackInfoArtist struct {
	Name []byte
}

type TrackInfoArtworkCount

type TrackInfoArtworkCount struct {
	None byte // empty = 0x08
}

type TrackInfoCaps

type TrackInfoCaps struct {
	Caps         uint32
	TrackTotalMs uint32
	ChapterCount uint16
}

type TrackInfoChapterTimeName

type TrackInfoChapterTimeName struct {
	ChapterTime uint32
	ChapterName []byte
}

type TrackInfoComposer

type TrackInfoComposer struct {
	Name []byte
}

type TrackInfoGenre

type TrackInfoGenre struct {
	Name []byte
}

type TrackInfoLyrics

type TrackInfoLyrics struct {
	Flags       uint8
	PacketIndex uint16
	Lyrics      []byte
}

type TrackInfoTrack

type TrackInfoTrack struct {
	Title []byte
}

type TrackInfoType

type TrackInfoType uint8
const (
	TrackInfoTypeCaps TrackInfoType = iota
	TrackInfoTypeChapterTimeName
	TrackInfoTypeArtist
	TrackInfoTypeAlbum
	TrackInfoTypeGenre
	TrackInfoTypeTrack
	TrackInfoTypeComposer
	TrackInfoTypeLyrics
	TrackInfoTypeArtworkCount
)

func (TrackInfoType) String

func (i TrackInfoType) String() string

Jump to

Keyboard shortcuts

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