4.11 MVIO - Multi-Voltage I/O

4.11.1 Introduction

The MCC Melody MVIO PLIB Driver (Peripheral Library) generates API to support MVIO-specific peripheral functionality on AVR ® DB and DD target MCU's.

The Multi-Voltage I/O (MVIO) module allows a subset of the I/O pins to be powered by a different I/O voltage domain, VDDIO2 while the rest of the I/O pins run on VDD.

4.11.2 Supported Device Families

AVR® DBAVR® DD

4.11.3 Required header files:

#include "mcc_generated_files/mvio/mvio.h"

4.11.4 Module Documentation

4.11.4.1 MVIO

This file contains the API prototypes for the MVIO driver.

4.11.4.1.1 Module description

This file contains the API prototypes for the MVIO driver.

Version: MVIO Driver Version 1.1.2
Typedefs
  • typedef void(* MVIO_cb_t) (void)

    Function pointer to callback function called by the MVIO. The default value is set to NULL which means that no callback function will be used.

4.11.4.1.2 Typedef Documentation

MVIO_cb_t

void * MVIO_cb_t

Function pointer to callback function called by the MVIO. The default value is set to NULL which means that no callback function will be used.

4.11.4.1.3 Function Documentation

MVIO_Initialize()

int8_t MVIO_Initialize (void )

Initializes the MVIO module.

Parameters:
None.
Return values:
0

- The MVIO initialize sequence is successful.

1

- The MVIO initialize sequence is not successful.

MVIO_isOK()

bool MVIO_isOK (void )

Checks if the VDDIO2 supply voltage is within the acceptable operation range.

Parameters:
None.
Return values:
True

- The VDDIO2 supply voltage is within the acceptable operation range.

False

- The VDDIO2 supply voltage is below the acceptable operation range.

MVIO_Vddio2CallbackRegister()

void MVIO_Vddio2CallbackRegister (MVIO_cb_t cb)

Registers a callback function to be called when an MVIO Interrupt event occurs.

Parameters:
MVIO_cb_t

cb - Callback function for the VDDIO2 Interrupt event.

Returns:

None.

4.11.5 File Documentation

4.11.5.1 source/mvio.c File Reference

This file contains the API implementation for the MVIO module driver.

#include "../mvio.h"

4.11.5.1.1 Functions

4.11.5.1.3 Detailed Description

This file contains the API implementation for the MVIO module driver.

MVIO Generated Driver File

Version: MVIO Driver Version 1.1.2

4.11.5.1.4 Function Documentation

ISR()

ISR (MVIO_MVIO_vect )

4.11.5.1.5 Variable Documentation

MVIO_VDDIO2_isr_cb

void(* MVIO_VDDIO2_isr_cb) (void) = NULL

4.11.5.2 source/mvio.h File Reference

#include "../system/utils/compiler.h"

4.11.5.2.1 Functions

4.11.5.2.2 Typedefs

  • typedef void(* MVIO_cb_t) (void)

    Function pointer to callback function called by the MVIO. The default value is set to NULL which means that no callback function will be used.

4.11.5.2.3 Detailed Description

MVIO Generated Driver API Header File