Documentation ¶
Index ¶
- Constants
- type Block
- type BlockInfo
- type Control
- type Drive
- func (drive *Drive) Ear() byte
- func (drive *Drive) EarHigh() bool
- func (drive *Drive) EarLow() bool
- func (drive *Drive) Eject()
- func (drive *Drive) HasTape() bool
- func (drive *Drive) Init()
- func (drive *Drive) Insert(tape Tape)
- func (drive *Drive) IsPlaying() bool
- func (drive *Drive) Play()
- func (drive *Drive) Playback()
- func (drive *Drive) Reset()
- func (drive *Drive) Rewind()
- func (drive *Drive) Stop()
- type Info
- type Tape
Constants ¶
View Source
const ( LevelLow = 0 LevelHigh = 0x80 LevelMask = 0x80 )
EAR level constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockInfo ¶
type BlockInfo struct { Type byte // Block type Index int // Block index Offset int // Block offset Length int // Block length }
BlockInfo tape block information
type Control ¶
type Control struct { Playing bool // Tape drive is playing Ear byte // Tape EAR level State int // Playback state Tstate int64 // Last clock Tstate Timeout int // Timeout of current state Block Block // Current tape block NumBlocks int // Total number of blocks on tape BlockIndex int // Current block index BlockPos int // Curren block pos }
Control struct for tape playback
func (*Control) EndOfBlock ¶
EndOfBlock position at end of block data
Click to show internal directories.
Click to hide internal directories.