Rev.1.00 2007.11.1
REC10B0002-0100
3
Table of Contents
Table of Contents ............................................................... 3
1. Introduction................................................................... 5
2. Driver ....................................................................... 6
2.1 Overview.................................................................. 6
2.2 Driver Features ............................................................. 6
2.3 Serial Interface Driver........................................................ 7
2.4 Timer Driver ............................................................... 8
2.4.1 Timer Mode ............................................................ 8
2.4.2 Event Counter Mode ..................................................... 8
2.4.3 Pulse Width Modulation Mode (PWM Mode).................................. 8
2.4.4 Pulse Period Measurement Mode ........................................... 8
2.4.5 Pulse Width Measurement Mode............................................ 8
2.5 I/O Port Driver ............................................................. 9
2.6 External Interrupt Driver..................................................... 10
2.7 A/D Converter Driver ....................................................... 11
3. Standard Types ............................................................... 12
4. Library Reference............................................................. 13
4.1 API List by Peripheral Facility ................................................ 13
4.2 Description of Each API ..................................................... 15
4.2.1 Serial I/O ........................................................... 16
__BasicOpenSerialDriver................................................... 16
__BasicCloseSerialDriver................................................... 17
__BasicSetSerialFormat .................................................... 18
__BasicStartSerialReceiving................................................. 21
__BasicStartSerialSending .................................................. 22
__BasicReceivingStatusRead ................................................ 23
__BasicSendingStatusRead.................................................. 24
__BasicStopSerialReceiving................................................. 25
__BasicStopSerialSending .................................................. 26
__OpenSerialDriver ....................................................... 27
__CloseSerialDriver ....................................................... 28
__ConfigSerialDriverNotify ................................................. 29
__SetSerialFormat......................................................... 31
__SetSerialInterrupt ....................................................... 32
__StartSerialReceiving ..................................................... 34
__StartSerialSending....................................................... 35
__StopSerialReceiving ..................................................... 36
__StopSerialSending....................................................... 37
__PollingSerialReceiving ................................................... 38
__PollingSerialSending..................................................... 39
4.2.2 Timer ................................................................ 40
__CreateTimer ........................................................... 40
__EnableTimer ........................................................... 42