4.7 RSTCTRL - Reset Controller

4.7.1 Introduction

The MPLAB® Code Configurator (MCC) Reset Controller (RSTCTRL) Peripheral Library (PLIB) driver generates APIs to support RSTCTRL-specific peripheral functionality on AVRxxxDx and ATtiny target MCUs.

The RSTCTRL manages the Reset of the device. When receiving a Reset request, it sets the device to an initial state and allows the Reset source to be identified by the software. The Reset controller can also be used to issue a Software Reset (SWRST).

4.7.2 Supported Device Families

AVR® DxAVR® ExATtinyATmega

4.7.3 Required Header Files:

#include"mcc_generated_files/reset/rstctrl.h"

4.7.4 Module Documentation

4.7.4.1 Reset Control

This file contains the API prototypes for the RSTCTRL driver.

4.7.4.1.1 Module description

This file contains the API prototypes for the RSTCTRL driver.

Version: RSTCTRL Driver Version 1.1.0

4.7.4.1.2 Function Documentation

RSTCTRL_clear_reset_cause()

static void RSTCTRL_clear_reset_cause (void )[inline], [static]

Clears the Reset Flag register.

Parameters:
None.
Returns:

None.

RSTCTRL_get_reset_cause()

static uint8_t RSTCTRL_get_reset_cause (void )[inline], [static]

Returns the value of the Reset Flag register.

Parameters:
None.
Returns:

Reset flag - Value of the Reset Flag register.

RSTCTRL_reset()

static void RSTCTRL_reset (void )[inline], [static]

Issues a System Reset from the software.

Parameters:
None.
Returns:

None.

4.7.5 File Documentation

4.7.5.1 source/rstctrl.h File Reference

#include "../system/ccp.h"

4.7.5.1.2 Detailed Description

RSTCTRL Generated Driver File.