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

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Defines | Typedefs | Enumerations
Fast GPIO Definitions (Fast GPIO)

## Data Structures
struct | stc_fgpio1pin_init
## Defines
#define | FGpio_EnableOutput(port, pins)
#define | FGpio_DisableOutput(port)
#define | FGpio1pin_InitIn(p, settings)
#define | FGpio1pin_InitOut(p, settings)
#define | FGpio1pin_Init(p, settings)
#define | FGpio1pin_InitDirectionInput (__v__.bOutput=0u)
#define | FGpio1pin_InitDirectionOutput (__v__.bOutput=1u)
#define | FGpio1pin_InitPullup(v) (__v__.bPullup=(v))
#define | FGpio1pin_InitVal(v) (__v__.bInitVal=(v))
#define | FGpio1pin_Get(p) p##_GET
#define | FGpio1pin_Put(p, v) p##_PUT(v)
## Typedefs
typedef struct stc_fgpio1pin_init | stc_fgpio1pin_init_t
typedef enum en_fgpio_port | en_fgpio_port_t
| GPIO port list.
## Enumerations
enum | en_fgpio_port { FGpioPort0 = 0u, FGpioPort1 = 1u, FGpioPort2 = 2u, FGpioPort3 = 3u, FGpioPort4 = 4u, FGpioPort5 = 5u, FGpioPort6 = 6u, FGpioPort7 = 7u, FGpioPort8 = 8u, FGpioPort9 = 9u, FGpioPortA = 10u, FGpioPortB = 11u, FGpioPortC = 12u, FGpioPortD = 13u, FGpioPortE = 14u, FGpioPortF = 15u }
| GPIO port list. More...

## Detailed Description

Definitions of Fast GPIO and resource pin relocation

Attention:
  - Before using the Fast GPIO output, FGpio_EnableOutput() has to be called.
  - Carefully check in device documentation, whether SOUBOUT pin at SOUBOUT[_n] or TIOB0 pin should be output. TIOB0-SUBOUT is not provided by this driver!
  - Internal LSYN connection is not provided by this driver!
  - Internal CR connection is not provided by this driver!
  - Be aware of that the pull-up option for P8x pin is not available!

## Define Documentation

#define FGpio1pin_Get | ( |  | p | ) | p##_GET

Definition at line 157 of file fgpio.h.

#define FGpio1pin_Init | ( |  | p,
|  |  | settings
| ) |  |

Value:

    do{ stc_fgpio1pin_init_t __v__;__v__.bOutput=0u;\
                                             __v__.bPullup=0u;__v__.bInitVal=0u;\
                                             (settings);\
                                             p##_INIT( __v__ ); }while(0)

Definition at line 145 of file fgpio.h.

#define FGpio1pin_InitDirectionInput (__v__.bOutput=0u)

Definition at line 150 of file fgpio.h.

#define FGpio1pin_InitDirectionOutput (__v__.bOutput=1u)

Definition at line 151 of file fgpio.h.

#define FGpio1pin_InitIn | ( |  | p,
|  |  | settings
| ) |  |

Value:

    do{ stc_fgpio1pin_init_t __v__;\
                                             __v__.bPullup=0u;__v__.bInitVal=0u;\
                                             (settings);\
                                             p##_INITIN(__v__); }while(0)

Definition at line 135 of file fgpio.h.

#define FGpio1pin_InitOut | ( |  | p,
|  |  | settings
| ) |  |

Value:

    do{ stc_fgpio1pin_init_t __v__;\
                                             __v__.bPullup=0u;__v__.bInitVal=0u;\
                                             (settings);\
                                             p##_INITOUT(__v__); }while(0)

Definition at line 140 of file fgpio.h.

#define FGpio1pin_InitPullup | ( |  | v | ) | (__v__.bPullup=(v))

Definition at line 152 of file fgpio.h.

#define FGpio1pin_InitVal | ( |  | v | ) | (__v__.bInitVal=(v))

Definition at line 153 of file fgpio.h.

#define FGpio1pin_Put | ( |  | p,
|  |  | v
| ) |  | p##_PUT(v)

Definition at line 158 of file fgpio.h.

#define FGpio_DisableOutput | ( |  | port | ) |

Value:

    do {uint32_t addr; \
                                                addr = (uint32_t)&FM0P_GPIO->FPOER0 + (uint32_t)port*4u; \
                                                *(uint16_t*)(addr) = 0x0000u;  \
                                                }while(0);

Definition at line 130 of file fgpio.h.

#define FGpio_EnableOutput | ( |  | port,
|  |  | pins
| ) |  |

Value:

    do {uint32_t addr; \
                                                addr = (uint32_t)&FM0P_GPIO->FPOER0 + (uint32_t)port*4u; \
                                                *(uint16_t*)(addr) = pins;  \
                                                }while(0);

Definition at line 126 of file fgpio.h.

## Typedef Documentation

typedef enum en_fgpio_port en_fgpio_port_t

GPIO port list.

typedef struct stc_fgpio1pin_init stc_fgpio1pin_init_t

## Enumeration Type Documentation

enum en_fgpio_port

GPIO port list.

Enumerator:

  FGpioPort0 | Fast GPIO port 0.
  FGpioPort1 | Fast GPIO port 1.
  FGpioPort2 | Fast GPIO port 2.
  FGpioPort3 | Fast GPIO port 3.
  FGpioPort4 | Fast GPIO port 4.
  FGpioPort5 | Fast GPIO port 5.
  FGpioPort6 | Fast GPIO port 6.
  FGpioPort7 | Fast GPIO port 7.
  FGpioPort8 | Fast GPIO port 8.
  FGpioPort9 | Fast GPIO port 9.
  FGpioPortA | Fast GPIO port 10.
  FGpioPortB | Fast GPIO port 11.
  FGpioPortC | Fast GPIO port 12.
  FGpioPortD | Fast GPIO port 13.
  FGpioPortE | Fast GPIO port 14.
  FGpioPortF | Fast GPIO port 15.

Definition at line 101 of file fgpio.h.