yx5300

package module
v0.0.0-...-bd2fb50 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

yx5300

yx5300

Documentation

Index

Constants

View Source
const (
	CMD_NEXT_SONG         = 0x01
	CMD_PREV_SONG         = 0x02
	CMD_PLAY_W_INDEX      = 0x03
	CMD_VOLUME_UP         = 0x04
	CMD_VOLUME_DOWN       = 0x05
	CMD_SET_VOLUME        = 0x06
	CMD_SINGLE_CYCLE_PLAY = 0x08
	CMD_SEL_DEV           = 0x09
	CMD_SLEEP_MODE        = 0x0A
	CMD_WAKE_UP           = 0x0B
	CMD_RESET             = 0x0C
	CMD_PLAY              = 0x0D
	CMD_PAUSE             = 0x0E
	CMD_PLAY_FOLDER_FILE  = 0x0F
	CMD_STOP_PLAY         = 0x16
	CMD_FOLDER_CYCLE      = 0x17
	CMD_SHUFFLE_PLAY      = 0x18
	CMD_SET_SINGLE_CYCLE  = 0x19
	CMD_SET_DAC           = 0x1A
	CMD_PLAY_W_VOL        = 0x22
	CMD_QUERY_STATUS      = 0x42
	CMD_QUERY_FLDR_TRACKS = 0x4e
	CMD_QUERY_TOT_TRACKS  = 0x48
	CMD_QUERY_FLDR_COUNT  = 0x4f

	DAC_ON           = 0x00
	DAC_OFF          = 0x01
	SINGLE_CYCLE_ON  = 0x00
	SINGLE_CYCLE_OFF = 0x01
	DEV_TF           = 0x02

	RESP_MEDIA_REMOVED     = 0x3b
	RESP_MEDIA_INSERTED    = 0x3a
	RESP_TF_TRACK_FINISHED = 0x3d
	RESP_ERROR             = 0x40
	RESP_ACK               = 0x41
	RESP_FLDR_TRACK_COUNT  = 0x4e
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	ResponseChan chan Response
	// contains filtered or unexported fields
}

func MakeSerialConnection

func MakeSerialConnection(devname string, debug bool) (*Connection, error)

func (*Connection) WriteCommand

func (c *Connection) WriteCommand(cmd, arg1, arg2 byte)

type Response

type Response struct {
	Code  uint
	Param uint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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