signal

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Overview

Package signal exposes the interface between the VCS and the television implementation.

Index

Constants

View Source
const NoSignal = -1

Index value to indicate that the signal is invalid

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorSignal

type ColorSignal uint8

ColorSignal represents the signal that is sent from the VCS to the television.

const VideoBlack ColorSignal = 0xff

VideoBlack is the ColorSignal value that indicates no pixel is being output.

type SignalAttributes

type SignalAttributes struct {
	Index         int
	VSync         bool
	VBlank        bool
	CBurst        bool
	HSync         bool
	AudioUpdate   bool
	AudioChannel0 uint8
	AudioChannel1 uint8
	Color         ColorSignal
}

SignalAttributes represents the data sent to the television

When reset the Index field should be set to NoSignal and the Color field should be set to VideoBlack

func (SignalAttributes) String

func (a SignalAttributes) String() string

Jump to

Keyboard shortcuts

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