User`s manual

2.17. 8-bit Timer Driver ............................................................................................................................. 2-14
2.18. Compare Match Timer Driver .......................................................................................................... 2-15
2.19. Real-time Clock Driver ..................................................................................................................... 2-16
2.20. Watchdog Timer Driver .................................................................................................................... 2-17
2.21. Independent Watchdog Timer Driver ............................................................................................... 2-18
2.22. Serial Communication Interface Driver ............................................................................................ 2-19
2.23. CRC Calculator Driver ..................................................................................................................... 2-20
2.24. I²C Bus Interface Driver ................................................................................................................... 2-21
2.25. Serial Peripheral Interface Driver .................................................................................................... 2-22
2.26. 12-bit Analog to Digital Converter Driver ......................................................................................... 2-23
2.27. 10-bit Analog to Digital Converter Driver ......................................................................................... 2-24
2.28. 10-bit Digital to Analog Converter Driver ......................................................................................... 2-25
3. Types and definitions ................................................................................................................................ 3-1
3.1. Data types.......................................................................................................................................... 3-1
3.2. General definitions ............................................................................................................................. 3-1
3.2.1. PDL_NO_FUNC ......................................................................................................................... 3-1
3.2.2. PDL_NO_PTR ........................................................................................................................... 3-1
3.2.3. PDL_NO_DATA.......................................................................................................................... 3-1
3.2.4. PDL_MCU_GROUP ................................................................................................................... 3-1
3.2.5. PDL_VERSION .......................................................................................................................... 3-1
3.2.6. Bit definitions .............................................................................................................................. 3-1
4. Library Reference ...................................................................................................................................... 4-1
4.1. API List by Peripheral Function ......................................................................................................... 4-1
4.2. Description of Each API ..................................................................................................................... 4-4
4.2.1. Clock Generation Circuit ............................................................................................................ 4-5
1) R_CGC_Set ................................................................................................................................. 4-5
2) R_CGC_Control ........................................................................................................................... 4-7
3) R_CGC_GetStatus ...................................................................................................................... 4-8
4.2.2. Interrupt Control Unit .................................................................................................................. 4-9
1) R_INTC_CreateExtInterrupt ........................................................................................................ 4-9
2) R_INTC_CreateSoftwareInterrupt .............................................................................................. 4-11
3) R_INTC_CreateFastInterrupt ..................................................................................................... 4-12
4) R_INTC_CreateExceptionHandlers ........................................................................................... 4-16
5) R_INTC_ControlExtInterrupt ...................................................................................................... 4-17
6) R_INTC_GetExtInterruptStatus ................................................................................................. 4-19
7) R_INTC_Read ........................................................................................................................... 4-24
8) R_INTC_Write ............................................................................................................................ 4-25
9) R_INTC_Modify ......................................................................................................................... 4-26
4.2.3. I/O Port ..................................................................................................................................... 4-27
1) R_IO_PORT_Set ....................................................................................................................... 4-29
2) R_IO_PORT_ReadControl ........................................................................................................ 4-30
3) R_IO_PORT_ModifyControl ...................................................................................................... 4-31
4) R_IO_PORT_Read .................................................................................................................... 4-33
5) R_IO_PORT_Write .................................................................................................................... 4-34
6) R_IO_PORT_Compare .............................................................................................................. 4-35
7) R_IO_PORT_Modify .................................................................................................................. 4-36
8) R_IO_PORT_Wait ..................................................................................................................... 4-37
4.2.4. Port Function Control ............................................................................................................... 4-38
1) R_PFC_Read ............................................................................................................................ 4-39
2) R_PFC_Write ............................................................................................................................. 4-40
of 361