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 289 of file gr533x_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 299 of file gr533x_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 281 of file gr533x_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 274 of file gr533x_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 307 of file gr533x_hal_msio.h.

MSIO_PIN_MASK
#define MSIO_PIN_MASK
Definition: gr533x_hal_msio.h:162
MSIO_DIRECTION_OUTPUT
#define MSIO_DIRECTION_OUTPUT
Definition: gr533x_hal_msio.h:171
MSIO_DIRECTION_INPUT
#define MSIO_DIRECTION_INPUT
Definition: gr533x_hal_msio.h:170
MSIO_DIRECTION_INOUT
#define MSIO_DIRECTION_INOUT
Definition: gr533x_hal_msio.h:172
MSIO_PULLUP
#define MSIO_PULLUP
Definition: gr533x_hal_msio.h:191
MSIO_MODE_DIGITAL
#define MSIO_MODE_DIGITAL
Definition: gr533x_hal_msio.h:183
MSIO_PULLDOWN
#define MSIO_PULLDOWN
Definition: gr533x_hal_msio.h:192
MSIO_MODE_ANALOG
#define MSIO_MODE_ANALOG
Definition: gr533x_hal_msio.h:182
MSIO_DIRECTION_NONE
#define MSIO_DIRECTION_NONE
Definition: gr533x_hal_msio.h:169
MSIO_NOPULL
#define MSIO_NOPULL
Definition: gr533x_hal_msio.h:190