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

  <strong>DIR</strong> | MSIO direction.

Return values

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

## ◆ IS_MSIO_MODE

#define IS_MSIO_MODE | ( |  | __MODE__ | ) |

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

Check if MSIO mode is valid.

Parameters

  <strong>MODE</strong> | MSIO mode.

Return values

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

## ◆ 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

  <strong>PIN</strong> | MSIO pins.

Return values

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

## ◆ 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

  <strong>ACTION</strong> | MSIO pin action.

Return values

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

## ◆ 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

  <strong>PULL</strong> | MSIO pull type.

Return values

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

MSIO_PIN_MASK
#define MSIO_PIN_MASK
Definition: gr55xx_hal_msio.h:127
MSIO_DIRECTION_OUTPUT
#define MSIO_DIRECTION_OUTPUT
Definition: gr55xx_hal_msio.h:135
MSIO_DIRECTION_INPUT
#define MSIO_DIRECTION_INPUT
Definition: gr55xx_hal_msio.h:134
MSIO_DIRECTION_INOUT
#define MSIO_DIRECTION_INOUT
Definition: gr55xx_hal_msio.h:136
MSIO_PULLUP
#define MSIO_PULLUP
Definition: gr55xx_hal_msio.h:152
MSIO_MODE_DIGITAL
#define MSIO_MODE_DIGITAL
Definition: gr55xx_hal_msio.h:144
MSIO_PULLDOWN
#define MSIO_PULLDOWN
Definition: gr55xx_hal_msio.h:153
MSIO_MODE_ANALOG
#define MSIO_MODE_ANALOG
Definition: gr55xx_hal_msio.h:143
MSIO_DIRECTION_NONE
#define MSIO_DIRECTION_NONE
Definition: gr55xx_hal_msio.h:133
MSIO_NOPULL
#define MSIO_NOPULL
Definition: gr55xx_hal_msio.h:151