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)

Definition at line 201 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

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

Return values

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

Definition at line 211 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

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

Return values

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

Definition at line 193 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

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

Return values

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

Definition at line 186 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

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

Return values

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

Definition at line 219 of file gr55xx_hal_msio.h.

MSIO_PIN_MASK
#define MSIO_PIN_MASK
PIN mask for assert test.
Definition: gr55xx_hal_msio.h:127
MSIO_DIRECTION_OUTPUT
#define MSIO_DIRECTION_OUTPUT
Only Output
Definition: gr55xx_hal_msio.h:135
MSIO_DIRECTION_INPUT
#define MSIO_DIRECTION_INPUT
Only Input
Definition: gr55xx_hal_msio.h:134
MSIO_DIRECTION_INOUT
#define MSIO_DIRECTION_INOUT
Input & Output
Definition: gr55xx_hal_msio.h:136
MSIO_PULLUP
#define MSIO_PULLUP
Pull-up activation
Definition: gr55xx_hal_msio.h:152
MSIO_MODE_DIGITAL
#define MSIO_MODE_DIGITAL
Digital IO.
Definition: gr55xx_hal_msio.h:144
MSIO_PULLDOWN
#define MSIO_PULLDOWN
Pull-down activation
Definition: gr55xx_hal_msio.h:153
MSIO_MODE_ANALOG
#define MSIO_MODE_ANALOG
Analog IO.
Definition: gr55xx_hal_msio.h:143
MSIO_DIRECTION_NONE
#define MSIO_DIRECTION_NONE
Disable input & output.
Definition: gr55xx_hal_msio.h:133
MSIO_NOPULL
#define MSIO_NOPULL
No Pull-up or Pull-down activation
Definition: gr55xx_hal_msio.h:151