A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 116
LineInput()
Func.: Input one line from StdInput.
Syntax: int LineInput(char *buf, int maxlen);
Header: #include ”mmi100.h”
Description:
buf: The buffer to store the input data.
maxlen: (size of the buffer)-1.
Return Value: The input character number.
Example:
ReadInitPin()
Func.: Read the status of INIT* pin.
Syntax:
int ReadInitPin(void);
Header: #include ”mmi100.h”
Description:
Return: 0= Init* pin is floatting or connect to VCC.
Return: 1= Init* pin is connect to GND.
Example:
(stdio2.c)
#include <iview.h>
#include <mmi100.h>
void main()
{
int InitPin;
InitLib();
InitPin=ReadInitPin();
Print("Init Pin= %d\n\r",InitPin);
}