Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fcvg_init(3X) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

libfcvg(3X)

FCVG_INIT(3X)  —  NEWS-OS Programmer’s Manual

NAME

fcvg_init, fcvg_cur_clr_w, fcvg_clut_default_w − initialization of the FCVG device

SYNOPSIS

#include <fcvg.h>

int fcvg_cur_clr_w()

int fcvg_clut_default_w()

int fcvg_init(flag)
int flag;

DESCRIPTION

These routines initialize the FCVG device. 

fcvg_cur_clr_w
Writes 0 (transparent) to the whole cursor plane of the FCVG device.

fcvg_clut_default_w
Writes the following values in the color look-up table.

Color number Color R G B





#1 Black 0x0 0x0 0x0
#2 Red 0xf 0x0 0x0
#3 Green 0x0 0xf 0x0
#4 Blue 0x0 0x0 0xf
#5 Yellow 0xf 0xf 0x0
#6 Cyan 0x0 0xf 0xf
#7 Magenta 0xf 0xf 0xf
#8−#15 White 0xf 0xf 0xf

fcvg_init
Performs the initialization specified with flag. Values which can be specified to flag are shown below:

FCVG_VIDEO Initialization of video plane (R, G, B)
Sets the whole memory area (1024 x 512) of the video plane to 0.

FCVG_CHAR Initialization of the character plane
Set the whole memory area of the character plane to 0 (transparent).

FCVG_SUBCHAR Initialization of the sub-character plane
Sets the whole memory area of the sub-character plane to 0 (transparent).

FCVG_CTL Initialization of the control plane
Sets the whole memory area of the control plane to 0 (memory display).

FCVG_CUR Initialization of the cursor plane
Sets the whole memory area (64 x 64) of the cursor plane to 0 (transparent).

FCVG_CLUT Initialization of the color look-up table
fcvg_clut_default_w is executed. 

FCVG_REG Initialization of the status register
Initialization is performed while EE bit of the status register is 1 and other bits are 0.

Two or more flags can be specified as shown below:

fcvg_init(FCVG_VIDEO | FCVG_CHAR)

FILES

/usr/src/sony/lib/libfcvg/∗ directory for the source code of the library

/usr/sony/demo/NWB224 directory for a sample program

/usr/sony/lib/libfcvg.a FCVG library

/usr/sony/include/fcvg.h header file

/usr/sony/include/fcvg_lib.h header file

/usr/sony/include/fcvg_reg.h header file

SEE ALSO

libfcvg(3X)
Chapter 8 "Full-Color Video Graphics Interface Board" in NEWS-OS Release 4.0 Programmer’s Guide. 

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026