59
//--------------------------------------------------------------------------------------------------------
#de
fi
ne F75111_INTERNAL_ADDR
0x9C // OnBoard F75111 Chipset
#de
fi
ne F75111_EXTERNAL_ADDR
0x6E // External F75111 Chipset
//--------------------------------------------------------------------------------------------------------
#de
fi
ne F75111_CONFIGURATION
0x03 // Con
fi
gure GPIO13 to WDT2 Function
//--------------------------------------------------------------------------------------------------------
#de
fi
ne GPIO1X_CONTROL_MODE
0x10 // Select Output Mode or Input Mode
#de
fi
ne GPIO2X_CONTROL_MODE
0x20 // Select GPIO2X Output Mode or Input Mode
#de
fi
ne GPIO3X_CONTROL_MODE
0x40 // Select GPIO3X Output Mode or Input Mode
//--------------------------------------------------------------------------------------------------------
#de
fi
ne GPIO1X_INPUT_DATA
0x12 // GPIO1X Input
#de
fi
ne GPIO3X_INPUT_DATA
0x42 // GPIO3X Input
//--------------------------------------------------------------------------------------------------------
#de
fi
ne GPIO2X_OUTPUT_DATA
0x21 // GPIO2X Output
//--------------------------------------------------------------------------------------------------------
#de
fi
ne GPIO2X_OUTPUT_DRIVING
0x2B // Select GPIO2X Output Mode or Input Mode
//--------------------------------------------------------------------------------------------------------
#de
fi
ne WDT_TIMER_RANGE
0x37 // 0-255 (secord or minute program by WDT_UNIT)
//--------------------------------------------------------------------------------------------------------
#de
fi
ne
WDT_CONFIGURATION
0x36 // Con
fi
gure WDT Function
#de
fi
ne
WDT_TIMEOUT_FLAG
0x40 // When watchdog timeout.this bit will be set to 1.
#de
fi
ne
WDT_ENABLE
0x20 // Enable watchdog timer
#de
fi
ne
WDT_PULSE
0x10 // Con
fi
gure WDT output mode
// 0:Level Mode
// 1:Pulse Mode
#de
fi
ne
WDT_UNIT
0x08
// Watchdog unit select.
// 0:Select second.
// 1:Select minute.
#de
fi
ne
WDT_LEVEL
0x04
// When select level output mode:
// 0:Level low
// 1:Level high
#de
fi
ne
WDT_PSWIDTH_1MS
0x00
// When select Pulse mode: 1 ms.
#de
fi
ne
WDT_PSWIDTH_20MS
0x01
// When select Pulse mode: 20 ms.
#de
fi
ne
WDT_PSWIDTH_100MS
0x02
// When select Pulse mode: 100 ms.
#de
fi
ne
WDT_PSWIDTH_4000MS
0x03
// When select Pulse mode: 4 s.
//--------------------------------------------------------------------------------------------------------
typedef struct F75111_Address
{
BYTE bAddress;
}F75111_Address;
F75111_Address m_F75111;
bool F75111_Init();
BYTE F75111_GetDigitalInput
();
void F75111_SetDigitalOutput(BYTE
byteValue);
BYTE F75111_GetWDTMode();
void F75111_SetWDTMode(BYTE
dwvalue);
void
F75111_SetWDTEnable (BYTE byteTimer);
void
F75111_SetWDTDisable ();
Summary of Contents for CI170A
Page 8: ...3 2 1 3 1 2 3 Photo 1 Insert Unplug...
Page 20: ...15 2 3 Dimension CI170A C...