S32 SDK
rcm_hal.h File Reference
#include "device_registers.h"
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  rcm_version_info_t
 RCM module version number Implements rcm_version_info_t_Class. More...
 

Enumerations

enum  rcm_source_names_t {
  RCM_WAKEUP, RCM_LOW_VOLT_DETECT, RCM_LOSS_OF_CLK, RCM_LOSS_OF_LOCK,
  RCM_WATCH_DOG, RCM_EXTERNAL_PIN, RCM_POWER_ON, RCM_SJTAG,
  RCM_CORE_LOCKUP, RCM_SOFTWARE, RCM_SMDM_AP, RCM_STOP_MODE_ACK_ERR,
  RCM_TAMPERR, RCM_CORE1, RCM_SRC_NAME_MAX
}
 System Reset Source Name definitions Implements rcm_source_names_t_Class. More...
 
enum  rcm_filter_run_wait_modes_t { RCM_FILTER_DISABLED, RCM_FILTER_BUS_CLK, RCM_FILTER_LPO_CLK, RCM_FILTER_RESERVED }
 Reset pin filter select in Run and Wait modes Implements rcm_filter_run_wait_modes_t_Class. More...
 
enum  rcm_reset_delay_time_t { RCM_10LPO_CYCLES_DELAY, RCM_34LPO_CYCLES_DELAY, RCM_130LPO_CYCLES_DELAY, RCM_514LPO_CYCLES_DELAY }
 Reset delay time Implements rcm_reset_delay_time_t_Class. More...
 

Functions

Reset Control Module APIs
void RCM_HAL_GetVersion (const RCM_Type *const baseAddr, rcm_version_info_t *const versionInfo)
 Get the version of the RCM module. More...
 
bool RCM_HAL_GetSrcIndicationFeatureAvailability (const RCM_Type *const baseAddr, const rcm_source_names_t srcName)
 Checks the existence of the status indication feature for a reset source. More...
 
bool RCM_HAL_GetSrcStatusCmd (const RCM_Type *const baseAddr, const rcm_source_names_t srcName)
 Gets the reset source status. More...
 
void RCM_HAL_SetResetIntCmd (RCM_Type *const baseAddr, const rcm_source_names_t resetInterrupt, const bool enable)
 Enables/disables a specified system reset interrupt. More...
 
static void RCM_HAL_SetAllResetIntCmd (RCM_Type *const baseAddr, const bool enable)
 Enables/disables all system reset interrupts. More...
 
bool RCM_HAL_GetStickySrcStatusCmd (const RCM_Type *const baseAddr, const rcm_source_names_t srcName)
 Gets the sticky reset source status. More...
 
void RCM_HAL_ClearStickySrcStatus (RCM_Type *const baseAddr)
 Clear the sticky reset source status. More...
 
static void RCM_HAL_SetFilterStopModeCmd (RCM_Type *const baseAddr, const bool enable)
 Sets the reset pin filter in stop mode. More...
 
static bool RCM_HAL_GetFilterStopModeCmd (const RCM_Type *const baseAddr)
 Gets the reset pin filter in stop mode. More...
 
static void RCM_HAL_SetFilterRunWaitMode (RCM_Type *const baseAddr, const rcm_filter_run_wait_modes_t mode)
 Sets the reset pin filter in run and wait mode. More...
 
static rcm_filter_run_wait_modes_t RCM_HAL_GetFilterRunWaitMode (const RCM_Type *const baseAddr)
 Gets the reset pin filter for stop mode. More...
 
static void RCM_HAL_SetFilterWidth (RCM_Type *const baseAddr, const uint32_t width)
 Sets the reset pin filter width. More...
 
static uint32_t RCM_HAL_GetFilterWidth (const RCM_Type *const baseAddr)
 Gets the reset pin filter for stop mode. More...
 
static void RCM_HAL_SetResetDelayTimeValue (RCM_Type *const baseAddr, const rcm_reset_delay_time_t value)
 Sets reset delay time. More...