/* param base GPC CPU module base address. param mode CPU mode. Refer to "gpc_cpu_mode_t". param map Map value of the set point. Refer to "_gpc_setpoint_map".  */
void GPC_CM_SetCpuModeSetPointMapping(GPC_CPU_MODE_CTRL_Type *base, gpc_cpu_mode_t mode, uint32_t map)
/* param base GPC CPU module base address. param mode CPU mode. Refer to "gpc_cpu_mode_t". param map Map value of the set point. Refer to "_gpc_setpoint_map".  */
void GPC_CM_SetCpuModeSetPointMapping(GPC_CPU_MODE_CTRL_Type *base, gpc_cpu_mode_t mode, uint32_t map)
{
    map = map & 0xFFFFUL;
    switch (mode)
    {
        case kGPC_RunMode:
            base->CM_RUN_MODE_MAPPING = map;
            break;
        case kGPC_WaitMode:
            base->CM_WAIT_MODE_MAPPING = map;
            break;
        case kGPC_StopMode:
            base->CM_STOP_MODE_MAPPING = map;
            break;
        case kGPC_SuspendMode:
            base->CM_SUSPEND_MODE_MAPPING = map;
            break;
        default:
            assert(false);
            break;
    }
}