MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
SIM: System Integration Module Driver

Overview

The MCUXpresso SDK provides a peripheral driver for the System Integration Module (SIM) of MCUXpresso SDK devices.

Data Structures

struct  sim_uid_t
 Unique ID. More...
 

Enumerations

enum  sim_reset_source_t {
  kSIM_SourceSackerr = SIM_SRSID_SACKERR_MASK,
  kSIM_SourceMdmap = SIM_SRSID_MDMAP_MASK,
  kSIM_SourceSw = SIM_SRSID_SW_MASK,
  kSIM_SourceLockup = SIM_SRSID_LOCKUP_MASK,
  kSIM_SourcePor = SIM_SRSID_POR_MASK,
  kSIM_SourcePin = SIM_SRSID_PIN_MASK,
  kSIM_SourceWdog = SIM_SRSID_WDOG_MASK,
  kSIM_SourceLoc = SIM_SRSID_LOC_MASK,
  kSIM_SourceLvd = SIM_SRSID_LVD_MASK
}
 System reset status definitions. More...
 

Functions

void SIM_GetUniqueId (sim_uid_t *uid)
 Gets the unique identification register value. More...
 
static uint32_t SIM_GetSysResetStatus (void)
 Gets the reset source. More...
 

Driver version

#define FSL_SIM_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))
 PMC driver version. More...
 

Data Structure Documentation

struct sim_uid_t

Data Fields

uint32_t L
 UUIDL. More...
 

Field Documentation

uint32_t sim_uid_t::L

Macro Definition Documentation

#define FSL_SIM_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))

Version 2.0.0.

Enumeration Type Documentation

Enumerator
kSIM_SourceSackerr 

Stop mode acknowledge error reset.

kSIM_SourceMdmap 

MDM-AP system Reset request.

kSIM_SourceSw 

Software reset.

kSIM_SourceLockup 

Core lockup reset.

kSIM_SourcePor 

Power on reset.

kSIM_SourcePin 

External pin reset.

kSIM_SourceWdog 

Wdog reset.

kSIM_SourceLoc 

Internal clock source Module reset.

kSIM_SourceLvd 

Low voltage detect reset.

Function Documentation

void SIM_GetUniqueId ( sim_uid_t uid)
Parameters
uidPointer to the structure to save the UID value.
static uint32_t SIM_GetSysResetStatus ( void  )
inlinestatic

This function gets the SIM reset source. Use source masks defined in the sim_reset_source_t to get the desired source status.

This is an example.

uint32_t resetStatus;
// To get all reset source statuses.
resetStatus = SIM_GetSysResetStatus() & kSIM_SourceAll;
// To test whether the MCU is reset using Watchdog.
// To test multiple reset sources.
Returns
system reset status.