MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
SMC API Specification

Overview

This section describes functions and macros of the driver's API.

Macros

#define SMC_GetMode()
 Returns current power mode of the device. More...
 
#define SMC_SetMode(mode)
 Sets device operating mode. More...
 
#define SMC_Init(cfg)
 SMC initialization. More...
 

Macro Definition Documentation

#define SMC_GetMode ( )

This macro returns current power mode of the device (SMC_PMSTAT register).

Returns
uint8 mask indicating current power mode of the device (refer to SMC Power Operating Modes).
Note
Implemented as an inline macro.
See also
SMC_SetMode
#define SMC_SetMode (   mode)

This macro sets device operating mode.

Parameters
modeSelect an operating mode: RUN,VLPR,STOP,PSTOP1,PSTOP2,VLPS_PSTOP1,VLPS_PSTOP2,WAIT, VLPS,VLPW,VLLS3,VLLS2,VLLS1,VLLS0_POR_ON,VLLS0_POR_OFF.
Note
Implemented as an inline macro.
See also
SMC_GetMode
#define SMC_Init (   cfg)

This macro function initializes System Mode Controller (SMC).

Parameters
cfgSelect one of the SMC Configuration Structures.
Note
Implemented as an inline macro.