1.7.21.1 RCON_ResetCauseGet Function

C

RCON_RESET_CAUSE RCON_ResetCauseGet( void );

Summary

Reports the cause of the last reset.

Description

This function returns the cause of the last reset. The reset could be due to multiple reasons. The application should compare the returned value against different values in the RCON_RESET_CAUSE enumeration to identify the possible causes.

Precondition

None.

Parameters

None.

Returns

RCON_RESET_CAUSE - Identifies type of reset.

Example

if (RCON_ResetCauseGet() == RCON_RESET_CAUSE_WDTO)
{
    //Application related tasks
}

Remarks

None.