- All Implemented Interfaces:
Serializable,Comparable<RS422ByteCommands>,Constable
This file contains the mappings fo the various VCR commands to the corresponding byte arrays.
- Since:
- 2016-01-28T14:44:00
- Author:
- Brian Schlining
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is a special command supplied by sony that returns the best source of the timecode (VITC at slwo speeds, LTC at high speeds)Get Timer-1 timecode commandGet Timer-2 timecode commandGet vertical timecode commandGet vertical Userbits timecode commandPause - this was passed to me from Danelle Cline for the JVC VCR.Play commandpreset time code commandget cue up status commandRecord commandRelease tape commandRewind commandShuttle forward command.Shuttle reverse command.Seek time code command.Stop commandRequest the type of VCR (i.e. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Retrive the byte array used to execute a particular commandstatic RS422ByteCommandsReturns the enum constant of this class with the specified name.static RS422ByteCommands[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Request the type of VCR (i.e. Device) -
DEVICE_TYPE_REQUEST
-
EJECT_TAPE
-
FAST_FWD
-
GET_CUEUP_STATUS
-
GET_LTIMECODE
-
GET_LUBTIMECODE
-
GET_STATUS
-
GET_TIMECODE
This is a special command supplied by sony that returns the best source of the timecode (VITC at slwo speeds, LTC at high speeds) -
GET_TIMECODE1
Get Timer-1 timecode command -
GET_TIMECODE2
Get Timer-2 timecode command -
GET_VTIMECODE
Get vertical timecode command -
GET_VUBTIMECODE
Get vertical Userbits timecode command -
LOCAL_DISABLE
-
LOCAL_ENABLE
-
PAUSE
Pause - this was passed to me from Danelle Cline for the JVC VCR. Not sure if it works with Sony's. Not yet sure how to resume. -
PLAY_FWD
Play command -
PRESET_TIMECODE
preset time code command -
PRESET_USERBITS
get cue up status command -
RECORD
Record command -
RELEASE_TAPE
Release tape command -
REWIND
Rewind command -
SHUTTLE_FWD
Shuttle forward command. Last byte should be modified to provide the shuttle speed (byte value between 0 (stopped) and 255 (very fast)) -
SHUTTLE_REV
Shuttle reverse command. Last byte should be modified to provide the shuttle speed (byte value between 0 (stopped) and 255 (very fast)) -
SONY_SEEK_TIMECODE
Seek time code command. Last four bytes need to be modified to specify the timecode to seek to. Refer to the VCR documentation for the format of the timecode bytes. -
STOP
Stop command
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getBytes
public byte[] getBytes()Retrive the byte array used to execute a particular command- Returns:
- A copy of the byte array representing the command. Feel free to munge away at this array as it won't effect the source. An extra byte is tacked on the end in order to store a checksum. (e.g. rewind will be returned as {0x20, 0x20, 0x00}). You still have to do the checksum calculation yourself since some commands contain user specified bytes.
-
getDescription
-