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_usb_volt_reg_enable_mode {
  kSIM_UsbVoltRegEnable = SIM_SOPT1_USBREGEN_MASK,
  kSIM_UsbVoltRegEnableInLowPower = SIM_SOPT1_USBVSTBY_MASK,
  kSIM_UsbVoltRegEnableInStop = SIM_SOPT1_USBSSTBY_MASK,
  kSIM_UsbVoltRegEnableInAllModes
}
 USB voltage regulator enable setting. More...
 
enum  _sim_flash_mode {
  kSIM_FlashDisableInWait = SIM_FCFG1_FLASHDOZE_MASK,
  kSIM_FlashDisable = SIM_FCFG1_FLASHDIS_MASK
}
 Flash enable mode. More...
 

Functions

void SIM_SetUsbVoltRegulatorEnableMode (uint32_t mask)
 Sets the USB voltage regulator setting. More...
 
void SIM_GetUniqueId (sim_uid_t *uid)
 Gets the unique identification register value. More...
 
static void SIM_SetFlashMode (uint8_t mode)
 Sets the flash enable mode. More...
 

Driver version

#define FSL_SIM_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))
 Driver version 2.0.0.
 

Data Structure Documentation

struct sim_uid_t

Data Fields

uint32_t MH
 UIDMH. More...
 
uint32_t ML
 UIDML. More...
 
uint32_t L
 UIDL. More...
 

Field Documentation

uint32_t sim_uid_t::MH
uint32_t sim_uid_t::ML
uint32_t sim_uid_t::L

Enumeration Type Documentation

Enumerator
kSIM_UsbVoltRegEnable 

Enable voltage regulator.

kSIM_UsbVoltRegEnableInLowPower 

Enable voltage regulator in VLPR/VLPW modes.

kSIM_UsbVoltRegEnableInStop 

Enable voltage regulator in STOP/VLPS/LLS/VLLS modes.

kSIM_UsbVoltRegEnableInAllModes 

Enable voltage regulator in all power modes.

Enumerator
kSIM_FlashDisableInWait 

Disable flash in wait mode.

kSIM_FlashDisable 

Disable flash in normal mode.

Function Documentation

void SIM_SetUsbVoltRegulatorEnableMode ( uint32_t  mask)

This function configures whether the USB voltage regulator is enabled in normal RUN mode, STOP/VLPS/LLS/VLLS modes, and VLPR/VLPW modes. The configurations are passed in as mask value of _sim_usb_volt_reg_enable_mode. For example, to enable USB voltage regulator in RUN/VLPR/VLPW modes and disable in STOP/VLPS/LLS/VLLS mode, use:

SIM_SetUsbVoltRegulatorEnableMode(kSIM_UsbVoltRegEnable | kSIM_UsbVoltRegEnableInLowPower);

Parameters
maskUSB voltage regulator enable setting.
void SIM_GetUniqueId ( sim_uid_t uid)
Parameters
uidPointer to the structure to save the UID value.
static void SIM_SetFlashMode ( uint8_t  mode)
inlinestatic
Parameters
modeThe mode to set; see _sim_flash_mode for mode details.