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

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Defines | Typedefs
GPIO Definitions (GPIO)

## Data Structures
struct | stc_gpio1pin_init
## Defines
#define | Gpio1pin_InitIn(p, settings)
#define | Gpio1pin_InitOut(p, settings)
#define | Gpio1pin_Init(p, settings)
#define | Gpio1pin_InitDirectionInput (__v__.bOutput=0u)
#define | Gpio1pin_InitDirectionOutput (__v__.bOutput=1u)
#define | Gpio1pin_InitPullup(v) (__v__.bPullup=(v))
#define | Gpio1pin_InitVal(v) (__v__.bInitVal=(v))
#define | Gpio1pin_Get(p) p##_GET
#define | Gpio1pin_Put(p, v) p##_PUT(v)
#define | PINRELOC_SET_EPFR(epfr, pos, width, value)
## Typedefs
typedef struct stc_gpio1pin_init | stc_gpio1pin_init_t

## Detailed Description

Definitions of GPIO and resource pin relocation

Attention:
  - 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 Gpio1pin_Get | ( |  | p | ) | p##_GET

Definition at line 109 of file gpio.h.

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

Value:

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

Definition at line 97 of file gpio.h.

#define Gpio1pin_InitDirectionInput (__v__.bOutput=0u)

Definition at line 102 of file gpio.h.

#define Gpio1pin_InitDirectionOutput (__v__.bOutput=1u)

Definition at line 103 of file gpio.h.

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

Value:

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

Definition at line 87 of file gpio.h.

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

Value:

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

Definition at line 92 of file gpio.h.

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

Definition at line 104 of file gpio.h.

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

Definition at line 105 of file gpio.h.

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

Definition at line 110 of file gpio.h.

#define PINRELOC_SET_EPFR | ( |  | epfr,
|  |  | pos,
|  |  | width,
|  |  | value
| ) |  |

Value:

    ((epfr) = ((epfr) & ~(((1u<<(width))-1u)<<(pos)) | \
              ((value) << (pos))))

Definition at line 112 of file gpio.h.

## Typedef Documentation

typedef struct stc_gpio1pin_init stc_gpio1pin_init_t