Macros
MSIO Private Macros
Peripheral Driver » HAL Driver » MSIO » Defines

## Macros
#define | IS_MSIO_PIN_ACTION(__ACTION__) (((__ACTION__) == MSIO_PIN_RESET) || ((__ACTION__) == MSIO_PIN_SET))
| Check if MSIO pin action is valid. More...
#define | IS_MSIO_PIN(__PIN__)
| Check if MSIO pins are valid. More...
#define | IS_MSIO_DIRECTION(__DIR__)
| Check if MSIO direction is valid. More...
#define | IS_MSIO_MODE(__MODE__)
| Check if MSIO mode is valid. More...
#define | IS_MSIO_PULL(__PULL__)
| Check if MSIO pull type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_MSIO_DIRECTION

#define IS_MSIO_DIRECTION | ( |  | __DIR__ | ) |

Value:
(((__DIR__) == MSIO_DIRECTION_NONE) || \
((__DIR__) == MSIO_DIRECTION_INPUT) || \
((__DIR__) == MSIO_DIRECTION_OUTPUT) || \
((__DIR__) == MSIO_DIRECTION_INOUT))

Check if MSIO direction is valid.

Parameters

  __DIR__ | MSIO direction.

Return values

  SET | (__DIR__ is valid) or RESET (__DIR__ is invalid)

Definition at line 285 of file gr55xx_hal_msio.h.

## ◆ IS_MSIO_MODE

#define IS_MSIO_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == MSIO_MODE_ANALOG) || \
((__MODE__) == MSIO_MODE_DIGITAL))

Check if MSIO mode is valid.

Parameters

  __MODE__ | MSIO mode.

Return values

  SET | (__MODE__ is valid) or RESET (__MODE__ is invalid)

Definition at line 295 of file gr55xx_hal_msio.h.

## ◆ IS_MSIO_PIN

#define IS_MSIO_PIN | ( |  | __PIN__ | ) |

Value:
((((__PIN__) & MSIO_PIN_MASK) != 0x00U) && \
(((__PIN__) & ~MSIO_PIN_MASK) == 0x00U))

Check if MSIO pins are valid.

Parameters

  __PIN__ | MSIO pins.

Return values

  SET | (__PIN__ is valid) or RESET (__PIN__ is invalid)

Definition at line 277 of file gr55xx_hal_msio.h.

## ◆ IS_MSIO_PIN_ACTION

#define IS_MSIO_PIN_ACTION | ( |  | __ACTION__ | ) | (((__ACTION__) == MSIO_PIN_RESET) || ((__ACTION__) == MSIO_PIN_SET))

Check if MSIO pin action is valid.

Parameters

  __ACTION__ | MSIO pin action.

Return values

  SET | (__ACTION__ is valid) or RESET (__ACTION__ is invalid)

Definition at line 270 of file gr55xx_hal_msio.h.

## ◆ IS_MSIO_PULL

#define IS_MSIO_PULL | ( |  | __PULL__ | ) |

Value:
(((__PULL__) == MSIO_NOPULL) || \
((__PULL__) == MSIO_PULLUP) || \
((__PULL__) == MSIO_PULLDOWN))

Check if MSIO pull type is valid.

Parameters

  __PULL__ | MSIO pull type.

Return values

  SET | (__PULL__ is valid) or RESET (__PULL__ is invalid)

Definition at line 303 of file gr55xx_hal_msio.h.

MSIO_PIN_MASK
#define MSIO_PIN_MASK
Definition: gr55xx_hal_msio.h:158
MSIO_DIRECTION_OUTPUT
#define MSIO_DIRECTION_OUTPUT
Definition: gr55xx_hal_msio.h:167
MSIO_DIRECTION_INPUT
#define MSIO_DIRECTION_INPUT
Definition: gr55xx_hal_msio.h:166
MSIO_DIRECTION_INOUT
#define MSIO_DIRECTION_INOUT
Definition: gr55xx_hal_msio.h:168
MSIO_PULLUP
#define MSIO_PULLUP
Definition: gr55xx_hal_msio.h:187
MSIO_MODE_DIGITAL
#define MSIO_MODE_DIGITAL
Definition: gr55xx_hal_msio.h:179
MSIO_PULLDOWN
#define MSIO_PULLDOWN
Definition: gr55xx_hal_msio.h:188
MSIO_MODE_ANALOG
#define MSIO_MODE_ANALOG
Definition: gr55xx_hal_msio.h:178
MSIO_DIRECTION_NONE
#define MSIO_DIRECTION_NONE
Definition: gr55xx_hal_msio.h:165
MSIO_NOPULL
#define MSIO_NOPULL
Definition: gr55xx_hal_msio.h:186