S32 SDK
smc_hal.c File Reference
#include "smc_hal.h"
#include <stddef.h>

Go to the source code of this file.

Macros

#define SMC_TIMEOUT   1000U
 

Functions

static bool SMC_HAL_WaitForStatChange (const SMC_Type *const baseAddr, const power_mode_stat_t mode, const uint32_t timeout)
 
void SMC_HAL_GetVersion (const SMC_Type *const baseAddr, smc_version_info_t *const versionInfo)
 Get the version of the SMC module. More...
 
status_t SMC_HAL_SetPowerMode (SMC_Type *const baseAddr, const smc_power_mode_config_t *const powerModeConfig)
 Configures the power mode. More...
 
void SMC_HAL_SetProtectionMode (SMC_Type *const baseAddr, const smc_power_mode_protection_config_t *const protectConfig)
 Configures all power mode protection settings. More...
 
bool SMC_HAL_GetProtectionMode (const SMC_Type *const baseAddr, const power_modes_protect_t protect)
 Gets the the current power mode protection setting. More...
 

Macro Definition Documentation

#define SMC_TIMEOUT   1000U

Timeout used for waiting to set new mode

Definition at line 66 of file smc_hal.c.

Function Documentation

static bool SMC_HAL_WaitForStatChange ( const SMC_Type *const  baseAddr,
const power_mode_stat_t  mode,
const uint32_t  timeout 
)
static

Definition at line 343 of file smc_hal.c.