| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Defines | Typedefs | Enumerations | Functions
C:/pdl_v10/library/driver/pdl.h File Reference
`#include "base_types.h"`
`#include "pdl_device.h"`
Include dependency graph for pdl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines
#define | PDL_ZERO_STRUCT(x) pdl_memclr((uint8_t*)&(x), (uint32_t)(sizeof(x)))
#define | PDL_ON 1u
| Switches a feature on.
#define | PDL_OFF 0u
| Switches a feature off.
#define | PDL_TYPE1 1u
| FM0+ device type1.
#define | PDL_TYPE2 2u
| FM0+ device type2.
#define | PDL_TYPE3 3u
| FM0+ device type3.
#define | PDL_TYPE4 4u
| FM0+ device type4.
#define | PDL_TYPE5 5u
| FM0+ device type5.
#define | PDL_DEVICE_SERIES_S6E1A1 10u
#define | PDL_DEVICE_PACKAGE_B 10u
#define | PDL_DEVICE_PACKAGE_C 20u
#define | PDL_DEVICE_TYPE PDL_TYPE1
#define | PDL_DEFAULT_INTERRUPT_LEVEL 0x0Fu
#define | PDL_PERIPHERAL_ADC_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_BT_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_CLK_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_DT_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_DMA_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_CRTRIM_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_CSV_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_EXINT_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_FLASH_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_LVD_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_MFS_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_QPRC_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_RESET_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_WC_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_HWWDG_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_SWWDG_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_RTC_AVAILABLE PDL_ON
#define | PDL_PERIPHERAL_LCD_AVAILABLE PDL_OFF
#define | PDL_PERIPHERAL_UID_AVAILABLE PDL_ON
#define | PDL_INT_TYPE_A 0u
| Interrupt Type extraction.
#define | PDL_INT_TYPE_B 1u
| FM0P MCU interrupt Type B.
#define | PDL_INT_TYPE_C 2u
| FM0P MCU interrupt Type C.
#define | PDL_MCU_INT_TYPE PDL_INT_TYPE_A
#define | CSV_IRQHandler(void) IRQ000_Handler(void)
| IRQ name definition for all type MCUs.
#define | SWDT_IRQHandler(void) IRQ001_Handler(void)
| SW watchdog.
#define | LVD_IRQHandler(void) IRQ002_Handler(void)
| LVD.
#define | MFT_WFG_IRQHandler(void) IRQ003_Handler(void)
| Interrupt Source Selection 3.
#define | INT0_7_Handler(void) IRQ004_Handler(void)
| Interrupt Source Selection 4.
#define | INT8_31_Handler(void) IRQ005_Handler(void)
| Interrupt Source Selection 5.
#define | DT_QPRC_Handler(void) IRQ006_Handler(void)
| Interrupt Source Selection 6.
#define | MFS0_8_RX_IRQHandler(void) IRQ007_Handler(void)
| Interrupt Source Selection 7.
#define | MFS0_8_TX_IRQHandler(void) IRQ008_Handler(void)
| Interrupt Source Selection 8.
#define | MFS1_9_RX_IRQHandler(void) IRQ009_Handler(void)
| Interrupt Source Selection 9.
#define | MFS1_9_TX_IRQHandler(void) IRQ010_Handler(void)
| Interrupt Source Selection 10.
#define | MFS2_10_RX_IRQHandler(void) IRQ011_Handler(void)
| External Pin Interrupt Ch. 0.
#define | MFS2_10_TX_IRQHandler(void) IRQ012_Handler(void)
| External Pin Interrupt Ch. 1.
#define | MFS3_11_RX_IRQHandler(void) IRQ013_Handler(void)
| External Pin Interrupt Ch. 2.
#define | MFS3_11_TX_IRQHandler(void) IRQ014_Handler(void)
| External Pin Interrupt Ch. 3.
#define | MFS4_12_RX_IRQHandler(void) IRQ015_Handler(void)
| External Pin Interrupt Ch. 4.
#define | MFS4_12_TX_IRQHandler(void) IRQ016_Handler(void)
| External Pin Interrupt Ch. 5.
#define | MFS5_13_RX_IRQHandler(void) IRQ017_Handler(void)
| External Pin Interrupt Ch. 6.
#define | MFS5_13_TX_IRQHandler(void) IRQ018_Handler(void)
| External Pin Interrupt Ch. 7.
#define | MFS6_14_RX_DMA0_IRQHandler(void) IRQ019_Handler(void)
| Quad Position & Revolution Counter Ch. 0.
#define | MFS6_14_TX_DMA1_IRQHandler(void) IRQ020_Handler(void)
| Quad Position & Revolution Counter Ch. 1.
#define | MFS7_15_RX_DMA2_IRQHandler(void) IRQ021_Handler(void)
| MFT Unit 0 Waveform Generator / DTIF Ch. 0.
#define | MFS7_15_TX_DMA3_IRQHandler(void) IRQ022_Handler(void)
| MFT Unit 1 Waveform Generator / DTIF Ch. 1.
#define | PPG_IRQHandler(void) IRQ023_Handler(void)
| PPG.
#define | TIM_IRQHandler(void) IRQ024_Handler(void)
| Watch Counter/Real Time Counter.
#define | ADC0_IRQHandler(void) IRQ025_Handler(void)
| ADC Unit 0.
#define | ADC1_IRQHandler(void) IRQ026_Handler(void)
| ADC Unit 1.
#define | ADC2_LCD_IRQHandler(void) IRQ027_Handler(void)
| ADC Unit 2/LCD.
#define | MFT_FRT_IRQHandler(void) IRQ028_Handler(void)
| MFT Unit 0/1/2 Free-Run Timer.
#define | MFT_IPC_IRQHandler(void) IRQ029_Handler(void)
| MFT Unit 0/1/2 Input Capture Unit.
#define | MFT_OPC_IRQHandler(void) IRQ030_Handler(void)
| MFT Unit 0/1/2 Output Compare Unit.
#define | BT0_7_FLASH_IRQHandler(void) IRQ031_Handler(void)
| Base Timer ch.0~ch.7.
## Typedefs
typedef enum en_level | en_level_t
| Level.
typedef enum en_flag | en_stat_flag_t
| Generic Flag Code.
typedef enum en_flag | en_int_flag_t
## Enumerations
enum | en_level { PDLLow = 0, PDLHigh = 1 }
| Level. More...
enum | en_flag { PdlClr = 0, PdlSet = 1 }
| Generic Flag Code. More...
## Functions
void | pdl_memclr (uint8_t *pu32Address, uint32_t u32Count)
| Memory clear function for PDL_ZERO_STRUCT()
void | PDL_WAIT_LOOP_HOOK (void)
| Hook function, which is called in polling loops.

## Detailed Description

Headerfile for FM0P Peripheral Driver Library

History:

- 2013-03-21 0.0.1 MWi First version.
- 2013-11-25 0.0.2 EZ Replace mb9abxxx.h with mcu.h

Definition in file pdl.h.

## Define Documentation

#define ADC0_IRQHandler | ( |  | void | ) | IRQ025_Handler(void)

ADC Unit 0.

Definition at line 242 of file pdl.h.

#define ADC1_IRQHandler | ( |  | void | ) | IRQ026_Handler(void)

ADC Unit 1.

Definition at line 243 of file pdl.h.

#define ADC2_LCD_IRQHandler | ( |  | void | ) | IRQ027_Handler(void)

ADC Unit 2/LCD.

Definition at line 244 of file pdl.h.

#define BT0_7_FLASH_IRQHandler | ( |  | void | ) | IRQ031_Handler(void)

Base Timer ch.0~ch.7.

Definition at line 248 of file pdl.h.

#define CSV_IRQHandler | ( |  | void | ) | IRQ000_Handler(void)

IRQ name definition for all type MCUs.

CSV

Definition at line 217 of file pdl.h.

#define DT_QPRC_Handler | ( |  | void | ) | IRQ006_Handler(void)

Interrupt Source Selection 6.

Definition at line 223 of file pdl.h.

#define INT0_7_Handler | ( |  | void | ) | IRQ004_Handler(void)

Interrupt Source Selection 4.

Definition at line 221 of file pdl.h.

#define INT8_31_Handler | ( |  | void | ) | IRQ005_Handler(void)

Interrupt Source Selection 5.

Definition at line 222 of file pdl.h.

#define LVD_IRQHandler | ( |  | void | ) | IRQ002_Handler(void)

LVD.

Definition at line 219 of file pdl.h.

#define MFS0_8_RX_IRQHandler | ( |  | void | ) | IRQ007_Handler(void)

Interrupt Source Selection 7.

Definition at line 224 of file pdl.h.

#define MFS0_8_TX_IRQHandler | ( |  | void | ) | IRQ008_Handler(void)

Interrupt Source Selection 8.

Definition at line 225 of file pdl.h.

#define MFS1_9_RX_IRQHandler | ( |  | void | ) | IRQ009_Handler(void)

Interrupt Source Selection 9.

Definition at line 226 of file pdl.h.

#define MFS1_9_TX_IRQHandler | ( |  | void | ) | IRQ010_Handler(void)

Interrupt Source Selection 10.

Definition at line 227 of file pdl.h.

#define MFS2_10_RX_IRQHandler | ( |  | void | ) | IRQ011_Handler(void)

External Pin Interrupt Ch. 0.

Definition at line 228 of file pdl.h.

#define MFS2_10_TX_IRQHandler | ( |  | void | ) | IRQ012_Handler(void)

External Pin Interrupt Ch. 1.

Definition at line 229 of file pdl.h.

#define MFS3_11_RX_IRQHandler | ( |  | void | ) | IRQ013_Handler(void)

External Pin Interrupt Ch. 2.

Definition at line 230 of file pdl.h.

#define MFS3_11_TX_IRQHandler | ( |  | void | ) | IRQ014_Handler(void)

External Pin Interrupt Ch. 3.

Definition at line 231 of file pdl.h.

#define MFS4_12_RX_IRQHandler | ( |  | void | ) | IRQ015_Handler(void)

External Pin Interrupt Ch. 4.

Definition at line 232 of file pdl.h.

#define MFS4_12_TX_IRQHandler | ( |  | void | ) | IRQ016_Handler(void)

External Pin Interrupt Ch. 5.

Definition at line 233 of file pdl.h.

#define MFS5_13_RX_IRQHandler | ( |  | void | ) | IRQ017_Handler(void)

External Pin Interrupt Ch. 6.

Definition at line 234 of file pdl.h.

#define MFS5_13_TX_IRQHandler | ( |  | void | ) | IRQ018_Handler(void)

External Pin Interrupt Ch. 7.

Definition at line 235 of file pdl.h.

#define MFS6_14_RX_DMA0_IRQHandler | ( |  | void | ) | IRQ019_Handler(void)

Quad Position & Revolution Counter Ch. 0.

Definition at line 236 of file pdl.h.

#define MFS6_14_TX_DMA1_IRQHandler | ( |  | void | ) | IRQ020_Handler(void)

Quad Position & Revolution Counter Ch. 1.

Definition at line 237 of file pdl.h.

#define MFS7_15_RX_DMA2_IRQHandler | ( |  | void | ) | IRQ021_Handler(void)

MFT Unit 0 Waveform Generator / DTIF Ch. 0.

Definition at line 238 of file pdl.h.

#define MFS7_15_TX_DMA3_IRQHandler | ( |  | void | ) | IRQ022_Handler(void)

MFT Unit 1 Waveform Generator / DTIF Ch. 1.

Definition at line 239 of file pdl.h.

#define MFT_FRT_IRQHandler | ( |  | void | ) | IRQ028_Handler(void)

MFT Unit 0/1/2 Free-Run Timer.

Definition at line 245 of file pdl.h.

#define MFT_IPC_IRQHandler | ( |  | void | ) | IRQ029_Handler(void)

MFT Unit 0/1/2 Input Capture Unit.

Definition at line 246 of file pdl.h.

#define MFT_OPC_IRQHandler | ( |  | void | ) | IRQ030_Handler(void)

MFT Unit 0/1/2 Output Compare Unit.

Definition at line 247 of file pdl.h.

#define MFT_WFG_IRQHandler | ( |  | void | ) | IRQ003_Handler(void)

Interrupt Source Selection 3.

Definition at line 220 of file pdl.h.

#define PDL_DEFAULT_INTERRUPT_LEVEL 0x0Fu

Default Interrupt Level (lowest priority, used for De-Init functions)

Definition at line 128 of file pdl.h.

Referenced by Adc_DeInitNvic(), Bt_DeInitNvic(), Csv_DisableFcsInt(), Dma_Irq_DeInit(), Dt_DeInitIrq(), Exint_Disable(), Hwwdg_DeInit(), Lvd_ConfigInt(), Mfs_DeInitIrq(), Mft_Frt_DeInitIrq(), Mft_Icu_DeInitIrq(), Mft_Ocu_DeInitIrq(), Mft_Wfg_DeInitIrq(), Ppg_DeInitNvic(), Qprc_DeInitNvic(), RtcDeInitIrq(), Swwdg_DeInit(), and Wc_DeInitNvic().

#define PDL_DEVICE_PACKAGE_B 10u

Global Device Package List

Definition at line 101 of file pdl.h.

#define PDL_DEVICE_PACKAGE_C 20u

Definition at line 102 of file pdl.h.

#define PDL_DEVICE_SERIES_S6E1A1 10u

Global Device Series List

Definition at line 95 of file pdl.h.

#define PDL_DEVICE_TYPE PDL_TYPE1

Device type extraction

Definition at line 116 of file pdl.h.

#define PDL_INT_TYPE_A 0u

Interrupt Type extraction.

FM0P MCU interrupt Type A

Definition at line 200 of file pdl.h.

#define PDL_INT_TYPE_B 1u

FM0P MCU interrupt Type B.

Definition at line 202 of file pdl.h.

#define PDL_INT_TYPE_C 2u

FM0P MCU interrupt Type C.

Definition at line 204 of file pdl.h.

#define PDL_MCU_INT_TYPE PDL_INT_TYPE_A

Definition at line 207 of file pdl.h.

#define PDL_OFF 0u

Switches a feature off.

Definition at line 77 of file pdl.h.

#define PDL_ON 1u

Switches a feature on.

All definitions needed for pdl_user.h are stated here

Definition at line 76 of file pdl.h.

#define PDL_PERIPHERAL_ADC_AVAILABLE PDL_ON

PDL resource availability check

Definition at line 136 of file pdl.h.

#define PDL_PERIPHERAL_BT_AVAILABLE PDL_ON

Definition at line 139 of file pdl.h.

#define PDL_PERIPHERAL_CLK_AVAILABLE PDL_ON

Definition at line 142 of file pdl.h.

#define PDL_PERIPHERAL_CRTRIM_AVAILABLE PDL_ON

Definition at line 151 of file pdl.h.

#define PDL_PERIPHERAL_CSV_AVAILABLE PDL_ON

Definition at line 154 of file pdl.h.

#define PDL_PERIPHERAL_DMA_AVAILABLE PDL_ON

Definition at line 148 of file pdl.h.

#define PDL_PERIPHERAL_DT_AVAILABLE PDL_ON

Definition at line 145 of file pdl.h.

#define PDL_PERIPHERAL_EXINT_AVAILABLE PDL_ON

Definition at line 157 of file pdl.h.

#define PDL_PERIPHERAL_FLASH_AVAILABLE PDL_ON

Definition at line 160 of file pdl.h.

#define PDL_PERIPHERAL_HWWDG_AVAILABLE PDL_ON

Definition at line 178 of file pdl.h.

#define PDL_PERIPHERAL_LCD_AVAILABLE PDL_OFF

Definition at line 187 of file pdl.h.

#define PDL_PERIPHERAL_LVD_AVAILABLE PDL_ON

Definition at line 163 of file pdl.h.

#define PDL_PERIPHERAL_MFS_AVAILABLE PDL_ON

Definition at line 166 of file pdl.h.

#define PDL_PERIPHERAL_QPRC_AVAILABLE PDL_ON

Definition at line 169 of file pdl.h.

#define PDL_PERIPHERAL_RESET_AVAILABLE PDL_ON

Definition at line 172 of file pdl.h.

#define PDL_PERIPHERAL_RTC_AVAILABLE PDL_ON

Definition at line 184 of file pdl.h.

#define PDL_PERIPHERAL_SWWDG_AVAILABLE PDL_ON

Definition at line 181 of file pdl.h.

#define PDL_PERIPHERAL_UID_AVAILABLE PDL_ON

Definition at line 190 of file pdl.h.

#define PDL_PERIPHERAL_WC_AVAILABLE PDL_ON

Definition at line 175 of file pdl.h.

#define PDL_TYPE1 1u

FM0+ device type1.

Global Device type definitions Note that an existing definition does not implicitly means full device type support of this library!

Definition at line 85 of file pdl.h.

#define PDL_TYPE2 2u

FM0+ device type2.

Definition at line 86 of file pdl.h.

#define PDL_TYPE3 3u

FM0+ device type3.

Definition at line 87 of file pdl.h.

#define PDL_TYPE4 4u

FM0+ device type4.

Definition at line 88 of file pdl.h.

#define PDL_TYPE5 5u

FM0+ device type5.

Definition at line 89 of file pdl.h.

#define PDL_ZERO_STRUCT | ( |  | x | ) | pdl_memclr((uint8_t*)&(x), (uint32_t)(sizeof(x)))

Definition at line 70 of file pdl.h.

Referenced by Adc_Init(), At24cxx_Init(), CsioMasterRxIntCallback(), CsioMasterTxIntCallback(), CsioRxData(), CsioRxReg(), CsioTxCmd(), CsioTxCmdAddr(), CsioTxData(), I2cRxData(), I2cStopDetectCallback(), I2cTxCallback(), I2cTxData(), I2cTxRxData(), and S25fl127s_Init().

#define PPG_IRQHandler | ( |  | void | ) | IRQ023_Handler(void)

PPG.

Definition at line 240 of file pdl.h.

#define SWDT_IRQHandler | ( |  | void | ) | IRQ001_Handler(void)

SW watchdog.

Definition at line 218 of file pdl.h.

#define TIM_IRQHandler | ( |  | void | ) | IRQ024_Handler(void)

Watch Counter/Real Time Counter.

Definition at line 241 of file pdl.h.

## Typedef Documentation

typedef enum en_flag en_int_flag_t

typedef enum en_level en_level_t

Level.

Specifies levels.

typedef enum en_flag en_stat_flag_t

Generic Flag Code.

Specifies flags.

## Enumeration Type Documentation

enum en_flag

Generic Flag Code.

Specifies flags.

Enumerator:

  PdlClr | Flag clr '0'.
  PdlSet | Flag set '1'.

Definition at line 276 of file pdl.h.

enum en_level

Level.

Specifies levels.

Enumerator:

  PDLLow | Low level '0'.
  PDLHigh | High level '1'.

Definition at line 263 of file pdl.h.