FCVG_CHAR(3X) — NEWS-OS Programmer’s Manual
NAME
fcvg_char_box_w, fcvg_char_pixel_r, fcvg_char_pixel_w, fcvg_char_scan_r, fcvg_char_scan_w − functions for character plane of the FCVG device
SYNOPSIS
#include <fcvg.h>
int fcvg_char_box_w(x, y, width, height, col_num)
int x, y, width, height;
unsigned char col_num;
int fcvg_char_pixel_r(x, y)
int x, y;
int fcvg_char_pixel_w(x, y, col_num)
int x, y;
unsigned char col_num;
int fcvg_char_scan_r(x, y, n, col_nums)
int x, y, n;
unsigned char ∗col_nums;
int fcvg_char_scan_w(x, y, n, col_nums)
int x, y, n;
unsigned char ∗col_nums;
DESCRIPTION
These functions operate on a character plane of the FCVG device.
fcvg_char_box_w
Paints the rectangular area whose upper left corner is at x and y, of the width pixel and height pixel with a single color number of col_num.
fcvg_char_pixel_r
Reads the pixel of the character plane specified with x and y. The color number of the pixel is returned.
fcvg_char_pixel_w
Writes the value of the color number specified with col_num to the pixel of the character plane specified with x and y.
fcvg_char_scan_r
Reads n pixels data to col_nums from the pixel specified with x and y horizontally (in +x direction). col_nums must be bigger than n.
fcvg_char_scan_w
Writes n pixels data stored in col_nums from the pixel specified with x and y horizontally (in +x direction). col_nums must be bigger than n.
The ranges of col_num and col_nums are shown below:
0 ≤ col_num
col_nums[] ≤ 7
BUG
When the position of the pixel specified is out of the memory area, the operation is not guaranteed.
FILES
/usr/src/sony/lib/libfcvg/∗ directory for source code of 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