A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 179
*/
void SetPioDir(unsigned pin,int dir);
void SetPio(int pin,int mode);
int GetPio(int pin);
/*
input:
pin : 0~31.
mode: 0 or 1
dir:
0: set the PIO pin to normal mode
1: set the PIO pin to input with pull high(for some pin is pull low.)
2: set the PIO pin to output mode
3: set the PIO pin to input without pull high/low.
output for GetPio():
0: for input mode: the input is low.
for output mode: current output is low.
non zero: for input mode: the input is high.
for output mode: current output is high.
*/
/* 2004/02/26 add function usr burst mode to read date/time from RTC chip(DS-1302) */
typedef struct {
int year;
char month,day,weekday;
char hour,minute,sec;
}TIME_DATE;
void GetTimeDate(TIME_DATE *timedate);
int SetTimeDate(TIME_DATE *timedate);
/*
when call SetTimeDate(), need set the right year,month,day and the function
will auto set the weekday.
*/
extern const unsigned char far * const SystemSerialNumber;
int GetSerialNumber(char *Serial);
/*