PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
Modules
Here is a list of all modules:
o12-Bit Analog Digital Converter (ADC)
oBase Timer (BT)How to use PWM timer function of BT module
oController Area Network (CAN)
oClock Functions (CLK)How to use the CLK module
oCr Functions (CR)
oCrc Functions (CRC)
oClock Supervisor Functions (CSV)What is CSV? The CSV module includes CSV and FCS function. CSV uses the high and low CR to monitor main and sub clock, if the abnormal state is detected, a reset occurs. FCS uses high-speed CR to monitor the main clock, a range can be set in advance. If the monitor cycle exeeds the range, either interrupt or reset will occurs
o12-Bit Digital Analog Converter (DAC)
oDirect Memory Access (DMA)
oDescriptor System Data Transfer Controller (DSTC)
oDual Timer (DT)How to use DT module
oExternal Interrupts (EXINT)How to use External Interrupts
oExternal Bus Interface Functions (EXTIF)
oMain FlashWhat should be done before using these APIs? Before using the Main Flash operation APIs, please make sure the code is operated in RAM area. In the IAR environment, the key word "__ramfunc" makes sure that the code is implemented from RAM. In the Keil environment, user has to place the code to RAM area manually. 1) Right click main_flash.c 2) [Options for main_flash.c]->[code/const]->select a RAM area
oWork FlashWhat is Work Flash? Work Flash have independent area, which is sperated from Main Flash, thus the Flash operation API can be called derectly from Main Flash
oGPIO Defintions (GPIO)
oPDL Interrupt handlingDescription of the PDL Interrupt handling
oLow Power Modes Functions (LPM)
oLow Voltage Detection (LVD)
oMFS Low Level Functions (MFS)
oADC Start Compare Unit (ADCMP)How to use ADCMP module
oFree-Run Timer (FRT)How to use FRT module
oInput Capture Unit (ICU)How to use ICU module
oOutput Compare Unit (OCU)How to use OCU module
oWaveform Generator (WFG)Operation mode of WFG module
oFunctions
oProgrammable Pulse Generator (PPG)How to use PPG module
oQuadrature Position/Revolution Counter (QPRC)How to use Position Count (PC) and Revolution Counter (RC)
oReset Factor (RESET)
oReal Time Clock (RTC)
oUnique ID Functions (UID)
oUSB General HAL Functionalities
oUSB Device Mode Functionality
oUSB/Ethernet Clock Module description
oUSB Host Mode Functionality
oWatch Counter (WC)How to use WC module
oHardware Watchdog (HWWDG)
oSoftware Watchdog (SWWDG)
oMFS High Level Functions (MFS_HL)How to use MFS High Level module
oSD Card Interface (SDIF)
oUSB Device Middleware: CDC Com - Virtual Com Port
oUSB Device Middleware: HID Com - Data Communicaton
oUSB Device Middleware: HID Joystick
oUSB Device Middleware: HID Keyboard
oUSB Device Middleware: HID Mouse
oUSB Device Middleware: LibUSB
oUSB Device Middleware: Printer Class
oUSB Host Middleware: HID Com - Data Communicaton
oUSB Host Middleware: HID Keyboard
oUSB Host Middleware: HID Mouse
\USB Host Middleware: Mass Storage