R_LPC_ChangeOperatingPowerControl

Changes the operating power control mode of the MCU.

[Syntax]

#include "r_cg_macrodriver.h"

#include "r_cg_lpc.h"

MD_STATUS R_LPC_ChangeOperatingPowerControl ( operating_mode_t mode );

[Argument(s)]

I/O

Argument

Description

I

operating_mode_t mode;

Operating power control mode type

HIGH_SPEED : High-speed operating mode

MIDDLE_SPEED : Middle-speed operating mode

LOW_SPEED : Low-speed operating mode

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ERROR1

Change to the low-speed operating mode ended abnormally.

MD_ERROR2

Change to the middle-speed operating mode is ended abnormally.

MD_ARGERROR

Invalid argument mode specification