s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 122
![no-image](/images/no-image-200.jpg)
s5u1c33000c
Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
1.S5U1C33000C.pdf
(548 pages)
- Current page: 122 of 548
- Download datasheet (4Mb)
CHAPTER 8: ANSI LIBRARY
8.4 Lower-level Functions
The following three functions (read, write, and _exit) are the lower-level functions called by a library function.
Since these functions depend on hardware, they are not provided in the library. If these functions are desired,
define them in the user program.
For an example of a C source file that defines these functions, refer to sys.c in the sample\ansilib\ directory.
8.4.1 "read" Function
Contents of read function
Definition of input buffer
Precautions on using a simulated I/O
106
Format:
Argument:
Functionality:
Returned value: Number of bytes actually read from the input buffer
Library functions that call the read function:
Format:
Buffer contents: The size of the input data (1 to max. 64) is stored at the beginning of the buffer
When using the debugger's simulated I/O, define in the read function the global label "READ_FLASH" that
is required for the debugger to update the input buffer, then create the function so that new data will be read
into the input buffer at that position. (For details about the simulated I/O function, refer to the chapter
where the debugger is discussed.)
int read(int fd, char *buf, int nbytes);
int fd;
char *buf;
int nbytes; Number of bytes transferred
This function reads up to nbytes of data from the user-defined input buffer, and stores it in
the buffer indicated by buf.
If the input buffer is empty (EOF) or nbytes = 0, 0 is returned.
If an error occurs, -1 is returned.
Direct call: fread, getc, _doscan (_doscan is a scanf-series internal function)
Indirect call: fgetc, fgets, getchar, gets (calls getc)
unsigned char READ_BUF[65]; (Variable name is arbitrary; size is fixed to 65 bytes)
unsigned char READ_EOF;
(READ_BUF[0]). 0 denotes EOF.
The input data is stored in READ_BUF[1], and the following locations.
READ_EOF stores the status that indicates whether EOF is reached.
File descriptor denoting input
When called from a library function, 0 (stdin) is passed.
Pointer to the buffer that stores input data
scanf, fscanf, sscanf (calls _doscan)
EPSON
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL
Related parts for s5u1c33000c
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![s5u1-rc](/images/no-image3.png)
Part Number:
Description:
S5u1 Pin Diode Switch Single Pole, Five Throw Absorptive
Manufacturer:
Aeroflex Circuit Technology
Datasheet:
![MSK844](/images/no-image3.png)
Part Number:
Description:
Optical Devicepbs-prism For Blue
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![MSK955](/images/no-image3.png)
Part Number:
Description:
Optical Device Ir-cut Filter
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![MSK114](/images/no-image3.png)
Part Number:
Description:
Optical Device
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D10605](/images/no-image3.png)
Part Number:
Description:
S1d15000 Series Lcd Driver With Ram
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D12200](/images/no-image3.png)
Part Number:
Description:
S1d12000 Series Lcd Driver Ic Technical Manual Technical Manual
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13521](/images/no-image3.png)
Part Number:
Description:
S1d13521 Epd Controller
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13710](/images/no-image3.png)
Part Number:
Description:
S1d13710 Mobile Graphics Engine
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13711](/images/no-image3.png)
Part Number:
Description:
S1d13711 Mobile Graphics Engine
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D15715](/images/no-image3.png)
Part Number:
Description:
Liquid Crystal Display =lcd Driver
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13700F01](/images/no-image3.png)
Part Number:
Description:
Embedded Memory Graphics Lcd Controller
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13705](/images/no-image3.png)
Part Number:
Description:
S1d13705 Embedded Memory Lcd Controller
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13503](/images/no-image3.png)
Part Number:
Description:
S1d13503 Graphics Lcd Controller
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1D13700F02](/images/no-image3.png)
Part Number:
Description:
Embedded Memory Graphics Lcd Controller
Manufacturer:
Epson Electronics America, Inc.
Datasheet:
![S1K50000](/images/no-image3.png)
Part Number:
Description:
Design Guide S1k50000 Series
Manufacturer:
Epson Electronics America, Inc.
Datasheet: