FCVG_CUR(3X) — NEWS-OS Programmer’s Manual
NAME
fcvg_cur_r, fcvg_cur_w, fcvg_cur_move, fcvg_cur_pos − functions for cursor plane of the FCVG device
SYNOPSIS
#include <fcvg.h>
intfcvg_cur_r(cur)
unsigned char cur[FCVG_MAX_CUR_X][FCVG_MAX_CUR_Y];
intfcvg_cur_w(cur)
unsigned char cur[FCVG_MAX_CUR_X][FCVG_MAX_CUR_Y];
intfcvg_cur_move(x, y)
intx, y;
intfcvg_cur_pos(x, y)
intx, y;
DESCRIPTION
These functions operate on the cursor plane of the FCVG device.
fcvg_cur_r
Reads a contents of the cursor plane to the array cur.
fcvg_cur_w
Writes a content of the array cur to the cursor plane. The coordinates of the cursor planes are expressed as follows:
Upper leftcur[0][0]
Upper rightcur[FCVG_MAX_CUR_X − 1][0]
Bottom leftcur[0][FCVG_MAX_CUR_Y − 1]
Bottom rightcur[FCVG_MAX_CUR_X − 1][FCVG_MAX_CUR_Y − 1]
fcvg_cur_move
Moves the cursor so that the upper left position of the cursor plane (64 x 64) meets the pixel specified with x and y.
fcvg_cur_pos
Sets the current upper left coordinate of the cursor plane to x and y.
The ranges of cur, x and y are shown below:
0 ≤ cur[][] ≤ 15
−64 ≤ x ≤ 1023
−64 ≤ y ≤ 511
Values outside of this range cannot be specified.
RESTRICTIONS
fcvg_cur_move moves a cursor with SCRSTP bit of status register. Therefore, when fcvg_cur_move is used continuously, a cursor may not be moved smoothly. When it is so, it is recommended to call fcvg_cur_move with some intervals.
FILES
/usr/src/sony/lib/libfcvg/∗ director 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), fcvg_cur_clr_w(3X)
Chapter 8 "Full-Color Video Graphics Interface Board" in NEWS-OS Release 4.0 Programmer’s Guide.
NEWS-OSRelease 4.2.1R