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 264 of file 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 274 of file 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 256 of file 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 249 of file 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 282 of file hal_msio.h.

MSIO_PIN_MASK
#define MSIO_PIN_MASK
Definition: hal_msio.h:137
MSIO_DIRECTION_OUTPUT
#define MSIO_DIRECTION_OUTPUT
Definition: hal_msio.h:146
MSIO_DIRECTION_INPUT
#define MSIO_DIRECTION_INPUT
Definition: hal_msio.h:145
MSIO_DIRECTION_INOUT
#define MSIO_DIRECTION_INOUT
Definition: hal_msio.h:147
MSIO_PULLUP
#define MSIO_PULLUP
Definition: hal_msio.h:166
MSIO_MODE_DIGITAL
#define MSIO_MODE_DIGITAL
Definition: hal_msio.h:158
MSIO_PULLDOWN
#define MSIO_PULLDOWN
Definition: hal_msio.h:167
MSIO_MODE_ANALOG
#define MSIO_MODE_ANALOG
Definition: hal_msio.h:157
MSIO_DIRECTION_NONE
#define MSIO_DIRECTION_NONE
Definition: hal_msio.h:144
MSIO_NOPULL
#define MSIO_NOPULL
Definition: hal_msio.h:165