diff --git a/module/ppu_v1/test/CMakeLists.txt b/module/ppu_v1/test/CMakeLists.txt index 066a52df3..b55ec90fe 100644 --- a/module/ppu_v1/test/CMakeLists.txt +++ b/module/ppu_v1/test/CMakeLists.txt @@ -1,6 +1,6 @@ # # Arm SCP/MCP Software -# Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -27,6 +27,8 @@ list(APPEND MOCK_REPLACEMENTS fwk_notification) include(${SCP_ROOT}/unit_test/module_common.cmake) -target_sources(${UNIT_TEST_TARGET} - PRIVATE - ${MODULE_UT_MOCK_SRC}/Mockppu_v1.c) +target_compile_definitions(${UNIT_TEST_TARGET} + PUBLIC "BUILD_HAS_MOD_POWER_DOMAIN") + +target_compile_definitions(${UNIT_TEST_TARGET} + PUBLIC "BUILD_HAS_MOD_TIMER") diff --git a/module/ppu_v1/test/config_ppu_v1.h b/module/ppu_v1/test/config_ppu_v1.h index 54463e279..56fdfc705 100644 --- a/module/ppu_v1/test/config_ppu_v1.h +++ b/module/ppu_v1/test/config_ppu_v1.h @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -10,6 +10,31 @@ #include +#include +#include +#include +#include + +enum pd_ppu_idx { + PD_PPU_IDX_0, + PD_PPU_IDX_1, + PD_PPU_IDX_COUNT, + PD_PPU_IDX_NONE = UINT32_MAX +}; + +static const struct mod_ppu_v1_pd_config pd_ppu_ctx_config[PD_PPU_IDX_COUNT] = { + [PD_PPU_IDX_0] = { + .pd_type = MOD_PD_TYPE_CORE, + .alarm_id = FWK_ID_SUB_ELEMENT_INIT(FWK_MODULE_IDX_TIMER, PD_PPU_IDX_0, 0), + .alarm_delay = 10, + }, + [PD_PPU_IDX_1] = { + .pd_type = MOD_PD_TYPE_CORE, + .alarm_id = FWK_ID_SUB_ELEMENT_INIT(FWK_MODULE_IDX_TIMER, PD_PPU_IDX_1, 0), + .alarm_delay = 10, + }, +}; + static struct mod_ppu_v1_config ppu_v1_config_data_ut = { .num_of_cores_in_cluster = 2, }; diff --git a/module/ppu_v1/test/fwk_module_idx.h b/module/ppu_v1/test/fwk_module_idx.h index 25b7ac70e..efed6c1b7 100644 --- a/module/ppu_v1/test/fwk_module_idx.h +++ b/module/ppu_v1/test/fwk_module_idx.h @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -13,6 +13,7 @@ enum fwk_module_idx { FWK_MODULE_IDX_PPU_V1, FWK_MODULE_IDX_POWER_DOMAIN, + FWK_MODULE_IDX_TIMER, FWK_MODULE_IDX_COUNT, }; @@ -22,4 +23,7 @@ static const fwk_id_t fwk_module_id_ppu_v1 = static const fwk_id_t fwk_module_id_power_domain = FWK_ID_MODULE_INIT(FWK_MODULE_IDX_POWER_DOMAIN); +static const fwk_id_t fwk_module_id_timer = + FWK_ID_MODULE_INIT(FWK_MODULE_IDX_TIMER); + #endif /* TEST_FWK_MODULE_MODULE_IDX_H */ diff --git a/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.c b/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.c new file mode 100644 index 000000000..1d6072939 --- /dev/null +++ b/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.c @@ -0,0 +1,7346 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ +#include +#include +#include +#include "cmock.h" +#include "Mockmod_ppu_v1_extra.h" + +static const char* CMockString_alarm_id = "alarm_id"; +static const char* CMockString_callback = "callback"; +static const char* CMockString_edge_sensitivity = "edge_sensitivity"; +static const char* CMockString_mask = "mask"; +static const char* CMockString_milliseconds = "milliseconds"; +static const char* CMockString_min_dyn_mode = "min_dyn_mode"; +static const char* CMockString_min_dyn_state = "min_dyn_state"; +static const char* CMockString_op_devactive = "op_devactive"; +static const char* CMockString_op_mode = "op_mode"; +static const char* CMockString_param = "param"; +static const char* CMockString_ppu = "ppu"; +static const char* CMockString_ppu_mode = "ppu_mode"; +static const char* CMockString_ppu_v1_ack_additional_interrupt = "ppu_v1_ack_additional_interrupt"; +static const char* CMockString_ppu_v1_ack_interrupt = "ppu_v1_ack_interrupt"; +static const char* CMockString_ppu_v1_ack_op_active_edge_interrupt = "ppu_v1_ack_op_active_edge_interrupt"; +static const char* CMockString_ppu_v1_ack_power_active_edge_interrupt = "ppu_v1_ack_power_active_edge_interrupt"; +static const char* CMockString_ppu_v1_additional_interrupt_mask = "ppu_v1_additional_interrupt_mask"; +static const char* CMockString_ppu_v1_additional_interrupt_unmask = "ppu_v1_additional_interrupt_unmask"; +static const char* CMockString_ppu_v1_disable_devactive = "ppu_v1_disable_devactive"; +static const char* CMockString_ppu_v1_disable_handshake = "ppu_v1_disable_handshake"; +static const char* CMockString_ppu_v1_dynamic_enable = "ppu_v1_dynamic_enable"; +static const char* CMockString_ppu_v1_get_arch_id = "ppu_v1_get_arch_id"; +static const char* CMockString_ppu_v1_get_input_edge_sensitivity = "ppu_v1_get_input_edge_sensitivity"; +static const char* CMockString_ppu_v1_get_num_opmode = "ppu_v1_get_num_opmode"; +static const char* CMockString_ppu_v1_get_op_active_edge_sensitivity = "ppu_v1_get_op_active_edge_sensitivity"; +static const char* CMockString_ppu_v1_get_operating_mode = "ppu_v1_get_operating_mode"; +static const char* CMockString_ppu_v1_get_power_mode = "ppu_v1_get_power_mode"; +static const char* CMockString_ppu_v1_get_programmed_operating_mode = "ppu_v1_get_programmed_operating_mode"; +static const char* CMockString_ppu_v1_get_programmed_power_mode = "ppu_v1_get_programmed_power_mode"; +static const char* CMockString_ppu_v1_init = "ppu_v1_init"; +static const char* CMockString_ppu_v1_interrupt_mask = "ppu_v1_interrupt_mask"; +static const char* CMockString_ppu_v1_interrupt_unmask = "ppu_v1_interrupt_unmask"; +static const char* CMockString_ppu_v1_is_additional_interrupt_pending = "ppu_v1_is_additional_interrupt_pending"; +static const char* CMockString_ppu_v1_is_dyn_policy_min_interrupt = "ppu_v1_is_dyn_policy_min_interrupt"; +static const char* CMockString_ppu_v1_is_dynamic_enabled = "ppu_v1_is_dynamic_enabled"; +static const char* CMockString_ppu_v1_is_locked = "ppu_v1_is_locked"; +static const char* CMockString_ppu_v1_is_op_active_edge_interrupt = "ppu_v1_is_op_active_edge_interrupt"; +static const char* CMockString_ppu_v1_is_op_devactive_high = "ppu_v1_is_op_devactive_high"; +static const char* CMockString_ppu_v1_is_power_active_edge_interrupt = "ppu_v1_is_power_active_edge_interrupt"; +static const char* CMockString_ppu_v1_is_power_devactive_high = "ppu_v1_is_power_devactive_high"; +static const char* CMockString_ppu_v1_lock_off_disable = "ppu_v1_lock_off_disable"; +static const char* CMockString_ppu_v1_lock_off_enable = "ppu_v1_lock_off_enable"; +static const char* CMockString_ppu_v1_off_unlock = "ppu_v1_off_unlock"; +static const char* CMockString_ppu_v1_opmode_dynamic_enable = "ppu_v1_opmode_dynamic_enable"; +static const char* CMockString_ppu_v1_request_operating_mode = "ppu_v1_request_operating_mode"; +static const char* CMockString_ppu_v1_request_power_mode = "ppu_v1_request_power_mode"; +static const char* CMockString_ppu_v1_set_input_edge_sensitivity = "ppu_v1_set_input_edge_sensitivity"; +static const char* CMockString_ppu_v1_set_op_active_edge_sensitivity = "ppu_v1_set_op_active_edge_sensitivity"; +static const char* CMockString_ppu_v1_set_power_mode = "ppu_v1_set_power_mode"; +static const char* CMockString_start_alarm_api = "start_alarm_api"; +static const char* CMockString_stop_alarm_api = "stop_alarm_api"; +static const char* CMockString_timer_ctx = "timer_ctx"; +static const char* CMockString_type = "type"; + +typedef struct _CMOCK_start_alarm_api_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + int ReturnVal; + fwk_id_t Expected_alarm_id; + unsigned int Expected_milliseconds; + enum mod_timer_alarm_type Expected_type; + cmock_mod_ppu_v1_extra_func_ptr1 Expected_callback; + uintptr_t Expected_param; + char IgnoreArg_alarm_id; + char IgnoreArg_milliseconds; + char IgnoreArg_type; + char IgnoreArg_callback; + char IgnoreArg_param; + +} CMOCK_start_alarm_api_CALL_INSTANCE; + +typedef struct _CMOCK_stop_alarm_api_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + int ReturnVal; + fwk_id_t Expected_alarm_id; + char IgnoreArg_alarm_id; + +} CMOCK_stop_alarm_api_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_init_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_init_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + int ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + struct ppu_v1_timer_ctx* Expected_timer_ctx; + int Expected_ppu_Depth; + int Expected_timer_ctx_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char ReturnThruPtr_timer_ctx_Used; + struct ppu_v1_timer_ctx* ReturnThruPtr_timer_ctx_Val; + size_t ReturnThruPtr_timer_ctx_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + char IgnoreArg_timer_ctx; + +} CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + int ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + +} CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + int ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_opmode Expected_op_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_mode; + +} CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_opmode Expected_min_dyn_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_min_dyn_mode; + +} CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_min_dyn_state; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_min_dyn_state; + +} CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_mode ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_mode ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_opmode ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_opmode ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_locked_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_is_locked_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + +} CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_op_devactive Expected_op_devactive; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_devactive; + +} CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_off_unlock_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_off_unlock_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + unsigned int Expected_mask; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_mask; + +} CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + enum ppu_v1_edge_sensitivity Expected_edge_sensitivity; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + char IgnoreArg_edge_sensitivity; + +} CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_edge_sensitivity ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + +} CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + +} CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_mode Expected_ppu_mode; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_ppu_mode; + +} CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_op_devactive Expected_op_devactive; + enum ppu_v1_edge_sensitivity Expected_edge_sensitivity; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_devactive; + char IgnoreArg_edge_sensitivity; + +} CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + enum ppu_v1_edge_sensitivity ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_op_devactive Expected_op_devactive; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_devactive; + +} CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_op_devactive Expected_op_devactive; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_devactive; + +} CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + enum ppu_v1_op_devactive Expected_op_devactive; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + char IgnoreArg_op_devactive; + +} CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + bool ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + unsigned int ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE; + +typedef struct _CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE +{ + UNITY_LINE_TYPE LineNumber; + char ExpectAnyArgsBool; + unsigned int ReturnVal; + struct ppu_v1_reg* Expected_ppu; + int Expected_ppu_Depth; + char ReturnThruPtr_ppu_Used; + struct ppu_v1_reg* ReturnThruPtr_ppu_Val; + size_t ReturnThruPtr_ppu_Size; + char IgnoreArg_ppu; + +} CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE; + +static struct Mockmod_ppu_v1_extraInstance +{ + char start_alarm_api_IgnoreBool; + int start_alarm_api_FinalReturn; + char start_alarm_api_CallbackBool; + CMOCK_start_alarm_api_CALLBACK start_alarm_api_CallbackFunctionPointer; + int start_alarm_api_CallbackCalls; + CMOCK_MEM_INDEX_TYPE start_alarm_api_CallInstance; + char stop_alarm_api_IgnoreBool; + int stop_alarm_api_FinalReturn; + char stop_alarm_api_CallbackBool; + CMOCK_stop_alarm_api_CALLBACK stop_alarm_api_CallbackFunctionPointer; + int stop_alarm_api_CallbackCalls; + CMOCK_MEM_INDEX_TYPE stop_alarm_api_CallInstance; + char ppu_v1_init_IgnoreBool; + char ppu_v1_init_CallbackBool; + CMOCK_ppu_v1_init_CALLBACK ppu_v1_init_CallbackFunctionPointer; + int ppu_v1_init_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_init_CallInstance; + char ppu_v1_set_power_mode_IgnoreBool; + int ppu_v1_set_power_mode_FinalReturn; + char ppu_v1_set_power_mode_CallbackBool; + CMOCK_ppu_v1_set_power_mode_CALLBACK ppu_v1_set_power_mode_CallbackFunctionPointer; + int ppu_v1_set_power_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_set_power_mode_CallInstance; + char ppu_v1_request_power_mode_IgnoreBool; + int ppu_v1_request_power_mode_FinalReturn; + char ppu_v1_request_power_mode_CallbackBool; + CMOCK_ppu_v1_request_power_mode_CALLBACK ppu_v1_request_power_mode_CallbackFunctionPointer; + int ppu_v1_request_power_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_request_power_mode_CallInstance; + char ppu_v1_request_operating_mode_IgnoreBool; + int ppu_v1_request_operating_mode_FinalReturn; + char ppu_v1_request_operating_mode_CallbackBool; + CMOCK_ppu_v1_request_operating_mode_CALLBACK ppu_v1_request_operating_mode_CallbackFunctionPointer; + int ppu_v1_request_operating_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_request_operating_mode_CallInstance; + char ppu_v1_opmode_dynamic_enable_IgnoreBool; + char ppu_v1_opmode_dynamic_enable_CallbackBool; + CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer; + int ppu_v1_opmode_dynamic_enable_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_opmode_dynamic_enable_CallInstance; + char ppu_v1_dynamic_enable_IgnoreBool; + char ppu_v1_dynamic_enable_CallbackBool; + CMOCK_ppu_v1_dynamic_enable_CALLBACK ppu_v1_dynamic_enable_CallbackFunctionPointer; + int ppu_v1_dynamic_enable_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_dynamic_enable_CallInstance; + char ppu_v1_lock_off_enable_IgnoreBool; + char ppu_v1_lock_off_enable_CallbackBool; + CMOCK_ppu_v1_lock_off_enable_CALLBACK ppu_v1_lock_off_enable_CallbackFunctionPointer; + int ppu_v1_lock_off_enable_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_lock_off_enable_CallInstance; + char ppu_v1_lock_off_disable_IgnoreBool; + char ppu_v1_lock_off_disable_CallbackBool; + CMOCK_ppu_v1_lock_off_disable_CALLBACK ppu_v1_lock_off_disable_CallbackFunctionPointer; + int ppu_v1_lock_off_disable_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_lock_off_disable_CallInstance; + char ppu_v1_get_power_mode_IgnoreBool; + enum ppu_v1_mode ppu_v1_get_power_mode_FinalReturn; + char ppu_v1_get_power_mode_CallbackBool; + CMOCK_ppu_v1_get_power_mode_CALLBACK ppu_v1_get_power_mode_CallbackFunctionPointer; + int ppu_v1_get_power_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_power_mode_CallInstance; + char ppu_v1_get_programmed_power_mode_IgnoreBool; + enum ppu_v1_mode ppu_v1_get_programmed_power_mode_FinalReturn; + char ppu_v1_get_programmed_power_mode_CallbackBool; + CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK ppu_v1_get_programmed_power_mode_CallbackFunctionPointer; + int ppu_v1_get_programmed_power_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_programmed_power_mode_CallInstance; + char ppu_v1_get_operating_mode_IgnoreBool; + enum ppu_v1_opmode ppu_v1_get_operating_mode_FinalReturn; + char ppu_v1_get_operating_mode_CallbackBool; + CMOCK_ppu_v1_get_operating_mode_CALLBACK ppu_v1_get_operating_mode_CallbackFunctionPointer; + int ppu_v1_get_operating_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_operating_mode_CallInstance; + char ppu_v1_get_programmed_operating_mode_IgnoreBool; + enum ppu_v1_opmode ppu_v1_get_programmed_operating_mode_FinalReturn; + char ppu_v1_get_programmed_operating_mode_CallbackBool; + CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer; + int ppu_v1_get_programmed_operating_mode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_programmed_operating_mode_CallInstance; + char ppu_v1_is_dynamic_enabled_IgnoreBool; + bool ppu_v1_is_dynamic_enabled_FinalReturn; + char ppu_v1_is_dynamic_enabled_CallbackBool; + CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK ppu_v1_is_dynamic_enabled_CallbackFunctionPointer; + int ppu_v1_is_dynamic_enabled_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_dynamic_enabled_CallInstance; + char ppu_v1_is_locked_IgnoreBool; + bool ppu_v1_is_locked_FinalReturn; + char ppu_v1_is_locked_CallbackBool; + CMOCK_ppu_v1_is_locked_CALLBACK ppu_v1_is_locked_CallbackFunctionPointer; + int ppu_v1_is_locked_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_locked_CallInstance; + char ppu_v1_is_power_devactive_high_IgnoreBool; + bool ppu_v1_is_power_devactive_high_FinalReturn; + char ppu_v1_is_power_devactive_high_CallbackBool; + CMOCK_ppu_v1_is_power_devactive_high_CALLBACK ppu_v1_is_power_devactive_high_CallbackFunctionPointer; + int ppu_v1_is_power_devactive_high_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_power_devactive_high_CallInstance; + char ppu_v1_is_op_devactive_high_IgnoreBool; + bool ppu_v1_is_op_devactive_high_FinalReturn; + char ppu_v1_is_op_devactive_high_CallbackBool; + CMOCK_ppu_v1_is_op_devactive_high_CALLBACK ppu_v1_is_op_devactive_high_CallbackFunctionPointer; + int ppu_v1_is_op_devactive_high_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_op_devactive_high_CallInstance; + char ppu_v1_off_unlock_IgnoreBool; + char ppu_v1_off_unlock_CallbackBool; + CMOCK_ppu_v1_off_unlock_CALLBACK ppu_v1_off_unlock_CallbackFunctionPointer; + int ppu_v1_off_unlock_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_off_unlock_CallInstance; + char ppu_v1_disable_devactive_IgnoreBool; + char ppu_v1_disable_devactive_CallbackBool; + CMOCK_ppu_v1_disable_devactive_CALLBACK ppu_v1_disable_devactive_CallbackFunctionPointer; + int ppu_v1_disable_devactive_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_disable_devactive_CallInstance; + char ppu_v1_disable_handshake_IgnoreBool; + char ppu_v1_disable_handshake_CallbackBool; + CMOCK_ppu_v1_disable_handshake_CALLBACK ppu_v1_disable_handshake_CallbackFunctionPointer; + int ppu_v1_disable_handshake_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_disable_handshake_CallInstance; + char ppu_v1_interrupt_mask_IgnoreBool; + char ppu_v1_interrupt_mask_CallbackBool; + CMOCK_ppu_v1_interrupt_mask_CALLBACK ppu_v1_interrupt_mask_CallbackFunctionPointer; + int ppu_v1_interrupt_mask_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_interrupt_mask_CallInstance; + char ppu_v1_additional_interrupt_mask_IgnoreBool; + char ppu_v1_additional_interrupt_mask_CallbackBool; + CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK ppu_v1_additional_interrupt_mask_CallbackFunctionPointer; + int ppu_v1_additional_interrupt_mask_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_additional_interrupt_mask_CallInstance; + char ppu_v1_interrupt_unmask_IgnoreBool; + char ppu_v1_interrupt_unmask_CallbackBool; + CMOCK_ppu_v1_interrupt_unmask_CALLBACK ppu_v1_interrupt_unmask_CallbackFunctionPointer; + int ppu_v1_interrupt_unmask_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_interrupt_unmask_CallInstance; + char ppu_v1_additional_interrupt_unmask_IgnoreBool; + char ppu_v1_additional_interrupt_unmask_CallbackBool; + CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer; + int ppu_v1_additional_interrupt_unmask_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_additional_interrupt_unmask_CallInstance; + char ppu_v1_is_additional_interrupt_pending_IgnoreBool; + bool ppu_v1_is_additional_interrupt_pending_FinalReturn; + char ppu_v1_is_additional_interrupt_pending_CallbackBool; + CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer; + int ppu_v1_is_additional_interrupt_pending_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_additional_interrupt_pending_CallInstance; + char ppu_v1_ack_interrupt_IgnoreBool; + char ppu_v1_ack_interrupt_CallbackBool; + CMOCK_ppu_v1_ack_interrupt_CALLBACK ppu_v1_ack_interrupt_CallbackFunctionPointer; + int ppu_v1_ack_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_ack_interrupt_CallInstance; + char ppu_v1_ack_additional_interrupt_IgnoreBool; + char ppu_v1_ack_additional_interrupt_CallbackBool; + CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK ppu_v1_ack_additional_interrupt_CallbackFunctionPointer; + int ppu_v1_ack_additional_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_ack_additional_interrupt_CallInstance; + char ppu_v1_set_input_edge_sensitivity_IgnoreBool; + char ppu_v1_set_input_edge_sensitivity_CallbackBool; + CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer; + int ppu_v1_set_input_edge_sensitivity_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_set_input_edge_sensitivity_CallInstance; + char ppu_v1_get_input_edge_sensitivity_IgnoreBool; + enum ppu_v1_edge_sensitivity ppu_v1_get_input_edge_sensitivity_FinalReturn; + char ppu_v1_get_input_edge_sensitivity_CallbackBool; + CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer; + int ppu_v1_get_input_edge_sensitivity_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_input_edge_sensitivity_CallInstance; + char ppu_v1_ack_power_active_edge_interrupt_IgnoreBool; + char ppu_v1_ack_power_active_edge_interrupt_CallbackBool; + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer; + int ppu_v1_ack_power_active_edge_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_ack_power_active_edge_interrupt_CallInstance; + char ppu_v1_is_power_active_edge_interrupt_IgnoreBool; + bool ppu_v1_is_power_active_edge_interrupt_FinalReturn; + char ppu_v1_is_power_active_edge_interrupt_CallbackBool; + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer; + int ppu_v1_is_power_active_edge_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_power_active_edge_interrupt_CallInstance; + char ppu_v1_set_op_active_edge_sensitivity_IgnoreBool; + char ppu_v1_set_op_active_edge_sensitivity_CallbackBool; + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer; + int ppu_v1_set_op_active_edge_sensitivity_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_set_op_active_edge_sensitivity_CallInstance; + char ppu_v1_get_op_active_edge_sensitivity_IgnoreBool; + enum ppu_v1_edge_sensitivity ppu_v1_get_op_active_edge_sensitivity_FinalReturn; + char ppu_v1_get_op_active_edge_sensitivity_CallbackBool; + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer; + int ppu_v1_get_op_active_edge_sensitivity_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_op_active_edge_sensitivity_CallInstance; + char ppu_v1_ack_op_active_edge_interrupt_IgnoreBool; + char ppu_v1_ack_op_active_edge_interrupt_CallbackBool; + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer; + int ppu_v1_ack_op_active_edge_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_ack_op_active_edge_interrupt_CallInstance; + char ppu_v1_is_op_active_edge_interrupt_IgnoreBool; + bool ppu_v1_is_op_active_edge_interrupt_FinalReturn; + char ppu_v1_is_op_active_edge_interrupt_CallbackBool; + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer; + int ppu_v1_is_op_active_edge_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_op_active_edge_interrupt_CallInstance; + char ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool; + bool ppu_v1_is_dyn_policy_min_interrupt_FinalReturn; + char ppu_v1_is_dyn_policy_min_interrupt_CallbackBool; + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer; + int ppu_v1_is_dyn_policy_min_interrupt_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_is_dyn_policy_min_interrupt_CallInstance; + char ppu_v1_get_num_opmode_IgnoreBool; + unsigned int ppu_v1_get_num_opmode_FinalReturn; + char ppu_v1_get_num_opmode_CallbackBool; + CMOCK_ppu_v1_get_num_opmode_CALLBACK ppu_v1_get_num_opmode_CallbackFunctionPointer; + int ppu_v1_get_num_opmode_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_num_opmode_CallInstance; + char ppu_v1_get_arch_id_IgnoreBool; + unsigned int ppu_v1_get_arch_id_FinalReturn; + char ppu_v1_get_arch_id_CallbackBool; + CMOCK_ppu_v1_get_arch_id_CALLBACK ppu_v1_get_arch_id_CallbackFunctionPointer; + int ppu_v1_get_arch_id_CallbackCalls; + CMOCK_MEM_INDEX_TYPE ppu_v1_get_arch_id_CallInstance; +} Mock; + +extern jmp_buf AbortFrame; + +void Mockmod_ppu_v1_extra_Verify(void) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_MEM_INDEX_TYPE call_instance; + call_instance = Mock.start_alarm_api_CallInstance; + if (Mock.start_alarm_api_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_start_alarm_api); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.start_alarm_api_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.stop_alarm_api_CallInstance; + if (Mock.stop_alarm_api_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_stop_alarm_api); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.stop_alarm_api_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_init_CallInstance; + if (Mock.ppu_v1_init_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_init); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_init_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_set_power_mode_CallInstance; + if (Mock.ppu_v1_set_power_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_set_power_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_set_power_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_request_power_mode_CallInstance; + if (Mock.ppu_v1_request_power_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_request_power_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_request_power_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_request_operating_mode_CallInstance; + if (Mock.ppu_v1_request_operating_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_request_operating_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_opmode_dynamic_enable_CallInstance; + if (Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_opmode_dynamic_enable); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_dynamic_enable_CallInstance; + if (Mock.ppu_v1_dynamic_enable_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_dynamic_enable); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_lock_off_enable_CallInstance; + if (Mock.ppu_v1_lock_off_enable_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_lock_off_enable); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_lock_off_disable_CallInstance; + if (Mock.ppu_v1_lock_off_disable_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_lock_off_disable); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_power_mode_CallInstance; + if (Mock.ppu_v1_get_power_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_power_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_power_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_programmed_power_mode_CallInstance; + if (Mock.ppu_v1_get_programmed_power_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_programmed_power_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_operating_mode_CallInstance; + if (Mock.ppu_v1_get_operating_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_operating_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_programmed_operating_mode_CallInstance; + if (Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_programmed_operating_mode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_dynamic_enabled_CallInstance; + if (Mock.ppu_v1_is_dynamic_enabled_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_dynamic_enabled); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_locked_CallInstance; + if (Mock.ppu_v1_is_locked_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_locked); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_locked_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_power_devactive_high_CallInstance; + if (Mock.ppu_v1_is_power_devactive_high_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_power_devactive_high); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_op_devactive_high_CallInstance; + if (Mock.ppu_v1_is_op_devactive_high_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_op_devactive_high); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_off_unlock_CallInstance; + if (Mock.ppu_v1_off_unlock_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_off_unlock); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_off_unlock_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_disable_devactive_CallInstance; + if (Mock.ppu_v1_disable_devactive_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_disable_devactive); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_disable_devactive_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_disable_handshake_CallInstance; + if (Mock.ppu_v1_disable_handshake_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_disable_handshake); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_disable_handshake_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_interrupt_mask_CallInstance; + if (Mock.ppu_v1_interrupt_mask_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_interrupt_mask); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_additional_interrupt_mask_CallInstance; + if (Mock.ppu_v1_additional_interrupt_mask_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_additional_interrupt_mask); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_interrupt_unmask_CallInstance; + if (Mock.ppu_v1_interrupt_unmask_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_interrupt_unmask); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_additional_interrupt_unmask_CallInstance; + if (Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_additional_interrupt_unmask); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_additional_interrupt_pending_CallInstance; + if (Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_additional_interrupt_pending); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_ack_interrupt_CallInstance; + if (Mock.ppu_v1_ack_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_ack_additional_interrupt_CallInstance; + if (Mock.ppu_v1_ack_additional_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_additional_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_set_input_edge_sensitivity_CallInstance; + if (Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_set_input_edge_sensitivity); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_input_edge_sensitivity_CallInstance; + if (Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_input_edge_sensitivity); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance; + if (Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_power_active_edge_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance; + if (Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_power_active_edge_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance; + if (Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_set_op_active_edge_sensitivity); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance; + if (Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_op_active_edge_sensitivity); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance; + if (Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_op_active_edge_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance; + if (Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_op_active_edge_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance; + if (Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_is_dyn_policy_min_interrupt); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_num_opmode_CallInstance; + if (Mock.ppu_v1_get_num_opmode_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_num_opmode); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } + call_instance = Mock.ppu_v1_get_arch_id_CallInstance; + if (Mock.ppu_v1_get_arch_id_IgnoreBool) + call_instance = CMOCK_GUTS_NONE; + if (CMOCK_GUTS_NONE != call_instance) + { + UNITY_SET_DETAIL(CMockString_ppu_v1_get_arch_id); + UNITY_TEST_FAIL(cmock_line, CMockStringCalledLess); + } + if (Mock.ppu_v1_get_arch_id_CallbackFunctionPointer != NULL) + { + call_instance = CMOCK_GUTS_NONE; + (void)call_instance; + } +} + +void Mockmod_ppu_v1_extra_Init(void) +{ + Mockmod_ppu_v1_extra_Destroy(); +} + +void Mockmod_ppu_v1_extra_Destroy(void) +{ + CMock_Guts_MemFreeAll(); + memset(&Mock, 0, sizeof(Mock)); +} + +int start_alarm_api(fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_start_alarm_api); + cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.start_alarm_api_CallInstance); + Mock.start_alarm_api_CallInstance = CMock_Guts_MemNext(Mock.start_alarm_api_CallInstance); + if (Mock.start_alarm_api_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.start_alarm_api_FinalReturn; + Mock.start_alarm_api_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.start_alarm_api_CallbackBool && + Mock.start_alarm_api_CallbackFunctionPointer != NULL) + { + int cmock_cb_ret = Mock.start_alarm_api_CallbackFunctionPointer(alarm_id, milliseconds, type, callback, param, Mock.start_alarm_api_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_alarm_id) + { + UNITY_SET_DETAILS(CMockString_start_alarm_api,CMockString_alarm_id); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_alarm_id), (void*)(&alarm_id), sizeof(fwk_id_t), cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_milliseconds) + { + UNITY_SET_DETAILS(CMockString_start_alarm_api,CMockString_milliseconds); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_milliseconds, milliseconds, cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_type) + { + UNITY_SET_DETAILS(CMockString_start_alarm_api,CMockString_type); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_type), (void*)(&type), sizeof(enum mod_timer_alarm_type), cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_callback) + { + UNITY_SET_DETAILS(CMockString_start_alarm_api,CMockString_callback); + UNITY_TEST_ASSERT_EQUAL_PTR(cmock_call_instance->Expected_callback, callback, cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_param) + { + UNITY_SET_DETAILS(CMockString_start_alarm_api,CMockString_param); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_param), (void*)(¶m), sizeof(uintptr_t), cmock_line, CMockStringMismatch); + } + } + if (Mock.start_alarm_api_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.start_alarm_api_CallbackFunctionPointer(alarm_id, milliseconds, type, callback, param, Mock.start_alarm_api_CallbackCalls++); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_start_alarm_api(CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance, fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param); +void CMockExpectParameters_start_alarm_api(CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance, fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param) +{ + memcpy((void*)(&cmock_call_instance->Expected_alarm_id), (void*)(&alarm_id), + sizeof(fwk_id_t[sizeof(alarm_id) == sizeof(fwk_id_t) ? 1 : -1])); /* add fwk_id_t to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_alarm_id = 0; + cmock_call_instance->Expected_milliseconds = milliseconds; + cmock_call_instance->IgnoreArg_milliseconds = 0; + memcpy((void*)(&cmock_call_instance->Expected_type), (void*)(&type), + sizeof(enum mod_timer_alarm_type[sizeof(type) == sizeof(enum mod_timer_alarm_type) ? 1 : -1])); /* add enum mod_timer_alarm_type to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_type = 0; + memcpy((void*)(&cmock_call_instance->Expected_callback), (void*)(&callback), + sizeof(cmock_mod_ppu_v1_extra_func_ptr1[sizeof(callback) == sizeof(cmock_mod_ppu_v1_extra_func_ptr1) ? 1 : -1])); /* add cmock_mod_ppu_v1_extra_func_ptr1 to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_callback = 0; + memcpy((void*)(&cmock_call_instance->Expected_param), (void*)(¶m), + sizeof(uintptr_t[sizeof(param) == sizeof(uintptr_t) ? 1 : -1])); /* add uintptr_t to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_param = 0; +} + +void start_alarm_api_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_start_alarm_api_CALL_INSTANCE)); + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.start_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.start_alarm_api_CallInstance, cmock_guts_index); + Mock.start_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.start_alarm_api_IgnoreBool = (char)1; +} + +void start_alarm_api_CMockStopIgnore(void) +{ + if(Mock.start_alarm_api_IgnoreBool) + Mock.start_alarm_api_CallInstance = CMock_Guts_MemNext(Mock.start_alarm_api_CallInstance); + Mock.start_alarm_api_IgnoreBool = (char)0; +} + +void start_alarm_api_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_start_alarm_api_CALL_INSTANCE)); + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.start_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.start_alarm_api_CallInstance, cmock_guts_index); + Mock.start_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void start_alarm_api_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_start_alarm_api_CALL_INSTANCE)); + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.start_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.start_alarm_api_CallInstance, cmock_guts_index); + Mock.start_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_start_alarm_api(cmock_call_instance, alarm_id, milliseconds, type, callback, param); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void start_alarm_api_AddCallback(CMOCK_start_alarm_api_CALLBACK Callback) +{ + Mock.start_alarm_api_IgnoreBool = (char)0; + Mock.start_alarm_api_CallbackBool = (char)1; + Mock.start_alarm_api_CallbackFunctionPointer = Callback; +} + +void start_alarm_api_Stub(CMOCK_start_alarm_api_CALLBACK Callback) +{ + Mock.start_alarm_api_IgnoreBool = (char)0; + Mock.start_alarm_api_CallbackBool = (char)0; + Mock.start_alarm_api_CallbackFunctionPointer = Callback; +} + +void start_alarm_api_CMockIgnoreArg_alarm_id(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.start_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_alarm_id = 1; +} + +void start_alarm_api_CMockIgnoreArg_milliseconds(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.start_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_milliseconds = 1; +} + +void start_alarm_api_CMockIgnoreArg_type(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.start_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_type = 1; +} + +void start_alarm_api_CMockIgnoreArg_callback(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.start_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_callback = 1; +} + +void start_alarm_api_CMockIgnoreArg_param(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_start_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_start_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.start_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_param = 1; +} + +int stop_alarm_api(fwk_id_t alarm_id) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_stop_alarm_api); + cmock_call_instance = (CMOCK_stop_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.stop_alarm_api_CallInstance); + Mock.stop_alarm_api_CallInstance = CMock_Guts_MemNext(Mock.stop_alarm_api_CallInstance); + if (Mock.stop_alarm_api_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.stop_alarm_api_FinalReturn; + Mock.stop_alarm_api_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.stop_alarm_api_CallbackBool && + Mock.stop_alarm_api_CallbackFunctionPointer != NULL) + { + int cmock_cb_ret = Mock.stop_alarm_api_CallbackFunctionPointer(alarm_id, Mock.stop_alarm_api_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_alarm_id) + { + UNITY_SET_DETAILS(CMockString_stop_alarm_api,CMockString_alarm_id); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_alarm_id), (void*)(&alarm_id), sizeof(fwk_id_t), cmock_line, CMockStringMismatch); + } + } + if (Mock.stop_alarm_api_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.stop_alarm_api_CallbackFunctionPointer(alarm_id, Mock.stop_alarm_api_CallbackCalls++); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_stop_alarm_api(CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance, fwk_id_t alarm_id); +void CMockExpectParameters_stop_alarm_api(CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance, fwk_id_t alarm_id) +{ + memcpy((void*)(&cmock_call_instance->Expected_alarm_id), (void*)(&alarm_id), + sizeof(fwk_id_t[sizeof(alarm_id) == sizeof(fwk_id_t) ? 1 : -1])); /* add fwk_id_t to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_alarm_id = 0; +} + +void stop_alarm_api_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_stop_alarm_api_CALL_INSTANCE)); + CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_stop_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.stop_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.stop_alarm_api_CallInstance, cmock_guts_index); + Mock.stop_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.stop_alarm_api_IgnoreBool = (char)1; +} + +void stop_alarm_api_CMockStopIgnore(void) +{ + if(Mock.stop_alarm_api_IgnoreBool) + Mock.stop_alarm_api_CallInstance = CMock_Guts_MemNext(Mock.stop_alarm_api_CallInstance); + Mock.stop_alarm_api_IgnoreBool = (char)0; +} + +void stop_alarm_api_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_stop_alarm_api_CALL_INSTANCE)); + CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_stop_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.stop_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.stop_alarm_api_CallInstance, cmock_guts_index); + Mock.stop_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void stop_alarm_api_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t alarm_id, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_stop_alarm_api_CALL_INSTANCE)); + CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_stop_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.stop_alarm_api_CallInstance = CMock_Guts_MemChain(Mock.stop_alarm_api_CallInstance, cmock_guts_index); + Mock.stop_alarm_api_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_stop_alarm_api(cmock_call_instance, alarm_id); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void stop_alarm_api_AddCallback(CMOCK_stop_alarm_api_CALLBACK Callback) +{ + Mock.stop_alarm_api_IgnoreBool = (char)0; + Mock.stop_alarm_api_CallbackBool = (char)1; + Mock.stop_alarm_api_CallbackFunctionPointer = Callback; +} + +void stop_alarm_api_Stub(CMOCK_stop_alarm_api_CALLBACK Callback) +{ + Mock.stop_alarm_api_IgnoreBool = (char)0; + Mock.stop_alarm_api_CallbackBool = (char)0; + Mock.stop_alarm_api_CallbackFunctionPointer = Callback; +} + +void stop_alarm_api_CMockIgnoreArg_alarm_id(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_stop_alarm_api_CALL_INSTANCE* cmock_call_instance = (CMOCK_stop_alarm_api_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.stop_alarm_api_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_alarm_id = 1; +} + +void ppu_v1_init(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_init); + cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_init_CallInstance); + Mock.ppu_v1_init_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_init_CallInstance); + if (Mock.ppu_v1_init_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_init_CallbackBool && + Mock.ppu_v1_init_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_init_CallbackFunctionPointer(ppu, Mock.ppu_v1_init_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_init,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_init_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_init_CallbackFunctionPointer(ppu, Mock.ppu_v1_init_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_init(CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_init(CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_init_CMockIgnore(void) +{ + Mock.ppu_v1_init_IgnoreBool = (char)1; +} + +void ppu_v1_init_CMockStopIgnore(void) +{ + Mock.ppu_v1_init_IgnoreBool = (char)0; +} + +void ppu_v1_init_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_init_CALL_INSTANCE)); + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_init_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_init_CallInstance, cmock_guts_index); + Mock.ppu_v1_init_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_init_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_init_CALL_INSTANCE)); + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_init_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_init_CallInstance, cmock_guts_index); + Mock.ppu_v1_init_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_init(cmock_call_instance, ppu, 1); +} + +void ppu_v1_init_AddCallback(CMOCK_ppu_v1_init_CALLBACK Callback) +{ + Mock.ppu_v1_init_IgnoreBool = (char)0; + Mock.ppu_v1_init_CallbackBool = (char)1; + Mock.ppu_v1_init_CallbackFunctionPointer = Callback; +} + +void ppu_v1_init_Stub(CMOCK_ppu_v1_init_CALLBACK Callback) +{ + Mock.ppu_v1_init_IgnoreBool = (char)0; + Mock.ppu_v1_init_CallbackBool = (char)0; + Mock.ppu_v1_init_CallbackFunctionPointer = Callback; +} + +void ppu_v1_init_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_init_CALL_INSTANCE)); + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_init_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_init_CallInstance, cmock_guts_index); + Mock.ppu_v1_init_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_init(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_init_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_init_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_init_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_init_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_init_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_init_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +int ppu_v1_set_power_mode(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_set_power_mode); + cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_set_power_mode_CallInstance); + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_set_power_mode_CallInstance); + if (Mock.ppu_v1_set_power_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_set_power_mode_FinalReturn; + Mock.ppu_v1_set_power_mode_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_set_power_mode_CallbackBool && + Mock.ppu_v1_set_power_mode_CallbackFunctionPointer != NULL) + { + int cmock_cb_ret = Mock.ppu_v1_set_power_mode_CallbackFunctionPointer(ppu, ppu_mode, timer_ctx, Mock.ppu_v1_set_power_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_power_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_power_mode,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_timer_ctx) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_power_mode,CMockString_timer_ctx); + if (cmock_call_instance->Expected_timer_ctx == NULL) + { UNITY_TEST_ASSERT_NULL(timer_ctx, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_timer_ctx), (void*)(timer_ctx), sizeof(struct ppu_v1_timer_ctx), cmock_call_instance->Expected_timer_ctx_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_set_power_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_set_power_mode_CallbackFunctionPointer(ppu, ppu_mode, timer_ctx, Mock.ppu_v1_set_power_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + if (cmock_call_instance->ReturnThruPtr_timer_ctx_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(timer_ctx, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)timer_ctx, (void*)cmock_call_instance->ReturnThruPtr_timer_ctx_Val, + cmock_call_instance->ReturnThruPtr_timer_ctx_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_set_power_mode(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int timer_ctx_Depth); +void CMockExpectParameters_ppu_v1_set_power_mode(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int timer_ctx_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; + cmock_call_instance->Expected_timer_ctx = timer_ctx; + cmock_call_instance->Expected_timer_ctx_Depth = timer_ctx_Depth; + cmock_call_instance->IgnoreArg_timer_ctx = 0; + cmock_call_instance->ReturnThruPtr_timer_ctx_Used = 0; +} + +void ppu_v1_set_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)1; +} + +void ppu_v1_set_power_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_set_power_mode_IgnoreBool) + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_set_power_mode_CallInstance); + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; +} + +void ppu_v1_set_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_set_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_power_mode(cmock_call_instance, ppu, 1, ppu_mode, timer_ctx, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_set_power_mode_AddCallback(CMOCK_ppu_v1_set_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_set_power_mode_CallbackBool = (char)1; + Mock.ppu_v1_set_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_power_mode_Stub(CMOCK_ppu_v1_set_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_set_power_mode_CallbackBool = (char)0; + Mock.ppu_v1_set_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int timer_ctx_Depth, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_power_mode(cmock_call_instance, ppu, ppu_Depth, ppu_mode, timer_ctx, timer_ctx_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_set_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_set_power_mode_CMockReturnMemThruPtr_timer_ctx(UNITY_LINE_TYPE cmock_line, struct ppu_v1_timer_ctx* timer_ctx, size_t cmock_size) +{ + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_timer_ctx_Used = 1; + cmock_call_instance->ReturnThruPtr_timer_ctx_Val = timer_ctx; + cmock_call_instance->ReturnThruPtr_timer_ctx_Size = cmock_size; +} + +void ppu_v1_set_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_set_power_mode_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +void ppu_v1_set_power_mode_CMockIgnoreArg_timer_ctx(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_timer_ctx = 1; +} + +int ppu_v1_request_power_mode(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_request_power_mode); + cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_request_power_mode_CallInstance); + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_request_power_mode_CallInstance); + if (Mock.ppu_v1_request_power_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_request_power_mode_FinalReturn; + Mock.ppu_v1_request_power_mode_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_request_power_mode_CallbackBool && + Mock.ppu_v1_request_power_mode_CallbackFunctionPointer != NULL) + { + int cmock_cb_ret = Mock.ppu_v1_request_power_mode_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_request_power_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_request_power_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_request_power_mode,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_request_power_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_request_power_mode_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_request_power_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_request_power_mode(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +void CMockExpectParameters_ppu_v1_request_power_mode(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; +} + +void ppu_v1_request_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)1; +} + +void ppu_v1_request_power_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_request_power_mode_IgnoreBool) + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_request_power_mode_CallInstance); + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; +} + +void ppu_v1_request_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_request_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_request_power_mode(cmock_call_instance, ppu, 1, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_request_power_mode_AddCallback(CMOCK_ppu_v1_request_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_request_power_mode_CallbackBool = (char)1; + Mock.ppu_v1_request_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_request_power_mode_Stub(CMOCK_ppu_v1_request_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_request_power_mode_CallbackBool = (char)0; + Mock.ppu_v1_request_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_request_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_request_power_mode(cmock_call_instance, ppu, ppu_Depth, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_request_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_request_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_request_power_mode_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +int ppu_v1_request_operating_mode(struct ppu_v1_reg* ppu, enum ppu_v1_opmode op_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_request_operating_mode); + cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_request_operating_mode_CallInstance); + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_request_operating_mode_CallInstance); + if (Mock.ppu_v1_request_operating_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_request_operating_mode_FinalReturn; + Mock.ppu_v1_request_operating_mode_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_request_operating_mode_CallbackBool && + Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer != NULL) + { + int cmock_cb_ret = Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer(ppu, op_mode, Mock.ppu_v1_request_operating_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_request_operating_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_request_operating_mode,CMockString_op_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_mode), (void*)(&op_mode), sizeof(enum ppu_v1_opmode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer(ppu, op_mode, Mock.ppu_v1_request_operating_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_request_operating_mode(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode op_mode); +void CMockExpectParameters_ppu_v1_request_operating_mode(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode op_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_mode), (void*)(&op_mode), + sizeof(enum ppu_v1_opmode[sizeof(op_mode) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_mode = 0; +} + +void ppu_v1_request_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)1; +} + +void ppu_v1_request_operating_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_request_operating_mode_IgnoreBool) + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_request_operating_mode_CallInstance); + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; +} + +void ppu_v1_request_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_request_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode op_mode, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_request_operating_mode(cmock_call_instance, ppu, 1, op_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_request_operating_mode_AddCallback(CMOCK_ppu_v1_request_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_request_operating_mode_CallbackBool = (char)1; + Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_request_operating_mode_Stub(CMOCK_ppu_v1_request_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_request_operating_mode_CallbackBool = (char)0; + Mock.ppu_v1_request_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_request_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode op_mode, int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_request_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_request_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_request_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_request_operating_mode(cmock_call_instance, ppu, ppu_Depth, op_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_request_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_request_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_request_operating_mode_CMockIgnoreArg_op_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_request_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_request_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_mode = 1; +} + +void ppu_v1_opmode_dynamic_enable(struct ppu_v1_reg* ppu, enum ppu_v1_opmode min_dyn_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_opmode_dynamic_enable); + cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_opmode_dynamic_enable_CallInstance); + Mock.ppu_v1_opmode_dynamic_enable_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_opmode_dynamic_enable_CallInstance); + if (Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_opmode_dynamic_enable_CallbackBool && + Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer(ppu, min_dyn_mode, Mock.ppu_v1_opmode_dynamic_enable_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_opmode_dynamic_enable,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_min_dyn_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_opmode_dynamic_enable,CMockString_min_dyn_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_min_dyn_mode), (void*)(&min_dyn_mode), sizeof(enum ppu_v1_opmode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer(ppu, min_dyn_mode, Mock.ppu_v1_opmode_dynamic_enable_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_opmode_dynamic_enable(CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode min_dyn_mode); +void CMockExpectParameters_ppu_v1_opmode_dynamic_enable(CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode min_dyn_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_min_dyn_mode), (void*)(&min_dyn_mode), + sizeof(enum ppu_v1_opmode[sizeof(min_dyn_mode) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_min_dyn_mode = 0; +} + +void ppu_v1_opmode_dynamic_enable_CMockIgnore(void) +{ + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)1; +} + +void ppu_v1_opmode_dynamic_enable_CMockStopIgnore(void) +{ + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; +} + +void ppu_v1_opmode_dynamic_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_opmode_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_opmode_dynamic_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode min_dyn_mode) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_opmode_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_opmode_dynamic_enable(cmock_call_instance, ppu, 1, min_dyn_mode); +} + +void ppu_v1_opmode_dynamic_enable_AddCallback(CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK Callback) +{ + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; + Mock.ppu_v1_opmode_dynamic_enable_CallbackBool = (char)1; + Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_opmode_dynamic_enable_Stub(CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK Callback) +{ + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; + Mock.ppu_v1_opmode_dynamic_enable_CallbackBool = (char)0; + Mock.ppu_v1_opmode_dynamic_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_opmode_dynamic_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode min_dyn_mode) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_opmode_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_opmode_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_opmode_dynamic_enable(cmock_call_instance, ppu, ppu_Depth, min_dyn_mode); +} + +void ppu_v1_opmode_dynamic_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_min_dyn_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_opmode_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_opmode_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_min_dyn_mode = 1; +} + +void ppu_v1_dynamic_enable(struct ppu_v1_reg* ppu, enum ppu_v1_mode min_dyn_state) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_dynamic_enable); + cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_dynamic_enable_CallInstance); + Mock.ppu_v1_dynamic_enable_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_dynamic_enable_CallInstance); + if (Mock.ppu_v1_dynamic_enable_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_dynamic_enable_CallbackBool && + Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer(ppu, min_dyn_state, Mock.ppu_v1_dynamic_enable_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_dynamic_enable,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_min_dyn_state) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_dynamic_enable,CMockString_min_dyn_state); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_min_dyn_state), (void*)(&min_dyn_state), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer(ppu, min_dyn_state, Mock.ppu_v1_dynamic_enable_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_dynamic_enable(CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode min_dyn_state); +void CMockExpectParameters_ppu_v1_dynamic_enable(CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode min_dyn_state) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_min_dyn_state), (void*)(&min_dyn_state), + sizeof(enum ppu_v1_mode[sizeof(min_dyn_state) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_min_dyn_state = 0; +} + +void ppu_v1_dynamic_enable_CMockIgnore(void) +{ + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)1; +} + +void ppu_v1_dynamic_enable_CMockStopIgnore(void) +{ + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; +} + +void ppu_v1_dynamic_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_dynamic_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode min_dyn_state) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_dynamic_enable(cmock_call_instance, ppu, 1, min_dyn_state); +} + +void ppu_v1_dynamic_enable_AddCallback(CMOCK_ppu_v1_dynamic_enable_CALLBACK Callback) +{ + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; + Mock.ppu_v1_dynamic_enable_CallbackBool = (char)1; + Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_dynamic_enable_Stub(CMOCK_ppu_v1_dynamic_enable_CALLBACK Callback) +{ + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; + Mock.ppu_v1_dynamic_enable_CallbackBool = (char)0; + Mock.ppu_v1_dynamic_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_dynamic_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode min_dyn_state) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_dynamic_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_dynamic_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_dynamic_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_dynamic_enable(cmock_call_instance, ppu, ppu_Depth, min_dyn_state); +} + +void ppu_v1_dynamic_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_dynamic_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_dynamic_enable_CMockIgnoreArg_min_dyn_state(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_dynamic_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_dynamic_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_min_dyn_state = 1; +} + +void ppu_v1_lock_off_enable(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_lock_off_enable); + cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_lock_off_enable_CallInstance); + Mock.ppu_v1_lock_off_enable_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_lock_off_enable_CallInstance); + if (Mock.ppu_v1_lock_off_enable_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_lock_off_enable_CallbackBool && + Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer(ppu, Mock.ppu_v1_lock_off_enable_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_lock_off_enable,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer(ppu, Mock.ppu_v1_lock_off_enable_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_lock_off_enable(CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_lock_off_enable(CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_lock_off_enable_CMockIgnore(void) +{ + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)1; +} + +void ppu_v1_lock_off_enable_CMockStopIgnore(void) +{ + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; +} + +void ppu_v1_lock_off_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_lock_off_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_lock_off_enable(cmock_call_instance, ppu, 1); +} + +void ppu_v1_lock_off_enable_AddCallback(CMOCK_ppu_v1_lock_off_enable_CALLBACK Callback) +{ + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; + Mock.ppu_v1_lock_off_enable_CallbackBool = (char)1; + Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_lock_off_enable_Stub(CMOCK_ppu_v1_lock_off_enable_CALLBACK Callback) +{ + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; + Mock.ppu_v1_lock_off_enable_CallbackBool = (char)0; + Mock.ppu_v1_lock_off_enable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_lock_off_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_enable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_enable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_enable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_lock_off_enable(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_lock_off_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_lock_off_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_lock_off_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_enable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_lock_off_enable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_lock_off_disable(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_lock_off_disable); + cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_lock_off_disable_CallInstance); + Mock.ppu_v1_lock_off_disable_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_lock_off_disable_CallInstance); + if (Mock.ppu_v1_lock_off_disable_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_lock_off_disable_CallbackBool && + Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer(ppu, Mock.ppu_v1_lock_off_disable_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_lock_off_disable,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer(ppu, Mock.ppu_v1_lock_off_disable_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_lock_off_disable(CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_lock_off_disable(CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_lock_off_disable_CMockIgnore(void) +{ + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)1; +} + +void ppu_v1_lock_off_disable_CMockStopIgnore(void) +{ + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; +} + +void ppu_v1_lock_off_disable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_disable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_disable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_lock_off_disable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_disable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_disable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_lock_off_disable(cmock_call_instance, ppu, 1); +} + +void ppu_v1_lock_off_disable_AddCallback(CMOCK_ppu_v1_lock_off_disable_CALLBACK Callback) +{ + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; + Mock.ppu_v1_lock_off_disable_CallbackBool = (char)1; + Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_lock_off_disable_Stub(CMOCK_ppu_v1_lock_off_disable_CALLBACK Callback) +{ + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; + Mock.ppu_v1_lock_off_disable_CallbackBool = (char)0; + Mock.ppu_v1_lock_off_disable_CallbackFunctionPointer = Callback; +} + +void ppu_v1_lock_off_disable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE)); + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_lock_off_disable_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_lock_off_disable_CallInstance, cmock_guts_index); + Mock.ppu_v1_lock_off_disable_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_lock_off_disable(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_lock_off_disable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_lock_off_disable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_lock_off_disable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_lock_off_disable_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_lock_off_disable_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +enum ppu_v1_mode ppu_v1_get_power_mode(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_power_mode); + cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_power_mode_CallInstance); + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_power_mode_CallInstance); + if (Mock.ppu_v1_get_power_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_power_mode_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_power_mode_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_mode[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_power_mode_CallbackBool && + Mock.ppu_v1_get_power_mode_CallbackFunctionPointer != NULL) + { + enum ppu_v1_mode cmock_cb_ret = Mock.ppu_v1_get_power_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_power_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_power_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_power_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_power_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_power_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_power_mode(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_power_mode(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)1; +} + +void ppu_v1_get_power_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_power_mode_IgnoreBool) + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_power_mode_CallInstance); + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; +} + +void ppu_v1_get_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_power_mode(cmock_call_instance, ppu, 1); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_mode[sizeof(cmock_to_return) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_power_mode_AddCallback(CMOCK_ppu_v1_get_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_power_mode_CallbackBool = (char)1; + Mock.ppu_v1_get_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_power_mode_Stub(CMOCK_ppu_v1_get_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_power_mode_CallbackBool = (char)0; + Mock.ppu_v1_get_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_power_mode(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +enum ppu_v1_mode ppu_v1_get_programmed_power_mode(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_programmed_power_mode); + cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_programmed_power_mode_CallInstance); + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_programmed_power_mode_CallInstance); + if (Mock.ppu_v1_get_programmed_power_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_programmed_power_mode_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_programmed_power_mode_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_mode[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_programmed_power_mode_CallbackBool && + Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer != NULL) + { + enum ppu_v1_mode cmock_cb_ret = Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_programmed_power_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_programmed_power_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_programmed_power_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_programmed_power_mode(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_programmed_power_mode(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_programmed_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)1; +} + +void ppu_v1_get_programmed_power_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_programmed_power_mode_IgnoreBool) + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_programmed_power_mode_CallInstance); + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; +} + +void ppu_v1_get_programmed_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_programmed_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_programmed_power_mode(cmock_call_instance, ppu, 1); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_mode[sizeof(cmock_to_return) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_programmed_power_mode_AddCallback(CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_programmed_power_mode_CallbackBool = (char)1; + Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_programmed_power_mode_Stub(CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_programmed_power_mode_CallbackBool = (char)0; + Mock.ppu_v1_get_programmed_power_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_programmed_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_power_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_power_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_programmed_power_mode(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_programmed_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_programmed_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_power_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_programmed_power_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +enum ppu_v1_opmode ppu_v1_get_operating_mode(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_operating_mode); + cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_operating_mode_CallInstance); + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_operating_mode_CallInstance); + if (Mock.ppu_v1_get_operating_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_operating_mode_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_operating_mode_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_opmode[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_operating_mode_CallbackBool && + Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer != NULL) + { + enum ppu_v1_opmode cmock_cb_ret = Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_operating_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_operating_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_operating_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_operating_mode(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_operating_mode(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)1; +} + +void ppu_v1_get_operating_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_operating_mode_IgnoreBool) + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_operating_mode_CallInstance); + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; +} + +void ppu_v1_get_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_operating_mode(cmock_call_instance, ppu, 1); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_opmode[sizeof(cmock_to_return) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_operating_mode_AddCallback(CMOCK_ppu_v1_get_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_operating_mode_CallbackBool = (char)1; + Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_operating_mode_Stub(CMOCK_ppu_v1_get_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_operating_mode_CallbackBool = (char)0; + Mock.ppu_v1_get_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_operating_mode(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +enum ppu_v1_opmode ppu_v1_get_programmed_operating_mode(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_programmed_operating_mode); + cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_programmed_operating_mode_CallInstance); + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_programmed_operating_mode_CallInstance); + if (Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_programmed_operating_mode_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_programmed_operating_mode_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_opmode[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_programmed_operating_mode_CallbackBool && + Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer != NULL) + { + enum ppu_v1_opmode cmock_cb_ret = Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_programmed_operating_mode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_programmed_operating_mode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_programmed_operating_mode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_programmed_operating_mode(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_programmed_operating_mode(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_programmed_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)1; +} + +void ppu_v1_get_programmed_operating_mode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool) + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_programmed_operating_mode_CallInstance); + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; +} + +void ppu_v1_get_programmed_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_programmed_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_programmed_operating_mode(cmock_call_instance, ppu, 1); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_opmode[sizeof(cmock_to_return) == sizeof(enum ppu_v1_opmode) ? 1 : -1])); /* add enum ppu_v1_opmode to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_programmed_operating_mode_AddCallback(CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_programmed_operating_mode_CallbackBool = (char)1; + Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_programmed_operating_mode_Stub(CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK Callback) +{ + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + Mock.ppu_v1_get_programmed_operating_mode_CallbackBool = (char)0; + Mock.ppu_v1_get_programmed_operating_mode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_programmed_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_programmed_operating_mode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_programmed_operating_mode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_programmed_operating_mode(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_programmed_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_programmed_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_programmed_operating_mode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_programmed_operating_mode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +bool ppu_v1_is_dynamic_enabled(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_dynamic_enabled); + cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_dynamic_enabled_CallInstance); + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_dynamic_enabled_CallInstance); + if (Mock.ppu_v1_is_dynamic_enabled_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_dynamic_enabled_FinalReturn; + Mock.ppu_v1_is_dynamic_enabled_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_dynamic_enabled_CallbackBool && + Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_dynamic_enabled_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_dynamic_enabled,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_dynamic_enabled_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_dynamic_enabled(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_is_dynamic_enabled(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_is_dynamic_enabled_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)1; +} + +void ppu_v1_is_dynamic_enabled_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_dynamic_enabled_IgnoreBool) + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_dynamic_enabled_CallInstance); + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; +} + +void ppu_v1_is_dynamic_enabled_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_dynamic_enabled_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_dynamic_enabled(cmock_call_instance, ppu, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_dynamic_enabled_AddCallback(CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK Callback) +{ + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + Mock.ppu_v1_is_dynamic_enabled_CallbackBool = (char)1; + Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_dynamic_enabled_Stub(CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK Callback) +{ + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + Mock.ppu_v1_is_dynamic_enabled_CallbackBool = (char)0; + Mock.ppu_v1_is_dynamic_enabled_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_dynamic_enabled_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dynamic_enabled_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dynamic_enabled_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_dynamic_enabled(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_dynamic_enabled_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_dynamic_enabled_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dynamic_enabled_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_dynamic_enabled_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +bool ppu_v1_is_locked(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_locked); + cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_locked_CallInstance); + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_locked_CallInstance); + if (Mock.ppu_v1_is_locked_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_locked_FinalReturn; + Mock.ppu_v1_is_locked_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_locked_CallbackBool && + Mock.ppu_v1_is_locked_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_locked_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_locked_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_locked,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_is_locked_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_locked_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_locked_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_locked(CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_is_locked(CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_is_locked_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_locked_CALL_INSTANCE)); + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_locked_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_locked_IgnoreBool = (char)1; +} + +void ppu_v1_is_locked_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_locked_IgnoreBool) + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_locked_CallInstance); + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; +} + +void ppu_v1_is_locked_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_locked_CALL_INSTANCE)); + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_locked_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_locked_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_locked_CALL_INSTANCE)); + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_locked_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_locked(cmock_call_instance, ppu, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_locked_AddCallback(CMOCK_ppu_v1_is_locked_CALLBACK Callback) +{ + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + Mock.ppu_v1_is_locked_CallbackBool = (char)1; + Mock.ppu_v1_is_locked_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_locked_Stub(CMOCK_ppu_v1_is_locked_CALLBACK Callback) +{ + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + Mock.ppu_v1_is_locked_CallbackBool = (char)0; + Mock.ppu_v1_is_locked_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_locked_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_locked_CALL_INSTANCE)); + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_locked_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_locked_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_locked_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_locked(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_locked_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_locked_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_locked_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_locked_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_locked_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_locked_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +bool ppu_v1_is_power_devactive_high(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_power_devactive_high); + cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_power_devactive_high_CallInstance); + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_power_devactive_high_CallInstance); + if (Mock.ppu_v1_is_power_devactive_high_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_power_devactive_high_FinalReturn; + Mock.ppu_v1_is_power_devactive_high_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_power_devactive_high_CallbackBool && + Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_is_power_devactive_high_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_power_devactive_high,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_power_devactive_high,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_is_power_devactive_high_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_power_devactive_high(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +void CMockExpectParameters_ppu_v1_is_power_devactive_high(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; +} + +void ppu_v1_is_power_devactive_high_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)1; +} + +void ppu_v1_is_power_devactive_high_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_power_devactive_high_IgnoreBool) + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_power_devactive_high_CallInstance); + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; +} + +void ppu_v1_is_power_devactive_high_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_power_devactive_high_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_power_devactive_high(cmock_call_instance, ppu, 1, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_power_devactive_high_AddCallback(CMOCK_ppu_v1_is_power_devactive_high_CALLBACK Callback) +{ + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + Mock.ppu_v1_is_power_devactive_high_CallbackBool = (char)1; + Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_power_devactive_high_Stub(CMOCK_ppu_v1_is_power_devactive_high_CALLBACK Callback) +{ + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + Mock.ppu_v1_is_power_devactive_high_CallbackBool = (char)0; + Mock.ppu_v1_is_power_devactive_high_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_power_devactive_high_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_power_devactive_high(cmock_call_instance, ppu, ppu_Depth, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_power_devactive_high_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +bool ppu_v1_is_op_devactive_high(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_op_devactive_high); + cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_op_devactive_high_CallInstance); + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_op_devactive_high_CallInstance); + if (Mock.ppu_v1_is_op_devactive_high_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_op_devactive_high_FinalReturn; + Mock.ppu_v1_is_op_devactive_high_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_op_devactive_high_CallbackBool && + Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_is_op_devactive_high_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_op_devactive_high,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_devactive) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_op_devactive_high,CMockString_op_devactive); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), sizeof(enum ppu_v1_op_devactive), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_is_op_devactive_high_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_op_devactive_high(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive); +void CMockExpectParameters_ppu_v1_is_op_devactive_high(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), + sizeof(enum ppu_v1_op_devactive[sizeof(op_devactive) == sizeof(enum ppu_v1_op_devactive) ? 1 : -1])); /* add enum ppu_v1_op_devactive to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_devactive = 0; +} + +void ppu_v1_is_op_devactive_high_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)1; +} + +void ppu_v1_is_op_devactive_high_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_op_devactive_high_IgnoreBool) + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_op_devactive_high_CallInstance); + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; +} + +void ppu_v1_is_op_devactive_high_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_op_devactive_high_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_op_devactive_high(cmock_call_instance, ppu, 1, op_devactive); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_op_devactive_high_AddCallback(CMOCK_ppu_v1_is_op_devactive_high_CALLBACK Callback) +{ + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + Mock.ppu_v1_is_op_devactive_high_CallbackBool = (char)1; + Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_op_devactive_high_Stub(CMOCK_ppu_v1_is_op_devactive_high_CALLBACK Callback) +{ + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + Mock.ppu_v1_is_op_devactive_high_CallbackBool = (char)0; + Mock.ppu_v1_is_op_devactive_high_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_op_devactive_high_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_devactive_high_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_devactive_high_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_devactive_high_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_op_devactive_high(cmock_call_instance, ppu, ppu_Depth, op_devactive); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_op_devactive_high_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_op_devactive_high_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_is_op_devactive_high_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_devactive_high_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_devactive_high_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_devactive = 1; +} + +void ppu_v1_off_unlock(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_off_unlock); + cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_off_unlock_CallInstance); + Mock.ppu_v1_off_unlock_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_off_unlock_CallInstance); + if (Mock.ppu_v1_off_unlock_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_off_unlock_CallbackBool && + Mock.ppu_v1_off_unlock_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_off_unlock_CallbackFunctionPointer(ppu, Mock.ppu_v1_off_unlock_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_off_unlock,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_off_unlock_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_off_unlock_CallbackFunctionPointer(ppu, Mock.ppu_v1_off_unlock_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_off_unlock(CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_off_unlock(CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_off_unlock_CMockIgnore(void) +{ + Mock.ppu_v1_off_unlock_IgnoreBool = (char)1; +} + +void ppu_v1_off_unlock_CMockStopIgnore(void) +{ + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; +} + +void ppu_v1_off_unlock_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_off_unlock_CALL_INSTANCE)); + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_off_unlock_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_off_unlock_CallInstance, cmock_guts_index); + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_off_unlock_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_off_unlock_CALL_INSTANCE)); + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_off_unlock_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_off_unlock_CallInstance, cmock_guts_index); + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_off_unlock(cmock_call_instance, ppu, 1); +} + +void ppu_v1_off_unlock_AddCallback(CMOCK_ppu_v1_off_unlock_CALLBACK Callback) +{ + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; + Mock.ppu_v1_off_unlock_CallbackBool = (char)1; + Mock.ppu_v1_off_unlock_CallbackFunctionPointer = Callback; +} + +void ppu_v1_off_unlock_Stub(CMOCK_ppu_v1_off_unlock_CALLBACK Callback) +{ + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; + Mock.ppu_v1_off_unlock_CallbackBool = (char)0; + Mock.ppu_v1_off_unlock_CallbackFunctionPointer = Callback; +} + +void ppu_v1_off_unlock_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_off_unlock_CALL_INSTANCE)); + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_off_unlock_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_off_unlock_CallInstance, cmock_guts_index); + Mock.ppu_v1_off_unlock_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_off_unlock(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_off_unlock_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_off_unlock_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_off_unlock_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_off_unlock_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_off_unlock_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_off_unlock_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_disable_devactive(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_disable_devactive); + cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_disable_devactive_CallInstance); + Mock.ppu_v1_disable_devactive_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_disable_devactive_CallInstance); + if (Mock.ppu_v1_disable_devactive_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_disable_devactive_CallbackBool && + Mock.ppu_v1_disable_devactive_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_disable_devactive_CallbackFunctionPointer(ppu, Mock.ppu_v1_disable_devactive_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_disable_devactive,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_disable_devactive_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_disable_devactive_CallbackFunctionPointer(ppu, Mock.ppu_v1_disable_devactive_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_disable_devactive(CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_disable_devactive(CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_disable_devactive_CMockIgnore(void) +{ + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)1; +} + +void ppu_v1_disable_devactive_CMockStopIgnore(void) +{ + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; +} + +void ppu_v1_disable_devactive_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_devactive_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_devactive_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_disable_devactive_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_devactive_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_devactive_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_disable_devactive(cmock_call_instance, ppu, 1); +} + +void ppu_v1_disable_devactive_AddCallback(CMOCK_ppu_v1_disable_devactive_CALLBACK Callback) +{ + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; + Mock.ppu_v1_disable_devactive_CallbackBool = (char)1; + Mock.ppu_v1_disable_devactive_CallbackFunctionPointer = Callback; +} + +void ppu_v1_disable_devactive_Stub(CMOCK_ppu_v1_disable_devactive_CALLBACK Callback) +{ + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; + Mock.ppu_v1_disable_devactive_CallbackBool = (char)0; + Mock.ppu_v1_disable_devactive_CallbackFunctionPointer = Callback; +} + +void ppu_v1_disable_devactive_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_devactive_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_devactive_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_devactive_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_disable_devactive(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_disable_devactive_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_disable_devactive_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_disable_devactive_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_devactive_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_disable_devactive_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_disable_handshake(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_disable_handshake); + cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_disable_handshake_CallInstance); + Mock.ppu_v1_disable_handshake_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_disable_handshake_CallInstance); + if (Mock.ppu_v1_disable_handshake_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_disable_handshake_CallbackBool && + Mock.ppu_v1_disable_handshake_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_disable_handshake_CallbackFunctionPointer(ppu, Mock.ppu_v1_disable_handshake_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_disable_handshake,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_disable_handshake_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_disable_handshake_CallbackFunctionPointer(ppu, Mock.ppu_v1_disable_handshake_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_disable_handshake(CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_disable_handshake(CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_disable_handshake_CMockIgnore(void) +{ + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)1; +} + +void ppu_v1_disable_handshake_CMockStopIgnore(void) +{ + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; +} + +void ppu_v1_disable_handshake_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_handshake_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_handshake_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_disable_handshake_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_handshake_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_handshake_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_disable_handshake(cmock_call_instance, ppu, 1); +} + +void ppu_v1_disable_handshake_AddCallback(CMOCK_ppu_v1_disable_handshake_CALLBACK Callback) +{ + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; + Mock.ppu_v1_disable_handshake_CallbackBool = (char)1; + Mock.ppu_v1_disable_handshake_CallbackFunctionPointer = Callback; +} + +void ppu_v1_disable_handshake_Stub(CMOCK_ppu_v1_disable_handshake_CALLBACK Callback) +{ + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; + Mock.ppu_v1_disable_handshake_CallbackBool = (char)0; + Mock.ppu_v1_disable_handshake_CallbackFunctionPointer = Callback; +} + +void ppu_v1_disable_handshake_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE)); + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_disable_handshake_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_disable_handshake_CallInstance, cmock_guts_index); + Mock.ppu_v1_disable_handshake_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_disable_handshake(cmock_call_instance, ppu, ppu_Depth); +} + +void ppu_v1_disable_handshake_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_disable_handshake_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_disable_handshake_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_disable_handshake_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_disable_handshake_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_interrupt_mask(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_interrupt_mask); + cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_interrupt_mask_CallInstance); + Mock.ppu_v1_interrupt_mask_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_interrupt_mask_CallInstance); + if (Mock.ppu_v1_interrupt_mask_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_interrupt_mask_CallbackBool && + Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_interrupt_mask_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_interrupt_mask,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_interrupt_mask,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_interrupt_mask_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_interrupt_mask(CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_interrupt_mask(CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_interrupt_mask_CMockIgnore(void) +{ + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)1; +} + +void ppu_v1_interrupt_mask_CMockStopIgnore(void) +{ + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; +} + +void ppu_v1_interrupt_mask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_interrupt_mask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_interrupt_mask(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_interrupt_mask_AddCallback(CMOCK_ppu_v1_interrupt_mask_CALLBACK Callback) +{ + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; + Mock.ppu_v1_interrupt_mask_CallbackBool = (char)1; + Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_interrupt_mask_Stub(CMOCK_ppu_v1_interrupt_mask_CALLBACK Callback) +{ + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; + Mock.ppu_v1_interrupt_mask_CallbackBool = (char)0; + Mock.ppu_v1_interrupt_mask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_interrupt_mask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_interrupt_mask(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_interrupt_mask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_interrupt_mask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_interrupt_mask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_additional_interrupt_mask(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_additional_interrupt_mask); + cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_additional_interrupt_mask_CallInstance); + Mock.ppu_v1_additional_interrupt_mask_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_additional_interrupt_mask_CallInstance); + if (Mock.ppu_v1_additional_interrupt_mask_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_additional_interrupt_mask_CallbackBool && + Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_additional_interrupt_mask_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_additional_interrupt_mask,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_additional_interrupt_mask,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_additional_interrupt_mask_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_additional_interrupt_mask(CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_additional_interrupt_mask(CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_additional_interrupt_mask_CMockIgnore(void) +{ + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)1; +} + +void ppu_v1_additional_interrupt_mask_CMockStopIgnore(void) +{ + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; +} + +void ppu_v1_additional_interrupt_mask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_additional_interrupt_mask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_additional_interrupt_mask(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_additional_interrupt_mask_AddCallback(CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK Callback) +{ + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; + Mock.ppu_v1_additional_interrupt_mask_CallbackBool = (char)1; + Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_additional_interrupt_mask_Stub(CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK Callback) +{ + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; + Mock.ppu_v1_additional_interrupt_mask_CallbackBool = (char)0; + Mock.ppu_v1_additional_interrupt_mask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_additional_interrupt_mask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_mask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_mask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_additional_interrupt_mask(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_additional_interrupt_mask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_additional_interrupt_mask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_additional_interrupt_mask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_mask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_mask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_interrupt_unmask(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_interrupt_unmask); + cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_interrupt_unmask_CallInstance); + Mock.ppu_v1_interrupt_unmask_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_interrupt_unmask_CallInstance); + if (Mock.ppu_v1_interrupt_unmask_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_interrupt_unmask_CallbackBool && + Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_interrupt_unmask_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_interrupt_unmask,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_interrupt_unmask,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_interrupt_unmask_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_interrupt_unmask(CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_interrupt_unmask(CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_interrupt_unmask_CMockIgnore(void) +{ + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)1; +} + +void ppu_v1_interrupt_unmask_CMockStopIgnore(void) +{ + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; +} + +void ppu_v1_interrupt_unmask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_interrupt_unmask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_interrupt_unmask(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_interrupt_unmask_AddCallback(CMOCK_ppu_v1_interrupt_unmask_CALLBACK Callback) +{ + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; + Mock.ppu_v1_interrupt_unmask_CallbackBool = (char)1; + Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_interrupt_unmask_Stub(CMOCK_ppu_v1_interrupt_unmask_CALLBACK Callback) +{ + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; + Mock.ppu_v1_interrupt_unmask_CallbackBool = (char)0; + Mock.ppu_v1_interrupt_unmask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_interrupt_unmask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_interrupt_unmask(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_interrupt_unmask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_interrupt_unmask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_interrupt_unmask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_additional_interrupt_unmask(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_additional_interrupt_unmask); + cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_additional_interrupt_unmask_CallInstance); + Mock.ppu_v1_additional_interrupt_unmask_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_additional_interrupt_unmask_CallInstance); + if (Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_additional_interrupt_unmask_CallbackBool && + Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_additional_interrupt_unmask_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_additional_interrupt_unmask,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_additional_interrupt_unmask,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_additional_interrupt_unmask_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_additional_interrupt_unmask(CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_additional_interrupt_unmask(CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_additional_interrupt_unmask_CMockIgnore(void) +{ + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)1; +} + +void ppu_v1_additional_interrupt_unmask_CMockStopIgnore(void) +{ + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; +} + +void ppu_v1_additional_interrupt_unmask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_additional_interrupt_unmask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_additional_interrupt_unmask(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_additional_interrupt_unmask_AddCallback(CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK Callback) +{ + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; + Mock.ppu_v1_additional_interrupt_unmask_CallbackBool = (char)1; + Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_additional_interrupt_unmask_Stub(CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK Callback) +{ + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; + Mock.ppu_v1_additional_interrupt_unmask_CallbackBool = (char)0; + Mock.ppu_v1_additional_interrupt_unmask_CallbackFunctionPointer = Callback; +} + +void ppu_v1_additional_interrupt_unmask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE)); + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_additional_interrupt_unmask_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance, cmock_guts_index); + Mock.ppu_v1_additional_interrupt_unmask_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_additional_interrupt_unmask(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_additional_interrupt_unmask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_additional_interrupt_unmask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_additional_interrupt_unmask_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +bool ppu_v1_is_additional_interrupt_pending(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_additional_interrupt_pending); + cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance); + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance); + if (Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_additional_interrupt_pending_FinalReturn; + Mock.ppu_v1_is_additional_interrupt_pending_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_additional_interrupt_pending_CallbackBool && + Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_is_additional_interrupt_pending_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_additional_interrupt_pending,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_additional_interrupt_pending,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_is_additional_interrupt_pending_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_additional_interrupt_pending(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_is_additional_interrupt_pending(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE)); + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)1; +} + +void ppu_v1_is_additional_interrupt_pending_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool) + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance); + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; +} + +void ppu_v1_is_additional_interrupt_pending_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE)); + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_additional_interrupt_pending_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE)); + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_additional_interrupt_pending(cmock_call_instance, ppu, 1, mask); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_additional_interrupt_pending_AddCallback(CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK Callback) +{ + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + Mock.ppu_v1_is_additional_interrupt_pending_CallbackBool = (char)1; + Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_additional_interrupt_pending_Stub(CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK Callback) +{ + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + Mock.ppu_v1_is_additional_interrupt_pending_CallbackBool = (char)0; + Mock.ppu_v1_is_additional_interrupt_pending_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_additional_interrupt_pending_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE)); + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_additional_interrupt_pending_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_additional_interrupt_pending_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_additional_interrupt_pending(cmock_call_instance, ppu, ppu_Depth, mask); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_additional_interrupt_pending_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_additional_interrupt_pending_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_additional_interrupt_pending_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_ack_interrupt(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_ack_interrupt_CallInstance); + Mock.ppu_v1_ack_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_ack_interrupt_CallInstance); + if (Mock.ppu_v1_ack_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_ack_interrupt_CallbackBool && + Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_ack_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_interrupt,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_ack_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_ack_interrupt(CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_ack_interrupt(CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_ack_interrupt_CMockIgnore(void) +{ + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_ack_interrupt_CMockStopIgnore(void) +{ + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_ack_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_ack_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_interrupt(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_ack_interrupt_AddCallback(CMOCK_ppu_v1_ack_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_interrupt_Stub(CMOCK_ppu_v1_ack_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_ack_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_interrupt(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_ack_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_ack_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_ack_interrupt_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_ack_additional_interrupt(struct ppu_v1_reg* ppu, unsigned int mask) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_additional_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_ack_additional_interrupt_CallInstance); + Mock.ppu_v1_ack_additional_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_ack_additional_interrupt_CallInstance); + if (Mock.ppu_v1_ack_additional_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_ack_additional_interrupt_CallbackBool && + Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_ack_additional_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_additional_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_mask) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_additional_interrupt,CMockString_mask); + UNITY_TEST_ASSERT_EQUAL_HEX32(cmock_call_instance->Expected_mask, mask, cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer(ppu, mask, Mock.ppu_v1_ack_additional_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_ack_additional_interrupt(CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +void CMockExpectParameters_ppu_v1_ack_additional_interrupt(CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + cmock_call_instance->Expected_mask = mask; + cmock_call_instance->IgnoreArg_mask = 0; +} + +void ppu_v1_ack_additional_interrupt_CMockIgnore(void) +{ + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_ack_additional_interrupt_CMockStopIgnore(void) +{ + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_ack_additional_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_additional_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_ack_additional_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_additional_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_additional_interrupt(cmock_call_instance, ppu, 1, mask); +} + +void ppu_v1_ack_additional_interrupt_AddCallback(CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_additional_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_additional_interrupt_Stub(CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_additional_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_ack_additional_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_additional_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_additional_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_additional_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_additional_interrupt(cmock_call_instance, ppu, ppu_Depth, mask); +} + +void ppu_v1_ack_additional_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_ack_additional_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_ack_additional_interrupt_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_additional_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_additional_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_mask = 1; +} + +void ppu_v1_set_input_edge_sensitivity(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_set_input_edge_sensitivity); + cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance); + Mock.ppu_v1_set_input_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance); + if (Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_set_input_edge_sensitivity_CallbackBool && + Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer(ppu, ppu_mode, edge_sensitivity, Mock.ppu_v1_set_input_edge_sensitivity_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_input_edge_sensitivity,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_input_edge_sensitivity,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_edge_sensitivity) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_input_edge_sensitivity,CMockString_edge_sensitivity); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_edge_sensitivity), (void*)(&edge_sensitivity), sizeof(enum ppu_v1_edge_sensitivity), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer(ppu, ppu_mode, edge_sensitivity, Mock.ppu_v1_set_input_edge_sensitivity_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_set_input_edge_sensitivity(CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity); +void CMockExpectParameters_ppu_v1_set_input_edge_sensitivity(CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; + memcpy((void*)(&cmock_call_instance->Expected_edge_sensitivity), (void*)(&edge_sensitivity), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(edge_sensitivity) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_edge_sensitivity = 0; +} + +void ppu_v1_set_input_edge_sensitivity_CMockIgnore(void) +{ + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)1; +} + +void ppu_v1_set_input_edge_sensitivity_CMockStopIgnore(void) +{ + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; +} + +void ppu_v1_set_input_edge_sensitivity_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_set_input_edge_sensitivity_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_input_edge_sensitivity(cmock_call_instance, ppu, 1, ppu_mode, edge_sensitivity); +} + +void ppu_v1_set_input_edge_sensitivity_AddCallback(CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_set_input_edge_sensitivity_CallbackBool = (char)1; + Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_input_edge_sensitivity_Stub(CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_set_input_edge_sensitivity_CallbackBool = (char)0; + Mock.ppu_v1_set_input_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_input_edge_sensitivity_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_input_edge_sensitivity(cmock_call_instance, ppu, ppu_Depth, ppu_mode, edge_sensitivity); +} + +void ppu_v1_set_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_edge_sensitivity = 1; +} + +enum ppu_v1_edge_sensitivity ppu_v1_get_input_edge_sensitivity(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_input_edge_sensitivity); + cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance); + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance); + if (Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_input_edge_sensitivity_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_input_edge_sensitivity_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_input_edge_sensitivity_CallbackBool && + Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + enum ppu_v1_edge_sensitivity cmock_cb_ret = Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_get_input_edge_sensitivity_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_input_edge_sensitivity,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_input_edge_sensitivity,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_get_input_edge_sensitivity_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_input_edge_sensitivity(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +void CMockExpectParameters_ppu_v1_get_input_edge_sensitivity(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; +} + +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)1; +} + +void ppu_v1_get_input_edge_sensitivity_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool) + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance); + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; +} + +void ppu_v1_get_input_edge_sensitivity_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_input_edge_sensitivity_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_input_edge_sensitivity(cmock_call_instance, ppu, 1, ppu_mode); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(cmock_to_return) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_input_edge_sensitivity_AddCallback(CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_get_input_edge_sensitivity_CallbackBool = (char)1; + Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_input_edge_sensitivity_Stub(CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_get_input_edge_sensitivity_CallbackBool = (char)0; + Mock.ppu_v1_get_input_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_input_edge_sensitivity_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_input_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_input_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_input_edge_sensitivity(cmock_call_instance, ppu, ppu_Depth, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_input_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_input_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +void ppu_v1_ack_power_active_edge_interrupt(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_power_active_edge_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance); + Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance); + if (Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackBool && + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_power_active_edge_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_power_active_edge_interrupt,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_ack_power_active_edge_interrupt(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +void CMockExpectParameters_ppu_v1_ack_power_active_edge_interrupt(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnore(void) +{ + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockStopIgnore(void) +{ + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_power_active_edge_interrupt(cmock_call_instance, ppu, 1, ppu_mode); +} + +void ppu_v1_ack_power_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_power_active_edge_interrupt_Stub(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_ack_power_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_power_active_edge_interrupt(cmock_call_instance, ppu, ppu_Depth, ppu_mode); +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +bool ppu_v1_is_power_active_edge_interrupt(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_power_active_edge_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance); + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance); + if (Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_power_active_edge_interrupt_FinalReturn; + Mock.ppu_v1_is_power_active_edge_interrupt_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_power_active_edge_interrupt_CallbackBool && + Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_is_power_active_edge_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_power_active_edge_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_ppu_mode) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_power_active_edge_interrupt,CMockString_ppu_mode); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), sizeof(enum ppu_v1_mode), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer(ppu, ppu_mode, Mock.ppu_v1_is_power_active_edge_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_power_active_edge_interrupt(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +void CMockExpectParameters_ppu_v1_is_power_active_edge_interrupt(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_ppu_mode), (void*)(&ppu_mode), + sizeof(enum ppu_v1_mode[sizeof(ppu_mode) == sizeof(enum ppu_v1_mode) ? 1 : -1])); /* add enum ppu_v1_mode to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_ppu_mode = 0; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool) + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance); + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_power_active_edge_interrupt(cmock_call_instance, ppu, 1, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_power_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_power_active_edge_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_power_active_edge_interrupt_Stub(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_power_active_edge_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_is_power_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_power_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_power_active_edge_interrupt(cmock_call_instance, ppu, ppu_Depth, ppu_mode); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_power_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_power_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu_mode = 1; +} + +void ppu_v1_set_op_active_edge_sensitivity(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_set_op_active_edge_sensitivity); + cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance); + Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance); + if (Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackBool && + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer(ppu, op_devactive, edge_sensitivity, Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_op_active_edge_sensitivity,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_devactive) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_op_active_edge_sensitivity,CMockString_op_devactive); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), sizeof(enum ppu_v1_op_devactive), cmock_line, CMockStringMismatch); + } + if (!cmock_call_instance->IgnoreArg_edge_sensitivity) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_set_op_active_edge_sensitivity,CMockString_edge_sensitivity); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_edge_sensitivity), (void*)(&edge_sensitivity), sizeof(enum ppu_v1_edge_sensitivity), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer(ppu, op_devactive, edge_sensitivity, Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_set_op_active_edge_sensitivity(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity); +void CMockExpectParameters_ppu_v1_set_op_active_edge_sensitivity(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), + sizeof(enum ppu_v1_op_devactive[sizeof(op_devactive) == sizeof(enum ppu_v1_op_devactive) ? 1 : -1])); /* add enum ppu_v1_op_devactive to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_devactive = 0; + memcpy((void*)(&cmock_call_instance->Expected_edge_sensitivity), (void*)(&edge_sensitivity), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(edge_sensitivity) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_edge_sensitivity = 0; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnore(void) +{ + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)1; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockStopIgnore(void) +{ + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_op_active_edge_sensitivity(cmock_call_instance, ppu, 1, op_devactive, edge_sensitivity); +} + +void ppu_v1_set_op_active_edge_sensitivity_AddCallback(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackBool = (char)1; + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_op_active_edge_sensitivity_Stub(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackBool = (char)0; + Mock.ppu_v1_set_op_active_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_set_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_set_op_active_edge_sensitivity(cmock_call_instance, ppu, ppu_Depth, op_devactive, edge_sensitivity); +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_devactive = 1; +} + +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_set_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_edge_sensitivity = 1; +} + +enum ppu_v1_edge_sensitivity ppu_v1_get_op_active_edge_sensitivity(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_op_active_edge_sensitivity); + cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance); + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance); + if (Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_op_active_edge_sensitivity_FinalReturn; + memcpy((void*)(&Mock.ppu_v1_get_op_active_edge_sensitivity_FinalReturn), (void*)(&cmock_call_instance->ReturnVal), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(cmock_call_instance->ReturnVal) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackBool && + Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + enum ppu_v1_edge_sensitivity cmock_cb_ret = Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_op_active_edge_sensitivity,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_devactive) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_op_active_edge_sensitivity,CMockString_op_devactive); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), sizeof(enum ppu_v1_op_devactive), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_op_active_edge_sensitivity(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive); +void CMockExpectParameters_ppu_v1_get_op_active_edge_sensitivity(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), + sizeof(enum ppu_v1_op_devactive[sizeof(op_devactive) == sizeof(enum ppu_v1_op_devactive) ? 1 : -1])); /* add enum ppu_v1_op_devactive to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_devactive = 0; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)1; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool) + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance); + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_op_active_edge_sensitivity(cmock_call_instance, ppu, 1, op_devactive); + memcpy((void*)(&cmock_call_instance->ReturnVal), (void*)(&cmock_to_return), + sizeof(enum ppu_v1_edge_sensitivity[sizeof(cmock_to_return) == sizeof(enum ppu_v1_edge_sensitivity) ? 1 : -1])); /* add enum ppu_v1_edge_sensitivity to :treat_as_array if this causes an error */ +} + +void ppu_v1_get_op_active_edge_sensitivity_AddCallback(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackBool = (char)1; + Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_op_active_edge_sensitivity_Stub(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK Callback) +{ + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackBool = (char)0; + Mock.ppu_v1_get_op_active_edge_sensitivity_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE)); + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_op_active_edge_sensitivity_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_op_active_edge_sensitivity(cmock_call_instance, ppu, ppu_Depth, op_devactive); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_op_active_edge_sensitivity_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_devactive = 1; +} + +void ppu_v1_ack_op_active_edge_interrupt(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_ack_op_active_edge_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance); + Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance); + if (Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + return; + } + if (!Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackBool && + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_op_active_edge_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_devactive) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_ack_op_active_edge_interrupt,CMockString_op_devactive); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), sizeof(enum ppu_v1_op_devactive), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); +} + +void CMockExpectParameters_ppu_v1_ack_op_active_edge_interrupt(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive); +void CMockExpectParameters_ppu_v1_ack_op_active_edge_interrupt(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), + sizeof(enum ppu_v1_op_devactive[sizeof(op_devactive) == sizeof(enum ppu_v1_op_devactive) ? 1 : -1])); /* add enum ppu_v1_op_devactive to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_devactive = 0; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnore(void) +{ + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockStopIgnore(void) +{ + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_op_active_edge_interrupt(cmock_call_instance, ppu, 1, op_devactive); +} + +void ppu_v1_ack_op_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_op_active_edge_interrupt_Stub(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_ack_op_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_ack_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_ack_op_active_edge_interrupt(cmock_call_instance, ppu, ppu_Depth, op_devactive); +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_ack_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_devactive = 1; +} + +bool ppu_v1_is_op_active_edge_interrupt(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_op_active_edge_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance); + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance); + if (Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_op_active_edge_interrupt_FinalReturn; + Mock.ppu_v1_is_op_active_edge_interrupt_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_op_active_edge_interrupt_CallbackBool && + Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_is_op_active_edge_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_op_active_edge_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + if (!cmock_call_instance->IgnoreArg_op_devactive) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_op_active_edge_interrupt,CMockString_op_devactive); + UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), sizeof(enum ppu_v1_op_devactive), cmock_line, CMockStringMismatch); + } + } + if (Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer(ppu, op_devactive, Mock.ppu_v1_is_op_active_edge_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_op_active_edge_interrupt(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive); +void CMockExpectParameters_ppu_v1_is_op_active_edge_interrupt(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; + memcpy((void*)(&cmock_call_instance->Expected_op_devactive), (void*)(&op_devactive), + sizeof(enum ppu_v1_op_devactive[sizeof(op_devactive) == sizeof(enum ppu_v1_op_devactive) ? 1 : -1])); /* add enum ppu_v1_op_devactive to :treat_as_array if this causes an error */ + cmock_call_instance->IgnoreArg_op_devactive = 0; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool) + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance); + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_op_active_edge_interrupt(cmock_call_instance, ppu, 1, op_devactive); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_op_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_op_active_edge_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_op_active_edge_interrupt_Stub(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_op_active_edge_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_is_op_active_edge_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_op_active_edge_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_op_active_edge_interrupt(cmock_call_instance, ppu, ppu_Depth, op_devactive); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_op_active_edge_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_op_active_edge_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_op_devactive = 1; +} + +bool ppu_v1_is_dyn_policy_min_interrupt(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_is_dyn_policy_min_interrupt); + cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance); + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance); + if (Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_is_dyn_policy_min_interrupt_FinalReturn; + Mock.ppu_v1_is_dyn_policy_min_interrupt_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackBool && + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer != NULL) + { + bool cmock_cb_ret = Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_is_dyn_policy_min_interrupt,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer(ppu, Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_is_dyn_policy_min_interrupt(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_is_dyn_policy_min_interrupt(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)1; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool) + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance); + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_dyn_policy_min_interrupt(cmock_call_instance, ppu, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_dyn_policy_min_interrupt_AddCallback(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackBool = (char)1; + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_dyn_policy_min_interrupt_Stub(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK Callback) +{ + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackBool = (char)0; + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallbackFunctionPointer = Callback; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE)); + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance, cmock_guts_index); + Mock.ppu_v1_is_dyn_policy_min_interrupt_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_is_dyn_policy_min_interrupt(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_is_dyn_policy_min_interrupt_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +unsigned int ppu_v1_get_num_opmode(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_num_opmode); + cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_num_opmode_CallInstance); + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_num_opmode_CallInstance); + if (Mock.ppu_v1_get_num_opmode_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_num_opmode_FinalReturn; + Mock.ppu_v1_get_num_opmode_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_num_opmode_CallbackBool && + Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer != NULL) + { + unsigned int cmock_cb_ret = Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_num_opmode_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_num_opmode,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_num_opmode_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_num_opmode(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_num_opmode(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_num_opmode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_num_opmode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)1; +} + +void ppu_v1_get_num_opmode_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_num_opmode_IgnoreBool) + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_num_opmode_CallInstance); + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; +} + +void ppu_v1_get_num_opmode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_num_opmode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_num_opmode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_num_opmode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_num_opmode(cmock_call_instance, ppu, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_num_opmode_AddCallback(CMOCK_ppu_v1_get_num_opmode_CALLBACK Callback) +{ + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + Mock.ppu_v1_get_num_opmode_CallbackBool = (char)1; + Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_num_opmode_Stub(CMOCK_ppu_v1_get_num_opmode_CALLBACK Callback) +{ + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + Mock.ppu_v1_get_num_opmode_CallbackBool = (char)0; + Mock.ppu_v1_get_num_opmode_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_num_opmode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE)); + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_num_opmode_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_num_opmode_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_num_opmode_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_num_opmode(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_num_opmode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_num_opmode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_num_opmode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_num_opmode_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_num_opmode_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + +unsigned int ppu_v1_get_arch_id(struct ppu_v1_reg* ppu) +{ + UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM; + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance; + UNITY_SET_DETAIL(CMockString_ppu_v1_get_arch_id); + cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppu_v1_get_arch_id_CallInstance); + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_arch_id_CallInstance); + if (Mock.ppu_v1_get_arch_id_IgnoreBool) + { + UNITY_CLR_DETAILS(); + if (cmock_call_instance == NULL) + return Mock.ppu_v1_get_arch_id_FinalReturn; + Mock.ppu_v1_get_arch_id_FinalReturn = cmock_call_instance->ReturnVal; + return cmock_call_instance->ReturnVal; + } + if (!Mock.ppu_v1_get_arch_id_CallbackBool && + Mock.ppu_v1_get_arch_id_CallbackFunctionPointer != NULL) + { + unsigned int cmock_cb_ret = Mock.ppu_v1_get_arch_id_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_arch_id_CallbackCalls++); + UNITY_CLR_DETAILS(); + return cmock_cb_ret; + } + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore); + cmock_line = cmock_call_instance->LineNumber; + if (!cmock_call_instance->ExpectAnyArgsBool) + { + if (!cmock_call_instance->IgnoreArg_ppu) + { + UNITY_SET_DETAILS(CMockString_ppu_v1_get_arch_id,CMockString_ppu); + if (cmock_call_instance->Expected_ppu == NULL) + { UNITY_TEST_ASSERT_NULL(ppu, cmock_line, CMockStringExpNULL); } + else + { UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_ppu), (void*)(ppu), sizeof(struct ppu_v1_reg), cmock_call_instance->Expected_ppu_Depth, cmock_line, CMockStringMismatch); } + } + } + if (Mock.ppu_v1_get_arch_id_CallbackFunctionPointer != NULL) + { + cmock_call_instance->ReturnVal = Mock.ppu_v1_get_arch_id_CallbackFunctionPointer(ppu, Mock.ppu_v1_get_arch_id_CallbackCalls++); + } + if (cmock_call_instance->ReturnThruPtr_ppu_Used) + { + UNITY_TEST_ASSERT_NOT_NULL(ppu, cmock_line, CMockStringPtrIsNULL); + memcpy((void*)ppu, (void*)cmock_call_instance->ReturnThruPtr_ppu_Val, + cmock_call_instance->ReturnThruPtr_ppu_Size); + } + UNITY_CLR_DETAILS(); + return cmock_call_instance->ReturnVal; +} + +void CMockExpectParameters_ppu_v1_get_arch_id(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth); +void CMockExpectParameters_ppu_v1_get_arch_id(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance, struct ppu_v1_reg* ppu, int ppu_Depth) +{ + cmock_call_instance->Expected_ppu = ppu; + cmock_call_instance->Expected_ppu_Depth = ppu_Depth; + cmock_call_instance->IgnoreArg_ppu = 0; + cmock_call_instance->ReturnThruPtr_ppu_Used = 0; +} + +void ppu_v1_get_arch_id_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE)); + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_arch_id_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)1; +} + +void ppu_v1_get_arch_id_CMockStopIgnore(void) +{ + if(Mock.ppu_v1_get_arch_id_IgnoreBool) + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemNext(Mock.ppu_v1_get_arch_id_CallInstance); + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; +} + +void ppu_v1_get_arch_id_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE)); + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_arch_id_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + cmock_call_instance->ReturnVal = cmock_to_return; + cmock_call_instance->ExpectAnyArgsBool = (char)1; +} + +void ppu_v1_get_arch_id_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE)); + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_arch_id_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_arch_id(cmock_call_instance, ppu, 1); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_arch_id_AddCallback(CMOCK_ppu_v1_get_arch_id_CALLBACK Callback) +{ + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + Mock.ppu_v1_get_arch_id_CallbackBool = (char)1; + Mock.ppu_v1_get_arch_id_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_arch_id_Stub(CMOCK_ppu_v1_get_arch_id_CALLBACK Callback) +{ + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + Mock.ppu_v1_get_arch_id_CallbackBool = (char)0; + Mock.ppu_v1_get_arch_id_CallbackFunctionPointer = Callback; +} + +void ppu_v1_get_arch_id_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int cmock_to_return) +{ + CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE)); + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory); + memset(cmock_call_instance, 0, sizeof(*cmock_call_instance)); + Mock.ppu_v1_get_arch_id_CallInstance = CMock_Guts_MemChain(Mock.ppu_v1_get_arch_id_CallInstance, cmock_guts_index); + Mock.ppu_v1_get_arch_id_IgnoreBool = (char)0; + cmock_call_instance->LineNumber = cmock_line; + cmock_call_instance->ExpectAnyArgsBool = (char)0; + CMockExpectParameters_ppu_v1_get_arch_id(cmock_call_instance, ppu, ppu_Depth); + cmock_call_instance->ReturnVal = cmock_to_return; +} + +void ppu_v1_get_arch_id_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size) +{ + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_arch_id_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringPtrPreExp); + cmock_call_instance->ReturnThruPtr_ppu_Used = 1; + cmock_call_instance->ReturnThruPtr_ppu_Val = ppu; + cmock_call_instance->ReturnThruPtr_ppu_Size = cmock_size; +} + +void ppu_v1_get_arch_id_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line) +{ + CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppu_v1_get_arch_id_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.ppu_v1_get_arch_id_CallInstance)); + UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp); + cmock_call_instance->IgnoreArg_ppu = 1; +} + diff --git a/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.h b/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.h new file mode 100644 index 000000000..cc5119169 --- /dev/null +++ b/module/ppu_v1/test/mocks/Mockmod_ppu_v1_extra.h @@ -0,0 +1,865 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ +#ifndef _MOCKMOD_PPU_V1_EXTRA_H +#define _MOCKMOD_PPU_V1_EXTRA_H + +#include "unity.h" +#include "mod_ppu_v1_extra.h" + +/* Ignore the following warnings, since we are copying code */ +#if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) +#if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) +#pragma GCC diagnostic push +#endif +#if !defined(__clang__) +#pragma GCC diagnostic ignored "-Wpragmas" +#endif +#pragma GCC diagnostic ignored "-Wunknown-pragmas" +#pragma GCC diagnostic ignored "-Wduplicate-decl-specifier" +#endif + +void Mockmod_ppu_v1_extra_Init(void); +void Mockmod_ppu_v1_extra_Destroy(void); +void Mockmod_ppu_v1_extra_Verify(void); + + +typedef void(*cmock_mod_ppu_v1_extra_func_ptr1)(uintptr_t param); + + +#define start_alarm_api_IgnoreAndReturn(cmock_retval) start_alarm_api_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void start_alarm_api_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define start_alarm_api_StopIgnore() start_alarm_api_CMockStopIgnore() +void start_alarm_api_CMockStopIgnore(void); +#define start_alarm_api_ExpectAnyArgsAndReturn(cmock_retval) start_alarm_api_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void start_alarm_api_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define start_alarm_api_ExpectAndReturn(alarm_id, milliseconds, type, callback, param, cmock_retval) start_alarm_api_CMockExpectAndReturn(__LINE__, alarm_id, milliseconds, type, callback, param, cmock_retval) +void start_alarm_api_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param, int cmock_to_return); +typedef int (* CMOCK_start_alarm_api_CALLBACK)(fwk_id_t alarm_id, unsigned int milliseconds, enum mod_timer_alarm_type type, cmock_mod_ppu_v1_extra_func_ptr1 callback, uintptr_t param, int cmock_num_calls); +void start_alarm_api_AddCallback(CMOCK_start_alarm_api_CALLBACK Callback); +void start_alarm_api_Stub(CMOCK_start_alarm_api_CALLBACK Callback); +#define start_alarm_api_StubWithCallback start_alarm_api_Stub +#define start_alarm_api_IgnoreArg_alarm_id() start_alarm_api_CMockIgnoreArg_alarm_id(__LINE__) +void start_alarm_api_CMockIgnoreArg_alarm_id(UNITY_LINE_TYPE cmock_line); +#define start_alarm_api_IgnoreArg_milliseconds() start_alarm_api_CMockIgnoreArg_milliseconds(__LINE__) +void start_alarm_api_CMockIgnoreArg_milliseconds(UNITY_LINE_TYPE cmock_line); +#define start_alarm_api_IgnoreArg_type() start_alarm_api_CMockIgnoreArg_type(__LINE__) +void start_alarm_api_CMockIgnoreArg_type(UNITY_LINE_TYPE cmock_line); +#define start_alarm_api_IgnoreArg_callback() start_alarm_api_CMockIgnoreArg_callback(__LINE__) +void start_alarm_api_CMockIgnoreArg_callback(UNITY_LINE_TYPE cmock_line); +#define start_alarm_api_IgnoreArg_param() start_alarm_api_CMockIgnoreArg_param(__LINE__) +void start_alarm_api_CMockIgnoreArg_param(UNITY_LINE_TYPE cmock_line); +#define stop_alarm_api_IgnoreAndReturn(cmock_retval) stop_alarm_api_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void stop_alarm_api_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define stop_alarm_api_StopIgnore() stop_alarm_api_CMockStopIgnore() +void stop_alarm_api_CMockStopIgnore(void); +#define stop_alarm_api_ExpectAnyArgsAndReturn(cmock_retval) stop_alarm_api_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void stop_alarm_api_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define stop_alarm_api_ExpectAndReturn(alarm_id, cmock_retval) stop_alarm_api_CMockExpectAndReturn(__LINE__, alarm_id, cmock_retval) +void stop_alarm_api_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t alarm_id, int cmock_to_return); +typedef int (* CMOCK_stop_alarm_api_CALLBACK)(fwk_id_t alarm_id, int cmock_num_calls); +void stop_alarm_api_AddCallback(CMOCK_stop_alarm_api_CALLBACK Callback); +void stop_alarm_api_Stub(CMOCK_stop_alarm_api_CALLBACK Callback); +#define stop_alarm_api_StubWithCallback stop_alarm_api_Stub +#define stop_alarm_api_IgnoreArg_alarm_id() stop_alarm_api_CMockIgnoreArg_alarm_id(__LINE__) +void stop_alarm_api_CMockIgnoreArg_alarm_id(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_init_Ignore() ppu_v1_init_CMockIgnore() +void ppu_v1_init_CMockIgnore(void); +#define ppu_v1_init_StopIgnore() ppu_v1_init_CMockStopIgnore() +void ppu_v1_init_CMockStopIgnore(void); +#define ppu_v1_init_ExpectAnyArgs() ppu_v1_init_CMockExpectAnyArgs(__LINE__) +void ppu_v1_init_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_init_Expect(ppu) ppu_v1_init_CMockExpect(__LINE__, ppu) +void ppu_v1_init_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_init_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_init_AddCallback(CMOCK_ppu_v1_init_CALLBACK Callback); +void ppu_v1_init_Stub(CMOCK_ppu_v1_init_CALLBACK Callback); +#define ppu_v1_init_StubWithCallback ppu_v1_init_Stub +#define ppu_v1_init_ExpectWithArray(ppu, ppu_Depth) ppu_v1_init_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_init_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_init_ReturnThruPtr_ppu(ppu) ppu_v1_init_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_init_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_init_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_init_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_init_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_init_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_init_IgnoreArg_ppu() ppu_v1_init_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_init_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_power_mode_IgnoreAndReturn(cmock_retval) ppu_v1_set_power_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_set_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_set_power_mode_StopIgnore() ppu_v1_set_power_mode_CMockStopIgnore() +void ppu_v1_set_power_mode_CMockStopIgnore(void); +#define ppu_v1_set_power_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_set_power_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_set_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_set_power_mode_ExpectAndReturn(ppu, ppu_mode, timer_ctx, cmock_retval) ppu_v1_set_power_mode_CMockExpectAndReturn(__LINE__, ppu, ppu_mode, timer_ctx, cmock_retval) +void ppu_v1_set_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int cmock_to_return); +typedef int (* CMOCK_ppu_v1_set_power_mode_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int cmock_num_calls); +void ppu_v1_set_power_mode_AddCallback(CMOCK_ppu_v1_set_power_mode_CALLBACK Callback); +void ppu_v1_set_power_mode_Stub(CMOCK_ppu_v1_set_power_mode_CALLBACK Callback); +#define ppu_v1_set_power_mode_StubWithCallback ppu_v1_set_power_mode_Stub +#define ppu_v1_set_power_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, ppu_mode, timer_ctx, timer_ctx_Depth, cmock_retval) ppu_v1_set_power_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, ppu_mode, timer_ctx, timer_ctx_Depth, cmock_retval) +void ppu_v1_set_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, struct ppu_v1_timer_ctx* timer_ctx, int timer_ctx_Depth, int cmock_to_return); +#define ppu_v1_set_power_mode_ReturnThruPtr_ppu(ppu) ppu_v1_set_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_set_power_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_set_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_set_power_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_set_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_set_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_set_power_mode_ReturnThruPtr_timer_ctx(timer_ctx) ppu_v1_set_power_mode_CMockReturnMemThruPtr_timer_ctx(__LINE__, timer_ctx, sizeof(struct ppu_v1_timer_ctx)) +#define ppu_v1_set_power_mode_ReturnArrayThruPtr_timer_ctx(timer_ctx, cmock_len) ppu_v1_set_power_mode_CMockReturnMemThruPtr_timer_ctx(__LINE__, timer_ctx, cmock_len * sizeof(*timer_ctx)) +#define ppu_v1_set_power_mode_ReturnMemThruPtr_timer_ctx(timer_ctx, cmock_size) ppu_v1_set_power_mode_CMockReturnMemThruPtr_timer_ctx(__LINE__, timer_ctx, cmock_size) +void ppu_v1_set_power_mode_CMockReturnMemThruPtr_timer_ctx(UNITY_LINE_TYPE cmock_line, struct ppu_v1_timer_ctx* timer_ctx, size_t cmock_size); +#define ppu_v1_set_power_mode_IgnoreArg_ppu() ppu_v1_set_power_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_set_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_power_mode_IgnoreArg_ppu_mode() ppu_v1_set_power_mode_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_set_power_mode_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_power_mode_IgnoreArg_timer_ctx() ppu_v1_set_power_mode_CMockIgnoreArg_timer_ctx(__LINE__) +void ppu_v1_set_power_mode_CMockIgnoreArg_timer_ctx(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_request_power_mode_IgnoreAndReturn(cmock_retval) ppu_v1_request_power_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_request_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_request_power_mode_StopIgnore() ppu_v1_request_power_mode_CMockStopIgnore() +void ppu_v1_request_power_mode_CMockStopIgnore(void); +#define ppu_v1_request_power_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_request_power_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_request_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_request_power_mode_ExpectAndReturn(ppu, ppu_mode, cmock_retval) ppu_v1_request_power_mode_CMockExpectAndReturn(__LINE__, ppu, ppu_mode, cmock_retval) +void ppu_v1_request_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_to_return); +typedef int (* CMOCK_ppu_v1_request_power_mode_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_num_calls); +void ppu_v1_request_power_mode_AddCallback(CMOCK_ppu_v1_request_power_mode_CALLBACK Callback); +void ppu_v1_request_power_mode_Stub(CMOCK_ppu_v1_request_power_mode_CALLBACK Callback); +#define ppu_v1_request_power_mode_StubWithCallback ppu_v1_request_power_mode_Stub +#define ppu_v1_request_power_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, ppu_mode, cmock_retval) ppu_v1_request_power_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, ppu_mode, cmock_retval) +void ppu_v1_request_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, int cmock_to_return); +#define ppu_v1_request_power_mode_ReturnThruPtr_ppu(ppu) ppu_v1_request_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_request_power_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_request_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_request_power_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_request_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_request_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_request_power_mode_IgnoreArg_ppu() ppu_v1_request_power_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_request_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_request_power_mode_IgnoreArg_ppu_mode() ppu_v1_request_power_mode_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_request_power_mode_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_request_operating_mode_IgnoreAndReturn(cmock_retval) ppu_v1_request_operating_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_request_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_request_operating_mode_StopIgnore() ppu_v1_request_operating_mode_CMockStopIgnore() +void ppu_v1_request_operating_mode_CMockStopIgnore(void); +#define ppu_v1_request_operating_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_request_operating_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_request_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); +#define ppu_v1_request_operating_mode_ExpectAndReturn(ppu, op_mode, cmock_retval) ppu_v1_request_operating_mode_CMockExpectAndReturn(__LINE__, ppu, op_mode, cmock_retval) +void ppu_v1_request_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode op_mode, int cmock_to_return); +typedef int (* CMOCK_ppu_v1_request_operating_mode_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_opmode op_mode, int cmock_num_calls); +void ppu_v1_request_operating_mode_AddCallback(CMOCK_ppu_v1_request_operating_mode_CALLBACK Callback); +void ppu_v1_request_operating_mode_Stub(CMOCK_ppu_v1_request_operating_mode_CALLBACK Callback); +#define ppu_v1_request_operating_mode_StubWithCallback ppu_v1_request_operating_mode_Stub +#define ppu_v1_request_operating_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, op_mode, cmock_retval) ppu_v1_request_operating_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, op_mode, cmock_retval) +void ppu_v1_request_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode op_mode, int cmock_to_return); +#define ppu_v1_request_operating_mode_ReturnThruPtr_ppu(ppu) ppu_v1_request_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_request_operating_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_request_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_request_operating_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_request_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_request_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_request_operating_mode_IgnoreArg_ppu() ppu_v1_request_operating_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_request_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_request_operating_mode_IgnoreArg_op_mode() ppu_v1_request_operating_mode_CMockIgnoreArg_op_mode(__LINE__) +void ppu_v1_request_operating_mode_CMockIgnoreArg_op_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_opmode_dynamic_enable_Ignore() ppu_v1_opmode_dynamic_enable_CMockIgnore() +void ppu_v1_opmode_dynamic_enable_CMockIgnore(void); +#define ppu_v1_opmode_dynamic_enable_StopIgnore() ppu_v1_opmode_dynamic_enable_CMockStopIgnore() +void ppu_v1_opmode_dynamic_enable_CMockStopIgnore(void); +#define ppu_v1_opmode_dynamic_enable_ExpectAnyArgs() ppu_v1_opmode_dynamic_enable_CMockExpectAnyArgs(__LINE__) +void ppu_v1_opmode_dynamic_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_opmode_dynamic_enable_Expect(ppu, min_dyn_mode) ppu_v1_opmode_dynamic_enable_CMockExpect(__LINE__, ppu, min_dyn_mode) +void ppu_v1_opmode_dynamic_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode min_dyn_mode); +typedef void (* CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_opmode min_dyn_mode, int cmock_num_calls); +void ppu_v1_opmode_dynamic_enable_AddCallback(CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK Callback); +void ppu_v1_opmode_dynamic_enable_Stub(CMOCK_ppu_v1_opmode_dynamic_enable_CALLBACK Callback); +#define ppu_v1_opmode_dynamic_enable_StubWithCallback ppu_v1_opmode_dynamic_enable_Stub +#define ppu_v1_opmode_dynamic_enable_ExpectWithArray(ppu, ppu_Depth, min_dyn_mode) ppu_v1_opmode_dynamic_enable_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, min_dyn_mode) +void ppu_v1_opmode_dynamic_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode min_dyn_mode); +#define ppu_v1_opmode_dynamic_enable_ReturnThruPtr_ppu(ppu) ppu_v1_opmode_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_opmode_dynamic_enable_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_opmode_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_opmode_dynamic_enable_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_opmode_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_opmode_dynamic_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_opmode_dynamic_enable_IgnoreArg_ppu() ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_opmode_dynamic_enable_IgnoreArg_min_dyn_mode() ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_min_dyn_mode(__LINE__) +void ppu_v1_opmode_dynamic_enable_CMockIgnoreArg_min_dyn_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_dynamic_enable_Ignore() ppu_v1_dynamic_enable_CMockIgnore() +void ppu_v1_dynamic_enable_CMockIgnore(void); +#define ppu_v1_dynamic_enable_StopIgnore() ppu_v1_dynamic_enable_CMockStopIgnore() +void ppu_v1_dynamic_enable_CMockStopIgnore(void); +#define ppu_v1_dynamic_enable_ExpectAnyArgs() ppu_v1_dynamic_enable_CMockExpectAnyArgs(__LINE__) +void ppu_v1_dynamic_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_dynamic_enable_Expect(ppu, min_dyn_state) ppu_v1_dynamic_enable_CMockExpect(__LINE__, ppu, min_dyn_state) +void ppu_v1_dynamic_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode min_dyn_state); +typedef void (* CMOCK_ppu_v1_dynamic_enable_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode min_dyn_state, int cmock_num_calls); +void ppu_v1_dynamic_enable_AddCallback(CMOCK_ppu_v1_dynamic_enable_CALLBACK Callback); +void ppu_v1_dynamic_enable_Stub(CMOCK_ppu_v1_dynamic_enable_CALLBACK Callback); +#define ppu_v1_dynamic_enable_StubWithCallback ppu_v1_dynamic_enable_Stub +#define ppu_v1_dynamic_enable_ExpectWithArray(ppu, ppu_Depth, min_dyn_state) ppu_v1_dynamic_enable_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, min_dyn_state) +void ppu_v1_dynamic_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode min_dyn_state); +#define ppu_v1_dynamic_enable_ReturnThruPtr_ppu(ppu) ppu_v1_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_dynamic_enable_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_dynamic_enable_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_dynamic_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_dynamic_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_dynamic_enable_IgnoreArg_ppu() ppu_v1_dynamic_enable_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_dynamic_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_dynamic_enable_IgnoreArg_min_dyn_state() ppu_v1_dynamic_enable_CMockIgnoreArg_min_dyn_state(__LINE__) +void ppu_v1_dynamic_enable_CMockIgnoreArg_min_dyn_state(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_lock_off_enable_Ignore() ppu_v1_lock_off_enable_CMockIgnore() +void ppu_v1_lock_off_enable_CMockIgnore(void); +#define ppu_v1_lock_off_enable_StopIgnore() ppu_v1_lock_off_enable_CMockStopIgnore() +void ppu_v1_lock_off_enable_CMockStopIgnore(void); +#define ppu_v1_lock_off_enable_ExpectAnyArgs() ppu_v1_lock_off_enable_CMockExpectAnyArgs(__LINE__) +void ppu_v1_lock_off_enable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_lock_off_enable_Expect(ppu) ppu_v1_lock_off_enable_CMockExpect(__LINE__, ppu) +void ppu_v1_lock_off_enable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_lock_off_enable_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_lock_off_enable_AddCallback(CMOCK_ppu_v1_lock_off_enable_CALLBACK Callback); +void ppu_v1_lock_off_enable_Stub(CMOCK_ppu_v1_lock_off_enable_CALLBACK Callback); +#define ppu_v1_lock_off_enable_StubWithCallback ppu_v1_lock_off_enable_Stub +#define ppu_v1_lock_off_enable_ExpectWithArray(ppu, ppu_Depth) ppu_v1_lock_off_enable_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_lock_off_enable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_lock_off_enable_ReturnThruPtr_ppu(ppu) ppu_v1_lock_off_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_lock_off_enable_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_lock_off_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_lock_off_enable_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_lock_off_enable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_lock_off_enable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_lock_off_enable_IgnoreArg_ppu() ppu_v1_lock_off_enable_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_lock_off_enable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_lock_off_disable_Ignore() ppu_v1_lock_off_disable_CMockIgnore() +void ppu_v1_lock_off_disable_CMockIgnore(void); +#define ppu_v1_lock_off_disable_StopIgnore() ppu_v1_lock_off_disable_CMockStopIgnore() +void ppu_v1_lock_off_disable_CMockStopIgnore(void); +#define ppu_v1_lock_off_disable_ExpectAnyArgs() ppu_v1_lock_off_disable_CMockExpectAnyArgs(__LINE__) +void ppu_v1_lock_off_disable_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_lock_off_disable_Expect(ppu) ppu_v1_lock_off_disable_CMockExpect(__LINE__, ppu) +void ppu_v1_lock_off_disable_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_lock_off_disable_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_lock_off_disable_AddCallback(CMOCK_ppu_v1_lock_off_disable_CALLBACK Callback); +void ppu_v1_lock_off_disable_Stub(CMOCK_ppu_v1_lock_off_disable_CALLBACK Callback); +#define ppu_v1_lock_off_disable_StubWithCallback ppu_v1_lock_off_disable_Stub +#define ppu_v1_lock_off_disable_ExpectWithArray(ppu, ppu_Depth) ppu_v1_lock_off_disable_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_lock_off_disable_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_lock_off_disable_ReturnThruPtr_ppu(ppu) ppu_v1_lock_off_disable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_lock_off_disable_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_lock_off_disable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_lock_off_disable_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_lock_off_disable_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_lock_off_disable_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_lock_off_disable_IgnoreArg_ppu() ppu_v1_lock_off_disable_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_lock_off_disable_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_power_mode_IgnoreAndReturn(cmock_retval) ppu_v1_get_power_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_power_mode_StopIgnore() ppu_v1_get_power_mode_CMockStopIgnore() +void ppu_v1_get_power_mode_CMockStopIgnore(void); +#define ppu_v1_get_power_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_power_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_power_mode_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_power_mode_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode cmock_to_return); +typedef enum ppu_v1_mode (* CMOCK_ppu_v1_get_power_mode_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_power_mode_AddCallback(CMOCK_ppu_v1_get_power_mode_CALLBACK Callback); +void ppu_v1_get_power_mode_Stub(CMOCK_ppu_v1_get_power_mode_CALLBACK Callback); +#define ppu_v1_get_power_mode_StubWithCallback ppu_v1_get_power_mode_Stub +#define ppu_v1_get_power_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_power_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_power_mode_ReturnThruPtr_ppu(ppu) ppu_v1_get_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_power_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_power_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_power_mode_IgnoreArg_ppu() ppu_v1_get_power_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_programmed_power_mode_IgnoreAndReturn(cmock_retval) ppu_v1_get_programmed_power_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_programmed_power_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_programmed_power_mode_StopIgnore() ppu_v1_get_programmed_power_mode_CMockStopIgnore() +void ppu_v1_get_programmed_power_mode_CMockStopIgnore(void); +#define ppu_v1_get_programmed_power_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_programmed_power_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_programmed_power_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_programmed_power_mode_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_programmed_power_mode_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_programmed_power_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode cmock_to_return); +typedef enum ppu_v1_mode (* CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_programmed_power_mode_AddCallback(CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK Callback); +void ppu_v1_get_programmed_power_mode_Stub(CMOCK_ppu_v1_get_programmed_power_mode_CALLBACK Callback); +#define ppu_v1_get_programmed_power_mode_StubWithCallback ppu_v1_get_programmed_power_mode_Stub +#define ppu_v1_get_programmed_power_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_programmed_power_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_programmed_power_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode cmock_to_return); +#define ppu_v1_get_programmed_power_mode_ReturnThruPtr_ppu(ppu) ppu_v1_get_programmed_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_programmed_power_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_programmed_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_programmed_power_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_programmed_power_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_programmed_power_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_programmed_power_mode_IgnoreArg_ppu() ppu_v1_get_programmed_power_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_programmed_power_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_operating_mode_IgnoreAndReturn(cmock_retval) ppu_v1_get_operating_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_operating_mode_StopIgnore() ppu_v1_get_operating_mode_CMockStopIgnore() +void ppu_v1_get_operating_mode_CMockStopIgnore(void); +#define ppu_v1_get_operating_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_operating_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_operating_mode_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_operating_mode_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode cmock_to_return); +typedef enum ppu_v1_opmode (* CMOCK_ppu_v1_get_operating_mode_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_operating_mode_AddCallback(CMOCK_ppu_v1_get_operating_mode_CALLBACK Callback); +void ppu_v1_get_operating_mode_Stub(CMOCK_ppu_v1_get_operating_mode_CALLBACK Callback); +#define ppu_v1_get_operating_mode_StubWithCallback ppu_v1_get_operating_mode_Stub +#define ppu_v1_get_operating_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_operating_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_operating_mode_ReturnThruPtr_ppu(ppu) ppu_v1_get_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_operating_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_operating_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_operating_mode_IgnoreArg_ppu() ppu_v1_get_operating_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_programmed_operating_mode_IgnoreAndReturn(cmock_retval) ppu_v1_get_programmed_operating_mode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_programmed_operating_mode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_programmed_operating_mode_StopIgnore() ppu_v1_get_programmed_operating_mode_CMockStopIgnore() +void ppu_v1_get_programmed_operating_mode_CMockStopIgnore(void); +#define ppu_v1_get_programmed_operating_mode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_programmed_operating_mode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_programmed_operating_mode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_programmed_operating_mode_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_programmed_operating_mode_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_programmed_operating_mode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_opmode cmock_to_return); +typedef enum ppu_v1_opmode (* CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_programmed_operating_mode_AddCallback(CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK Callback); +void ppu_v1_get_programmed_operating_mode_Stub(CMOCK_ppu_v1_get_programmed_operating_mode_CALLBACK Callback); +#define ppu_v1_get_programmed_operating_mode_StubWithCallback ppu_v1_get_programmed_operating_mode_Stub +#define ppu_v1_get_programmed_operating_mode_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_programmed_operating_mode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_programmed_operating_mode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_opmode cmock_to_return); +#define ppu_v1_get_programmed_operating_mode_ReturnThruPtr_ppu(ppu) ppu_v1_get_programmed_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_programmed_operating_mode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_programmed_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_programmed_operating_mode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_programmed_operating_mode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_programmed_operating_mode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_programmed_operating_mode_IgnoreArg_ppu() ppu_v1_get_programmed_operating_mode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_programmed_operating_mode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_dynamic_enabled_IgnoreAndReturn(cmock_retval) ppu_v1_is_dynamic_enabled_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_dynamic_enabled_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_dynamic_enabled_StopIgnore() ppu_v1_is_dynamic_enabled_CMockStopIgnore() +void ppu_v1_is_dynamic_enabled_CMockStopIgnore(void); +#define ppu_v1_is_dynamic_enabled_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_dynamic_enabled_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_dynamic_enabled_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_dynamic_enabled_ExpectAndReturn(ppu, cmock_retval) ppu_v1_is_dynamic_enabled_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_is_dynamic_enabled_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_is_dynamic_enabled_AddCallback(CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK Callback); +void ppu_v1_is_dynamic_enabled_Stub(CMOCK_ppu_v1_is_dynamic_enabled_CALLBACK Callback); +#define ppu_v1_is_dynamic_enabled_StubWithCallback ppu_v1_is_dynamic_enabled_Stub +#define ppu_v1_is_dynamic_enabled_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_is_dynamic_enabled_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_is_dynamic_enabled_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return); +#define ppu_v1_is_dynamic_enabled_ReturnThruPtr_ppu(ppu) ppu_v1_is_dynamic_enabled_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_dynamic_enabled_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_dynamic_enabled_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_dynamic_enabled_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_dynamic_enabled_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_dynamic_enabled_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_dynamic_enabled_IgnoreArg_ppu() ppu_v1_is_dynamic_enabled_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_dynamic_enabled_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_locked_IgnoreAndReturn(cmock_retval) ppu_v1_is_locked_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_locked_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_locked_StopIgnore() ppu_v1_is_locked_CMockStopIgnore() +void ppu_v1_is_locked_CMockStopIgnore(void); +#define ppu_v1_is_locked_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_locked_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_locked_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_locked_ExpectAndReturn(ppu, cmock_retval) ppu_v1_is_locked_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_is_locked_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_locked_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_is_locked_AddCallback(CMOCK_ppu_v1_is_locked_CALLBACK Callback); +void ppu_v1_is_locked_Stub(CMOCK_ppu_v1_is_locked_CALLBACK Callback); +#define ppu_v1_is_locked_StubWithCallback ppu_v1_is_locked_Stub +#define ppu_v1_is_locked_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_is_locked_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_is_locked_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return); +#define ppu_v1_is_locked_ReturnThruPtr_ppu(ppu) ppu_v1_is_locked_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_locked_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_locked_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_locked_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_locked_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_locked_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_locked_IgnoreArg_ppu() ppu_v1_is_locked_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_locked_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_power_devactive_high_IgnoreAndReturn(cmock_retval) ppu_v1_is_power_devactive_high_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_power_devactive_high_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_power_devactive_high_StopIgnore() ppu_v1_is_power_devactive_high_CMockStopIgnore() +void ppu_v1_is_power_devactive_high_CMockStopIgnore(void); +#define ppu_v1_is_power_devactive_high_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_power_devactive_high_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_power_devactive_high_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_power_devactive_high_ExpectAndReturn(ppu, ppu_mode, cmock_retval) ppu_v1_is_power_devactive_high_CMockExpectAndReturn(__LINE__, ppu, ppu_mode, cmock_retval) +void ppu_v1_is_power_devactive_high_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_power_devactive_high_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_num_calls); +void ppu_v1_is_power_devactive_high_AddCallback(CMOCK_ppu_v1_is_power_devactive_high_CALLBACK Callback); +void ppu_v1_is_power_devactive_high_Stub(CMOCK_ppu_v1_is_power_devactive_high_CALLBACK Callback); +#define ppu_v1_is_power_devactive_high_StubWithCallback ppu_v1_is_power_devactive_high_Stub +#define ppu_v1_is_power_devactive_high_ExpectWithArrayAndReturn(ppu, ppu_Depth, ppu_mode, cmock_retval) ppu_v1_is_power_devactive_high_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, ppu_mode, cmock_retval) +void ppu_v1_is_power_devactive_high_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, bool cmock_to_return); +#define ppu_v1_is_power_devactive_high_ReturnThruPtr_ppu(ppu) ppu_v1_is_power_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_power_devactive_high_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_power_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_power_devactive_high_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_power_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_power_devactive_high_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_power_devactive_high_IgnoreArg_ppu() ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_power_devactive_high_IgnoreArg_ppu_mode() ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_is_power_devactive_high_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_op_devactive_high_IgnoreAndReturn(cmock_retval) ppu_v1_is_op_devactive_high_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_op_devactive_high_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_op_devactive_high_StopIgnore() ppu_v1_is_op_devactive_high_CMockStopIgnore() +void ppu_v1_is_op_devactive_high_CMockStopIgnore(void); +#define ppu_v1_is_op_devactive_high_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_op_devactive_high_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_op_devactive_high_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_op_devactive_high_ExpectAndReturn(ppu, op_devactive, cmock_retval) ppu_v1_is_op_devactive_high_CMockExpectAndReturn(__LINE__, ppu, op_devactive, cmock_retval) +void ppu_v1_is_op_devactive_high_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_op_devactive_high_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, int cmock_num_calls); +void ppu_v1_is_op_devactive_high_AddCallback(CMOCK_ppu_v1_is_op_devactive_high_CALLBACK Callback); +void ppu_v1_is_op_devactive_high_Stub(CMOCK_ppu_v1_is_op_devactive_high_CALLBACK Callback); +#define ppu_v1_is_op_devactive_high_StubWithCallback ppu_v1_is_op_devactive_high_Stub +#define ppu_v1_is_op_devactive_high_ExpectWithArrayAndReturn(ppu, ppu_Depth, op_devactive, cmock_retval) ppu_v1_is_op_devactive_high_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, op_devactive, cmock_retval) +void ppu_v1_is_op_devactive_high_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return); +#define ppu_v1_is_op_devactive_high_ReturnThruPtr_ppu(ppu) ppu_v1_is_op_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_op_devactive_high_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_op_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_op_devactive_high_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_op_devactive_high_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_op_devactive_high_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_op_devactive_high_IgnoreArg_ppu() ppu_v1_is_op_devactive_high_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_op_devactive_high_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_op_devactive_high_IgnoreArg_op_devactive() ppu_v1_is_op_devactive_high_CMockIgnoreArg_op_devactive(__LINE__) +void ppu_v1_is_op_devactive_high_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_off_unlock_Ignore() ppu_v1_off_unlock_CMockIgnore() +void ppu_v1_off_unlock_CMockIgnore(void); +#define ppu_v1_off_unlock_StopIgnore() ppu_v1_off_unlock_CMockStopIgnore() +void ppu_v1_off_unlock_CMockStopIgnore(void); +#define ppu_v1_off_unlock_ExpectAnyArgs() ppu_v1_off_unlock_CMockExpectAnyArgs(__LINE__) +void ppu_v1_off_unlock_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_off_unlock_Expect(ppu) ppu_v1_off_unlock_CMockExpect(__LINE__, ppu) +void ppu_v1_off_unlock_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_off_unlock_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_off_unlock_AddCallback(CMOCK_ppu_v1_off_unlock_CALLBACK Callback); +void ppu_v1_off_unlock_Stub(CMOCK_ppu_v1_off_unlock_CALLBACK Callback); +#define ppu_v1_off_unlock_StubWithCallback ppu_v1_off_unlock_Stub +#define ppu_v1_off_unlock_ExpectWithArray(ppu, ppu_Depth) ppu_v1_off_unlock_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_off_unlock_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_off_unlock_ReturnThruPtr_ppu(ppu) ppu_v1_off_unlock_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_off_unlock_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_off_unlock_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_off_unlock_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_off_unlock_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_off_unlock_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_off_unlock_IgnoreArg_ppu() ppu_v1_off_unlock_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_off_unlock_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_disable_devactive_Ignore() ppu_v1_disable_devactive_CMockIgnore() +void ppu_v1_disable_devactive_CMockIgnore(void); +#define ppu_v1_disable_devactive_StopIgnore() ppu_v1_disable_devactive_CMockStopIgnore() +void ppu_v1_disable_devactive_CMockStopIgnore(void); +#define ppu_v1_disable_devactive_ExpectAnyArgs() ppu_v1_disable_devactive_CMockExpectAnyArgs(__LINE__) +void ppu_v1_disable_devactive_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_disable_devactive_Expect(ppu) ppu_v1_disable_devactive_CMockExpect(__LINE__, ppu) +void ppu_v1_disable_devactive_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_disable_devactive_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_disable_devactive_AddCallback(CMOCK_ppu_v1_disable_devactive_CALLBACK Callback); +void ppu_v1_disable_devactive_Stub(CMOCK_ppu_v1_disable_devactive_CALLBACK Callback); +#define ppu_v1_disable_devactive_StubWithCallback ppu_v1_disable_devactive_Stub +#define ppu_v1_disable_devactive_ExpectWithArray(ppu, ppu_Depth) ppu_v1_disable_devactive_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_disable_devactive_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_disable_devactive_ReturnThruPtr_ppu(ppu) ppu_v1_disable_devactive_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_disable_devactive_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_disable_devactive_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_disable_devactive_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_disable_devactive_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_disable_devactive_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_disable_devactive_IgnoreArg_ppu() ppu_v1_disable_devactive_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_disable_devactive_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_disable_handshake_Ignore() ppu_v1_disable_handshake_CMockIgnore() +void ppu_v1_disable_handshake_CMockIgnore(void); +#define ppu_v1_disable_handshake_StopIgnore() ppu_v1_disable_handshake_CMockStopIgnore() +void ppu_v1_disable_handshake_CMockStopIgnore(void); +#define ppu_v1_disable_handshake_ExpectAnyArgs() ppu_v1_disable_handshake_CMockExpectAnyArgs(__LINE__) +void ppu_v1_disable_handshake_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_disable_handshake_Expect(ppu) ppu_v1_disable_handshake_CMockExpect(__LINE__, ppu) +void ppu_v1_disable_handshake_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu); +typedef void (* CMOCK_ppu_v1_disable_handshake_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_disable_handshake_AddCallback(CMOCK_ppu_v1_disable_handshake_CALLBACK Callback); +void ppu_v1_disable_handshake_Stub(CMOCK_ppu_v1_disable_handshake_CALLBACK Callback); +#define ppu_v1_disable_handshake_StubWithCallback ppu_v1_disable_handshake_Stub +#define ppu_v1_disable_handshake_ExpectWithArray(ppu, ppu_Depth) ppu_v1_disable_handshake_CMockExpectWithArray(__LINE__, ppu, ppu_Depth) +void ppu_v1_disable_handshake_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth); +#define ppu_v1_disable_handshake_ReturnThruPtr_ppu(ppu) ppu_v1_disable_handshake_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_disable_handshake_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_disable_handshake_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_disable_handshake_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_disable_handshake_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_disable_handshake_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_disable_handshake_IgnoreArg_ppu() ppu_v1_disable_handshake_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_disable_handshake_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_mask_Ignore() ppu_v1_interrupt_mask_CMockIgnore() +void ppu_v1_interrupt_mask_CMockIgnore(void); +#define ppu_v1_interrupt_mask_StopIgnore() ppu_v1_interrupt_mask_CMockStopIgnore() +void ppu_v1_interrupt_mask_CMockStopIgnore(void); +#define ppu_v1_interrupt_mask_ExpectAnyArgs() ppu_v1_interrupt_mask_CMockExpectAnyArgs(__LINE__) +void ppu_v1_interrupt_mask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_mask_Expect(ppu, mask) ppu_v1_interrupt_mask_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_interrupt_mask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_interrupt_mask_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_interrupt_mask_AddCallback(CMOCK_ppu_v1_interrupt_mask_CALLBACK Callback); +void ppu_v1_interrupt_mask_Stub(CMOCK_ppu_v1_interrupt_mask_CALLBACK Callback); +#define ppu_v1_interrupt_mask_StubWithCallback ppu_v1_interrupt_mask_Stub +#define ppu_v1_interrupt_mask_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_interrupt_mask_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_interrupt_mask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_interrupt_mask_ReturnThruPtr_ppu(ppu) ppu_v1_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_interrupt_mask_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_interrupt_mask_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_interrupt_mask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_interrupt_mask_IgnoreArg_ppu() ppu_v1_interrupt_mask_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_interrupt_mask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_mask_IgnoreArg_mask() ppu_v1_interrupt_mask_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_interrupt_mask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_mask_Ignore() ppu_v1_additional_interrupt_mask_CMockIgnore() +void ppu_v1_additional_interrupt_mask_CMockIgnore(void); +#define ppu_v1_additional_interrupt_mask_StopIgnore() ppu_v1_additional_interrupt_mask_CMockStopIgnore() +void ppu_v1_additional_interrupt_mask_CMockStopIgnore(void); +#define ppu_v1_additional_interrupt_mask_ExpectAnyArgs() ppu_v1_additional_interrupt_mask_CMockExpectAnyArgs(__LINE__) +void ppu_v1_additional_interrupt_mask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_mask_Expect(ppu, mask) ppu_v1_additional_interrupt_mask_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_additional_interrupt_mask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_additional_interrupt_mask_AddCallback(CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK Callback); +void ppu_v1_additional_interrupt_mask_Stub(CMOCK_ppu_v1_additional_interrupt_mask_CALLBACK Callback); +#define ppu_v1_additional_interrupt_mask_StubWithCallback ppu_v1_additional_interrupt_mask_Stub +#define ppu_v1_additional_interrupt_mask_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_additional_interrupt_mask_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_additional_interrupt_mask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_additional_interrupt_mask_ReturnThruPtr_ppu(ppu) ppu_v1_additional_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_additional_interrupt_mask_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_additional_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_additional_interrupt_mask_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_additional_interrupt_mask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_additional_interrupt_mask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_additional_interrupt_mask_IgnoreArg_ppu() ppu_v1_additional_interrupt_mask_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_additional_interrupt_mask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_mask_IgnoreArg_mask() ppu_v1_additional_interrupt_mask_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_additional_interrupt_mask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_unmask_Ignore() ppu_v1_interrupt_unmask_CMockIgnore() +void ppu_v1_interrupt_unmask_CMockIgnore(void); +#define ppu_v1_interrupt_unmask_StopIgnore() ppu_v1_interrupt_unmask_CMockStopIgnore() +void ppu_v1_interrupt_unmask_CMockStopIgnore(void); +#define ppu_v1_interrupt_unmask_ExpectAnyArgs() ppu_v1_interrupt_unmask_CMockExpectAnyArgs(__LINE__) +void ppu_v1_interrupt_unmask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_unmask_Expect(ppu, mask) ppu_v1_interrupt_unmask_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_interrupt_unmask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_interrupt_unmask_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_interrupt_unmask_AddCallback(CMOCK_ppu_v1_interrupt_unmask_CALLBACK Callback); +void ppu_v1_interrupt_unmask_Stub(CMOCK_ppu_v1_interrupt_unmask_CALLBACK Callback); +#define ppu_v1_interrupt_unmask_StubWithCallback ppu_v1_interrupt_unmask_Stub +#define ppu_v1_interrupt_unmask_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_interrupt_unmask_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_interrupt_unmask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_interrupt_unmask_ReturnThruPtr_ppu(ppu) ppu_v1_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_interrupt_unmask_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_interrupt_unmask_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_interrupt_unmask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_interrupt_unmask_IgnoreArg_ppu() ppu_v1_interrupt_unmask_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_interrupt_unmask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_interrupt_unmask_IgnoreArg_mask() ppu_v1_interrupt_unmask_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_interrupt_unmask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_unmask_Ignore() ppu_v1_additional_interrupt_unmask_CMockIgnore() +void ppu_v1_additional_interrupt_unmask_CMockIgnore(void); +#define ppu_v1_additional_interrupt_unmask_StopIgnore() ppu_v1_additional_interrupt_unmask_CMockStopIgnore() +void ppu_v1_additional_interrupt_unmask_CMockStopIgnore(void); +#define ppu_v1_additional_interrupt_unmask_ExpectAnyArgs() ppu_v1_additional_interrupt_unmask_CMockExpectAnyArgs(__LINE__) +void ppu_v1_additional_interrupt_unmask_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_unmask_Expect(ppu, mask) ppu_v1_additional_interrupt_unmask_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_additional_interrupt_unmask_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_additional_interrupt_unmask_AddCallback(CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK Callback); +void ppu_v1_additional_interrupt_unmask_Stub(CMOCK_ppu_v1_additional_interrupt_unmask_CALLBACK Callback); +#define ppu_v1_additional_interrupt_unmask_StubWithCallback ppu_v1_additional_interrupt_unmask_Stub +#define ppu_v1_additional_interrupt_unmask_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_additional_interrupt_unmask_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_additional_interrupt_unmask_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_additional_interrupt_unmask_ReturnThruPtr_ppu(ppu) ppu_v1_additional_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_additional_interrupt_unmask_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_additional_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_additional_interrupt_unmask_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_additional_interrupt_unmask_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_additional_interrupt_unmask_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_additional_interrupt_unmask_IgnoreArg_ppu() ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_additional_interrupt_unmask_IgnoreArg_mask() ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_additional_interrupt_unmask_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_additional_interrupt_pending_IgnoreAndReturn(cmock_retval) ppu_v1_is_additional_interrupt_pending_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_additional_interrupt_pending_StopIgnore() ppu_v1_is_additional_interrupt_pending_CMockStopIgnore() +void ppu_v1_is_additional_interrupt_pending_CMockStopIgnore(void); +#define ppu_v1_is_additional_interrupt_pending_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_additional_interrupt_pending_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_additional_interrupt_pending_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_additional_interrupt_pending_ExpectAndReturn(ppu, mask, cmock_retval) ppu_v1_is_additional_interrupt_pending_CMockExpectAndReturn(__LINE__, ppu, mask, cmock_retval) +void ppu_v1_is_additional_interrupt_pending_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_is_additional_interrupt_pending_AddCallback(CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK Callback); +void ppu_v1_is_additional_interrupt_pending_Stub(CMOCK_ppu_v1_is_additional_interrupt_pending_CALLBACK Callback); +#define ppu_v1_is_additional_interrupt_pending_StubWithCallback ppu_v1_is_additional_interrupt_pending_Stub +#define ppu_v1_is_additional_interrupt_pending_ExpectWithArrayAndReturn(ppu, ppu_Depth, mask, cmock_retval) ppu_v1_is_additional_interrupt_pending_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, mask, cmock_retval) +void ppu_v1_is_additional_interrupt_pending_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask, bool cmock_to_return); +#define ppu_v1_is_additional_interrupt_pending_ReturnThruPtr_ppu(ppu) ppu_v1_is_additional_interrupt_pending_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_additional_interrupt_pending_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_additional_interrupt_pending_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_additional_interrupt_pending_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_additional_interrupt_pending_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_additional_interrupt_pending_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_additional_interrupt_pending_IgnoreArg_ppu() ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_additional_interrupt_pending_IgnoreArg_mask() ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_is_additional_interrupt_pending_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_interrupt_Ignore() ppu_v1_ack_interrupt_CMockIgnore() +void ppu_v1_ack_interrupt_CMockIgnore(void); +#define ppu_v1_ack_interrupt_StopIgnore() ppu_v1_ack_interrupt_CMockStopIgnore() +void ppu_v1_ack_interrupt_CMockStopIgnore(void); +#define ppu_v1_ack_interrupt_ExpectAnyArgs() ppu_v1_ack_interrupt_CMockExpectAnyArgs(__LINE__) +void ppu_v1_ack_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_interrupt_Expect(ppu, mask) ppu_v1_ack_interrupt_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_ack_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_ack_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_ack_interrupt_AddCallback(CMOCK_ppu_v1_ack_interrupt_CALLBACK Callback); +void ppu_v1_ack_interrupt_Stub(CMOCK_ppu_v1_ack_interrupt_CALLBACK Callback); +#define ppu_v1_ack_interrupt_StubWithCallback ppu_v1_ack_interrupt_Stub +#define ppu_v1_ack_interrupt_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_ack_interrupt_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_ack_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_ack_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_ack_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_ack_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_ack_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_ack_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_ack_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_ack_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_ack_interrupt_IgnoreArg_ppu() ppu_v1_ack_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_ack_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_interrupt_IgnoreArg_mask() ppu_v1_ack_interrupt_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_ack_interrupt_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_additional_interrupt_Ignore() ppu_v1_ack_additional_interrupt_CMockIgnore() +void ppu_v1_ack_additional_interrupt_CMockIgnore(void); +#define ppu_v1_ack_additional_interrupt_StopIgnore() ppu_v1_ack_additional_interrupt_CMockStopIgnore() +void ppu_v1_ack_additional_interrupt_CMockStopIgnore(void); +#define ppu_v1_ack_additional_interrupt_ExpectAnyArgs() ppu_v1_ack_additional_interrupt_CMockExpectAnyArgs(__LINE__) +void ppu_v1_ack_additional_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_additional_interrupt_Expect(ppu, mask) ppu_v1_ack_additional_interrupt_CMockExpect(__LINE__, ppu, mask) +void ppu_v1_ack_additional_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int mask); +typedef void (* CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, unsigned int mask, int cmock_num_calls); +void ppu_v1_ack_additional_interrupt_AddCallback(CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK Callback); +void ppu_v1_ack_additional_interrupt_Stub(CMOCK_ppu_v1_ack_additional_interrupt_CALLBACK Callback); +#define ppu_v1_ack_additional_interrupt_StubWithCallback ppu_v1_ack_additional_interrupt_Stub +#define ppu_v1_ack_additional_interrupt_ExpectWithArray(ppu, ppu_Depth, mask) ppu_v1_ack_additional_interrupt_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, mask) +void ppu_v1_ack_additional_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int mask); +#define ppu_v1_ack_additional_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_ack_additional_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_ack_additional_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_ack_additional_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_ack_additional_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_ack_additional_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_ack_additional_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_ack_additional_interrupt_IgnoreArg_ppu() ppu_v1_ack_additional_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_ack_additional_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_additional_interrupt_IgnoreArg_mask() ppu_v1_ack_additional_interrupt_CMockIgnoreArg_mask(__LINE__) +void ppu_v1_ack_additional_interrupt_CMockIgnoreArg_mask(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_input_edge_sensitivity_Ignore() ppu_v1_set_input_edge_sensitivity_CMockIgnore() +void ppu_v1_set_input_edge_sensitivity_CMockIgnore(void); +#define ppu_v1_set_input_edge_sensitivity_StopIgnore() ppu_v1_set_input_edge_sensitivity_CMockStopIgnore() +void ppu_v1_set_input_edge_sensitivity_CMockStopIgnore(void); +#define ppu_v1_set_input_edge_sensitivity_ExpectAnyArgs() ppu_v1_set_input_edge_sensitivity_CMockExpectAnyArgs(__LINE__) +void ppu_v1_set_input_edge_sensitivity_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_input_edge_sensitivity_Expect(ppu, ppu_mode, edge_sensitivity) ppu_v1_set_input_edge_sensitivity_CMockExpect(__LINE__, ppu, ppu_mode, edge_sensitivity) +void ppu_v1_set_input_edge_sensitivity_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity); +typedef void (* CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity, int cmock_num_calls); +void ppu_v1_set_input_edge_sensitivity_AddCallback(CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK Callback); +void ppu_v1_set_input_edge_sensitivity_Stub(CMOCK_ppu_v1_set_input_edge_sensitivity_CALLBACK Callback); +#define ppu_v1_set_input_edge_sensitivity_StubWithCallback ppu_v1_set_input_edge_sensitivity_Stub +#define ppu_v1_set_input_edge_sensitivity_ExpectWithArray(ppu, ppu_Depth, ppu_mode, edge_sensitivity) ppu_v1_set_input_edge_sensitivity_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, ppu_mode, edge_sensitivity) +void ppu_v1_set_input_edge_sensitivity_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity edge_sensitivity); +#define ppu_v1_set_input_edge_sensitivity_ReturnThruPtr_ppu(ppu) ppu_v1_set_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_set_input_edge_sensitivity_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_set_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_set_input_edge_sensitivity_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_set_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_set_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_set_input_edge_sensitivity_IgnoreArg_ppu() ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_input_edge_sensitivity_IgnoreArg_ppu_mode() ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_input_edge_sensitivity_IgnoreArg_edge_sensitivity() ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(__LINE__) +void ppu_v1_set_input_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_input_edge_sensitivity_IgnoreAndReturn(cmock_retval) ppu_v1_get_input_edge_sensitivity_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_input_edge_sensitivity_StopIgnore() ppu_v1_get_input_edge_sensitivity_CMockStopIgnore() +void ppu_v1_get_input_edge_sensitivity_CMockStopIgnore(void); +#define ppu_v1_get_input_edge_sensitivity_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_input_edge_sensitivity_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_input_edge_sensitivity_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_input_edge_sensitivity_ExpectAndReturn(ppu, ppu_mode, cmock_retval) ppu_v1_get_input_edge_sensitivity_CMockExpectAndReturn(__LINE__, ppu, ppu_mode, cmock_retval) +void ppu_v1_get_input_edge_sensitivity_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity cmock_to_return); +typedef enum ppu_v1_edge_sensitivity (* CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_num_calls); +void ppu_v1_get_input_edge_sensitivity_AddCallback(CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK Callback); +void ppu_v1_get_input_edge_sensitivity_Stub(CMOCK_ppu_v1_get_input_edge_sensitivity_CALLBACK Callback); +#define ppu_v1_get_input_edge_sensitivity_StubWithCallback ppu_v1_get_input_edge_sensitivity_Stub +#define ppu_v1_get_input_edge_sensitivity_ExpectWithArrayAndReturn(ppu, ppu_Depth, ppu_mode, cmock_retval) ppu_v1_get_input_edge_sensitivity_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, ppu_mode, cmock_retval) +void ppu_v1_get_input_edge_sensitivity_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_input_edge_sensitivity_ReturnThruPtr_ppu(ppu) ppu_v1_get_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_input_edge_sensitivity_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_input_edge_sensitivity_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_input_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_input_edge_sensitivity_IgnoreArg_ppu() ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_input_edge_sensitivity_IgnoreArg_ppu_mode() ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_get_input_edge_sensitivity_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_power_active_edge_interrupt_Ignore() ppu_v1_ack_power_active_edge_interrupt_CMockIgnore() +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnore(void); +#define ppu_v1_ack_power_active_edge_interrupt_StopIgnore() ppu_v1_ack_power_active_edge_interrupt_CMockStopIgnore() +void ppu_v1_ack_power_active_edge_interrupt_CMockStopIgnore(void); +#define ppu_v1_ack_power_active_edge_interrupt_ExpectAnyArgs() ppu_v1_ack_power_active_edge_interrupt_CMockExpectAnyArgs(__LINE__) +void ppu_v1_ack_power_active_edge_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_power_active_edge_interrupt_Expect(ppu, ppu_mode) ppu_v1_ack_power_active_edge_interrupt_CMockExpect(__LINE__, ppu, ppu_mode) +void ppu_v1_ack_power_active_edge_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode); +typedef void (* CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_num_calls); +void ppu_v1_ack_power_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK Callback); +void ppu_v1_ack_power_active_edge_interrupt_Stub(CMOCK_ppu_v1_ack_power_active_edge_interrupt_CALLBACK Callback); +#define ppu_v1_ack_power_active_edge_interrupt_StubWithCallback ppu_v1_ack_power_active_edge_interrupt_Stub +#define ppu_v1_ack_power_active_edge_interrupt_ExpectWithArray(ppu, ppu_Depth, ppu_mode) ppu_v1_ack_power_active_edge_interrupt_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, ppu_mode) +void ppu_v1_ack_power_active_edge_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode); +#define ppu_v1_ack_power_active_edge_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_ack_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_ack_power_active_edge_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_ack_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_ack_power_active_edge_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_ack_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_ack_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_ack_power_active_edge_interrupt_IgnoreArg_ppu() ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_power_active_edge_interrupt_IgnoreArg_ppu_mode() ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_ack_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_power_active_edge_interrupt_IgnoreAndReturn(cmock_retval) ppu_v1_is_power_active_edge_interrupt_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_power_active_edge_interrupt_StopIgnore() ppu_v1_is_power_active_edge_interrupt_CMockStopIgnore() +void ppu_v1_is_power_active_edge_interrupt_CMockStopIgnore(void); +#define ppu_v1_is_power_active_edge_interrupt_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_power_active_edge_interrupt_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_power_active_edge_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_power_active_edge_interrupt_ExpectAndReturn(ppu, ppu_mode, cmock_retval) ppu_v1_is_power_active_edge_interrupt_CMockExpectAndReturn(__LINE__, ppu, ppu_mode, cmock_retval) +void ppu_v1_is_power_active_edge_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_mode ppu_mode, int cmock_num_calls); +void ppu_v1_is_power_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK Callback); +void ppu_v1_is_power_active_edge_interrupt_Stub(CMOCK_ppu_v1_is_power_active_edge_interrupt_CALLBACK Callback); +#define ppu_v1_is_power_active_edge_interrupt_StubWithCallback ppu_v1_is_power_active_edge_interrupt_Stub +#define ppu_v1_is_power_active_edge_interrupt_ExpectWithArrayAndReturn(ppu, ppu_Depth, ppu_mode, cmock_retval) ppu_v1_is_power_active_edge_interrupt_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, ppu_mode, cmock_retval) +void ppu_v1_is_power_active_edge_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_mode ppu_mode, bool cmock_to_return); +#define ppu_v1_is_power_active_edge_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_is_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_power_active_edge_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_power_active_edge_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_power_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_power_active_edge_interrupt_IgnoreArg_ppu() ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_power_active_edge_interrupt_IgnoreArg_ppu_mode() ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(__LINE__) +void ppu_v1_is_power_active_edge_interrupt_CMockIgnoreArg_ppu_mode(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_op_active_edge_sensitivity_Ignore() ppu_v1_set_op_active_edge_sensitivity_CMockIgnore() +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnore(void); +#define ppu_v1_set_op_active_edge_sensitivity_StopIgnore() ppu_v1_set_op_active_edge_sensitivity_CMockStopIgnore() +void ppu_v1_set_op_active_edge_sensitivity_CMockStopIgnore(void); +#define ppu_v1_set_op_active_edge_sensitivity_ExpectAnyArgs() ppu_v1_set_op_active_edge_sensitivity_CMockExpectAnyArgs(__LINE__) +void ppu_v1_set_op_active_edge_sensitivity_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_op_active_edge_sensitivity_Expect(ppu, op_devactive, edge_sensitivity) ppu_v1_set_op_active_edge_sensitivity_CMockExpect(__LINE__, ppu, op_devactive, edge_sensitivity) +void ppu_v1_set_op_active_edge_sensitivity_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity); +typedef void (* CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity, int cmock_num_calls); +void ppu_v1_set_op_active_edge_sensitivity_AddCallback(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK Callback); +void ppu_v1_set_op_active_edge_sensitivity_Stub(CMOCK_ppu_v1_set_op_active_edge_sensitivity_CALLBACK Callback); +#define ppu_v1_set_op_active_edge_sensitivity_StubWithCallback ppu_v1_set_op_active_edge_sensitivity_Stub +#define ppu_v1_set_op_active_edge_sensitivity_ExpectWithArray(ppu, ppu_Depth, op_devactive, edge_sensitivity) ppu_v1_set_op_active_edge_sensitivity_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, op_devactive, edge_sensitivity) +void ppu_v1_set_op_active_edge_sensitivity_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity edge_sensitivity); +#define ppu_v1_set_op_active_edge_sensitivity_ReturnThruPtr_ppu(ppu) ppu_v1_set_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_set_op_active_edge_sensitivity_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_set_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_set_op_active_edge_sensitivity_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_set_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_set_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_set_op_active_edge_sensitivity_IgnoreArg_ppu() ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_op_active_edge_sensitivity_IgnoreArg_op_devactive() ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(__LINE__) +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_set_op_active_edge_sensitivity_IgnoreArg_edge_sensitivity() ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(__LINE__) +void ppu_v1_set_op_active_edge_sensitivity_CMockIgnoreArg_edge_sensitivity(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_op_active_edge_sensitivity_IgnoreAndReturn(cmock_retval) ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_op_active_edge_sensitivity_StopIgnore() ppu_v1_get_op_active_edge_sensitivity_CMockStopIgnore() +void ppu_v1_get_op_active_edge_sensitivity_CMockStopIgnore(void); +#define ppu_v1_get_op_active_edge_sensitivity_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_op_active_edge_sensitivity_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_op_active_edge_sensitivity_ExpectAndReturn(ppu, op_devactive, cmock_retval) ppu_v1_get_op_active_edge_sensitivity_CMockExpectAndReturn(__LINE__, ppu, op_devactive, cmock_retval) +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity cmock_to_return); +typedef enum ppu_v1_edge_sensitivity (* CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, int cmock_num_calls); +void ppu_v1_get_op_active_edge_sensitivity_AddCallback(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK Callback); +void ppu_v1_get_op_active_edge_sensitivity_Stub(CMOCK_ppu_v1_get_op_active_edge_sensitivity_CALLBACK Callback); +#define ppu_v1_get_op_active_edge_sensitivity_StubWithCallback ppu_v1_get_op_active_edge_sensitivity_Stub +#define ppu_v1_get_op_active_edge_sensitivity_ExpectWithArrayAndReturn(ppu, ppu_Depth, op_devactive, cmock_retval) ppu_v1_get_op_active_edge_sensitivity_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, op_devactive, cmock_retval) +void ppu_v1_get_op_active_edge_sensitivity_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, enum ppu_v1_edge_sensitivity cmock_to_return); +#define ppu_v1_get_op_active_edge_sensitivity_ReturnThruPtr_ppu(ppu) ppu_v1_get_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_op_active_edge_sensitivity_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_op_active_edge_sensitivity_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_op_active_edge_sensitivity_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_op_active_edge_sensitivity_IgnoreArg_ppu() ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_op_active_edge_sensitivity_IgnoreArg_op_devactive() ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(__LINE__) +void ppu_v1_get_op_active_edge_sensitivity_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_op_active_edge_interrupt_Ignore() ppu_v1_ack_op_active_edge_interrupt_CMockIgnore() +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnore(void); +#define ppu_v1_ack_op_active_edge_interrupt_StopIgnore() ppu_v1_ack_op_active_edge_interrupt_CMockStopIgnore() +void ppu_v1_ack_op_active_edge_interrupt_CMockStopIgnore(void); +#define ppu_v1_ack_op_active_edge_interrupt_ExpectAnyArgs() ppu_v1_ack_op_active_edge_interrupt_CMockExpectAnyArgs(__LINE__) +void ppu_v1_ack_op_active_edge_interrupt_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_op_active_edge_interrupt_Expect(ppu, op_devactive) ppu_v1_ack_op_active_edge_interrupt_CMockExpect(__LINE__, ppu, op_devactive) +void ppu_v1_ack_op_active_edge_interrupt_CMockExpect(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive); +typedef void (* CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, int cmock_num_calls); +void ppu_v1_ack_op_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK Callback); +void ppu_v1_ack_op_active_edge_interrupt_Stub(CMOCK_ppu_v1_ack_op_active_edge_interrupt_CALLBACK Callback); +#define ppu_v1_ack_op_active_edge_interrupt_StubWithCallback ppu_v1_ack_op_active_edge_interrupt_Stub +#define ppu_v1_ack_op_active_edge_interrupt_ExpectWithArray(ppu, ppu_Depth, op_devactive) ppu_v1_ack_op_active_edge_interrupt_CMockExpectWithArray(__LINE__, ppu, ppu_Depth, op_devactive) +void ppu_v1_ack_op_active_edge_interrupt_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive); +#define ppu_v1_ack_op_active_edge_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_ack_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_ack_op_active_edge_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_ack_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_ack_op_active_edge_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_ack_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_ack_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_ack_op_active_edge_interrupt_IgnoreArg_ppu() ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_ack_op_active_edge_interrupt_IgnoreArg_op_devactive() ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(__LINE__) +void ppu_v1_ack_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_op_active_edge_interrupt_IgnoreAndReturn(cmock_retval) ppu_v1_is_op_active_edge_interrupt_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_op_active_edge_interrupt_StopIgnore() ppu_v1_is_op_active_edge_interrupt_CMockStopIgnore() +void ppu_v1_is_op_active_edge_interrupt_CMockStopIgnore(void); +#define ppu_v1_is_op_active_edge_interrupt_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_op_active_edge_interrupt_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_op_active_edge_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_op_active_edge_interrupt_ExpectAndReturn(ppu, op_devactive, cmock_retval) ppu_v1_is_op_active_edge_interrupt_CMockExpectAndReturn(__LINE__, ppu, op_devactive, cmock_retval) +void ppu_v1_is_op_active_edge_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, enum ppu_v1_op_devactive op_devactive, int cmock_num_calls); +void ppu_v1_is_op_active_edge_interrupt_AddCallback(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK Callback); +void ppu_v1_is_op_active_edge_interrupt_Stub(CMOCK_ppu_v1_is_op_active_edge_interrupt_CALLBACK Callback); +#define ppu_v1_is_op_active_edge_interrupt_StubWithCallback ppu_v1_is_op_active_edge_interrupt_Stub +#define ppu_v1_is_op_active_edge_interrupt_ExpectWithArrayAndReturn(ppu, ppu_Depth, op_devactive, cmock_retval) ppu_v1_is_op_active_edge_interrupt_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, op_devactive, cmock_retval) +void ppu_v1_is_op_active_edge_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, enum ppu_v1_op_devactive op_devactive, bool cmock_to_return); +#define ppu_v1_is_op_active_edge_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_is_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_op_active_edge_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_op_active_edge_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_op_active_edge_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_op_active_edge_interrupt_IgnoreArg_ppu() ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_op_active_edge_interrupt_IgnoreArg_op_devactive() ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(__LINE__) +void ppu_v1_is_op_active_edge_interrupt_CMockIgnoreArg_op_devactive(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_is_dyn_policy_min_interrupt_IgnoreAndReturn(cmock_retval) ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_dyn_policy_min_interrupt_StopIgnore() ppu_v1_is_dyn_policy_min_interrupt_CMockStopIgnore() +void ppu_v1_is_dyn_policy_min_interrupt_CMockStopIgnore(void); +#define ppu_v1_is_dyn_policy_min_interrupt_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, bool cmock_to_return); +#define ppu_v1_is_dyn_policy_min_interrupt_ExpectAndReturn(ppu, cmock_retval) ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, bool cmock_to_return); +typedef bool (* CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_is_dyn_policy_min_interrupt_AddCallback(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK Callback); +void ppu_v1_is_dyn_policy_min_interrupt_Stub(CMOCK_ppu_v1_is_dyn_policy_min_interrupt_CALLBACK Callback); +#define ppu_v1_is_dyn_policy_min_interrupt_StubWithCallback ppu_v1_is_dyn_policy_min_interrupt_Stub +#define ppu_v1_is_dyn_policy_min_interrupt_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_is_dyn_policy_min_interrupt_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_is_dyn_policy_min_interrupt_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, bool cmock_to_return); +#define ppu_v1_is_dyn_policy_min_interrupt_ReturnThruPtr_ppu(ppu) ppu_v1_is_dyn_policy_min_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_is_dyn_policy_min_interrupt_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_is_dyn_policy_min_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_is_dyn_policy_min_interrupt_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_is_dyn_policy_min_interrupt_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_is_dyn_policy_min_interrupt_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_is_dyn_policy_min_interrupt_IgnoreArg_ppu() ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_is_dyn_policy_min_interrupt_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_num_opmode_IgnoreAndReturn(cmock_retval) ppu_v1_get_num_opmode_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_num_opmode_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return); +#define ppu_v1_get_num_opmode_StopIgnore() ppu_v1_get_num_opmode_CMockStopIgnore() +void ppu_v1_get_num_opmode_CMockStopIgnore(void); +#define ppu_v1_get_num_opmode_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_num_opmode_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_num_opmode_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return); +#define ppu_v1_get_num_opmode_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_num_opmode_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_num_opmode_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int cmock_to_return); +typedef unsigned int (* CMOCK_ppu_v1_get_num_opmode_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_num_opmode_AddCallback(CMOCK_ppu_v1_get_num_opmode_CALLBACK Callback); +void ppu_v1_get_num_opmode_Stub(CMOCK_ppu_v1_get_num_opmode_CALLBACK Callback); +#define ppu_v1_get_num_opmode_StubWithCallback ppu_v1_get_num_opmode_Stub +#define ppu_v1_get_num_opmode_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_num_opmode_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_num_opmode_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int cmock_to_return); +#define ppu_v1_get_num_opmode_ReturnThruPtr_ppu(ppu) ppu_v1_get_num_opmode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_num_opmode_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_num_opmode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_num_opmode_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_num_opmode_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_num_opmode_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_num_opmode_IgnoreArg_ppu() ppu_v1_get_num_opmode_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_num_opmode_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); +#define ppu_v1_get_arch_id_IgnoreAndReturn(cmock_retval) ppu_v1_get_arch_id_CMockIgnoreAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_arch_id_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return); +#define ppu_v1_get_arch_id_StopIgnore() ppu_v1_get_arch_id_CMockStopIgnore() +void ppu_v1_get_arch_id_CMockStopIgnore(void); +#define ppu_v1_get_arch_id_ExpectAnyArgsAndReturn(cmock_retval) ppu_v1_get_arch_id_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) +void ppu_v1_get_arch_id_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, unsigned int cmock_to_return); +#define ppu_v1_get_arch_id_ExpectAndReturn(ppu, cmock_retval) ppu_v1_get_arch_id_CMockExpectAndReturn(__LINE__, ppu, cmock_retval) +void ppu_v1_get_arch_id_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, unsigned int cmock_to_return); +typedef unsigned int (* CMOCK_ppu_v1_get_arch_id_CALLBACK)(struct ppu_v1_reg* ppu, int cmock_num_calls); +void ppu_v1_get_arch_id_AddCallback(CMOCK_ppu_v1_get_arch_id_CALLBACK Callback); +void ppu_v1_get_arch_id_Stub(CMOCK_ppu_v1_get_arch_id_CALLBACK Callback); +#define ppu_v1_get_arch_id_StubWithCallback ppu_v1_get_arch_id_Stub +#define ppu_v1_get_arch_id_ExpectWithArrayAndReturn(ppu, ppu_Depth, cmock_retval) ppu_v1_get_arch_id_CMockExpectWithArrayAndReturn(__LINE__, ppu, ppu_Depth, cmock_retval) +void ppu_v1_get_arch_id_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, int ppu_Depth, unsigned int cmock_to_return); +#define ppu_v1_get_arch_id_ReturnThruPtr_ppu(ppu) ppu_v1_get_arch_id_CMockReturnMemThruPtr_ppu(__LINE__, ppu, sizeof(struct ppu_v1_reg)) +#define ppu_v1_get_arch_id_ReturnArrayThruPtr_ppu(ppu, cmock_len) ppu_v1_get_arch_id_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_len * sizeof(*ppu)) +#define ppu_v1_get_arch_id_ReturnMemThruPtr_ppu(ppu, cmock_size) ppu_v1_get_arch_id_CMockReturnMemThruPtr_ppu(__LINE__, ppu, cmock_size) +void ppu_v1_get_arch_id_CMockReturnMemThruPtr_ppu(UNITY_LINE_TYPE cmock_line, struct ppu_v1_reg* ppu, size_t cmock_size); +#define ppu_v1_get_arch_id_IgnoreArg_ppu() ppu_v1_get_arch_id_CMockIgnoreArg_ppu(__LINE__) +void ppu_v1_get_arch_id_CMockIgnoreArg_ppu(UNITY_LINE_TYPE cmock_line); + +#if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) +#if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) +#pragma GCC diagnostic pop +#endif +#endif + +#endif diff --git a/module/ppu_v1/test/mod_ppu_v1_extra.h b/module/ppu_v1/test/mod_ppu_v1_extra.h new file mode 100644 index 000000000..0b48e8d13 --- /dev/null +++ b/module/ppu_v1/test/mod_ppu_v1_extra.h @@ -0,0 +1,134 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Description: + * PPU_v1 unit test support. + */ + +#include + +/* For the alarm API*/ +int start_alarm_api( + fwk_id_t alarm_id, + unsigned int milliseconds, + enum mod_timer_alarm_type type, + void (*callback)(uintptr_t param), + uintptr_t param); +int stop_alarm_api(fwk_id_t alarm_id); + +/* From ppu_v1.h*/ +void ppu_v1_init(struct ppu_v1_reg *ppu); + +int ppu_v1_set_power_mode( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode, + struct ppu_v1_timer_ctx *timer_ctx); + +int ppu_v1_request_power_mode( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode); + +int ppu_v1_request_operating_mode( + struct ppu_v1_reg *ppu, + enum ppu_v1_opmode op_mode); + +void ppu_v1_opmode_dynamic_enable( + struct ppu_v1_reg *ppu, + enum ppu_v1_opmode min_dyn_mode); + +void ppu_v1_dynamic_enable( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode min_dyn_state); + +void ppu_v1_lock_off_enable(struct ppu_v1_reg *ppu); + +void ppu_v1_lock_off_disable(struct ppu_v1_reg *ppu); + +enum ppu_v1_mode ppu_v1_get_power_mode(struct ppu_v1_reg *ppu); + +enum ppu_v1_mode ppu_v1_get_programmed_power_mode(struct ppu_v1_reg *ppu); + +enum ppu_v1_opmode ppu_v1_get_operating_mode(struct ppu_v1_reg *ppu); + +enum ppu_v1_opmode ppu_v1_get_programmed_operating_mode(struct ppu_v1_reg *ppu); + +bool ppu_v1_is_dynamic_enabled(struct ppu_v1_reg *ppu); + +bool ppu_v1_is_locked(struct ppu_v1_reg *ppu); + +bool ppu_v1_is_power_devactive_high( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode); + +bool ppu_v1_is_op_devactive_high( + struct ppu_v1_reg *ppu, + enum ppu_v1_op_devactive op_devactive); + +void ppu_v1_off_unlock(struct ppu_v1_reg *ppu); + +void ppu_v1_disable_devactive(struct ppu_v1_reg *ppu); + +void ppu_v1_disable_handshake(struct ppu_v1_reg *ppu); + +void ppu_v1_interrupt_mask(struct ppu_v1_reg *ppu, unsigned int mask); + +void ppu_v1_additional_interrupt_mask( + struct ppu_v1_reg *ppu, + unsigned int mask); + +void ppu_v1_interrupt_unmask(struct ppu_v1_reg *ppu, unsigned int mask); + +void ppu_v1_additional_interrupt_unmask( + struct ppu_v1_reg *ppu, + unsigned int mask); + +bool ppu_v1_is_additional_interrupt_pending( + struct ppu_v1_reg *ppu, + unsigned int mask); + +void ppu_v1_ack_interrupt(struct ppu_v1_reg *ppu, unsigned int mask); + +void ppu_v1_ack_additional_interrupt(struct ppu_v1_reg *ppu, unsigned int mask); + +void ppu_v1_set_input_edge_sensitivity( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode, + enum ppu_v1_edge_sensitivity edge_sensitivity); + +enum ppu_v1_edge_sensitivity ppu_v1_get_input_edge_sensitivity( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode); + +void ppu_v1_ack_power_active_edge_interrupt( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode); + +bool ppu_v1_is_power_active_edge_interrupt( + struct ppu_v1_reg *ppu, + enum ppu_v1_mode ppu_mode); + +void ppu_v1_set_op_active_edge_sensitivity( + struct ppu_v1_reg *ppu, + enum ppu_v1_op_devactive op_devactive, + enum ppu_v1_edge_sensitivity edge_sensitivity); + +enum ppu_v1_edge_sensitivity ppu_v1_get_op_active_edge_sensitivity( + struct ppu_v1_reg *ppu, + enum ppu_v1_op_devactive op_devactive); + +void ppu_v1_ack_op_active_edge_interrupt( + struct ppu_v1_reg *ppu, + enum ppu_v1_op_devactive op_devactive); + +bool ppu_v1_is_op_active_edge_interrupt( + struct ppu_v1_reg *ppu, + enum ppu_v1_op_devactive op_devactive); + +bool ppu_v1_is_dyn_policy_min_interrupt(struct ppu_v1_reg *ppu); + +unsigned int ppu_v1_get_num_opmode(struct ppu_v1_reg *ppu); + +unsigned int ppu_v1_get_arch_id(struct ppu_v1_reg *ppu); diff --git a/module/ppu_v1/test/mod_ppu_v1_unit_test.c b/module/ppu_v1/test/mod_ppu_v1_unit_test.c index 72e78e5f8..6b854b3b1 100644 --- a/module/ppu_v1/test/mod_ppu_v1_unit_test.c +++ b/module/ppu_v1/test/mod_ppu_v1_unit_test.c @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2022-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -13,8 +13,11 @@ #include #include #include +#include #include +#include + #include #include #include @@ -25,14 +28,26 @@ static struct ppu_v1_pd_ctx pd_table[PD_COUNT]; +static struct mod_timer_alarm_api alarm_api_driver = { + .start = start_alarm_api, + .stop = stop_alarm_api, +}; + void setUp(void) { memset(&ppu_v1_ctx, 0, sizeof(ppu_v1_ctx)); ppu_v1_ctx.pd_ctx_table_size = PD_COUNT; ppu_v1_ctx.pd_ctx_table = pd_table; + ppu_v1_ctx.max_num_cores_per_cluster = ppu_v1_config_data_ut.num_of_cores_in_cluster; + + ppu_v1_ctx.pd_ctx_table->config = pd_ppu_ctx_config; + + for (int i = 0; i < PD_COUNT; i++) { + ppu_v1_ctx.pd_ctx_table[i].alarm_api = &alarm_api_driver; + } } void tearDown(void) @@ -64,6 +79,7 @@ void test_ppu_v1_pd_init(void) config.default_power_on = false; fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + fwk_optional_id_is_defined_ExpectAnyArgsAndReturn(true); struct ppu_v1_pd_ctx *core_pd_ctx_table_temp[CORES_PER_CLUSTER]; static struct ppu_v1_pd_ctx p0; @@ -111,6 +127,84 @@ void test_ppu_v1_mod_init(void) TEST_ASSERT_EQUAL(ppu_v1_ctx.max_num_cores_per_cluster, CORES_PER_CLUSTER); } +void test_ppu_v1_core_pd_set_state_sleep(void) +{ + int status; + fwk_id_t core_pd_id; + struct ppu_v1_pd_ctx *pd_ctx_temp; + + pd_ctx_temp = &ppu_v1_ctx.pd_ctx_table[0]; + + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + ppu_v1_is_dynamic_enabled_ExpectAnyArgsAndReturn(false); + ppu_v1_dynamic_enable_ExpectAnyArgs(); + ppu_v1_set_input_edge_sensitivity_Expect( + pd_ctx_temp->ppu, PPU_V1_MODE_ON, PPU_V1_EDGE_SENSITIVITY_MASKED); + ppu_v1_lock_off_enable_ExpectAnyArgs(); + ppu_v1_interrupt_unmask_ExpectAnyArgs(); + ppu_v1_set_input_edge_sensitivity_Expect( + pd_ctx_temp->ppu, PPU_V1_MODE_ON, PPU_V1_EDGE_SENSITIVITY_MASKED); + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + start_alarm_api_ExpectAndReturn( + ppu_v1_ctx.pd_ctx_table[0].config->alarm_id, + ppu_v1_ctx.pd_ctx_table[0].config->alarm_delay, + MOD_TIMER_ALARM_TYPE_ONCE, + deeper_locking_alarm_callback, + 0, + FWK_SUCCESS); + status = ppu_v1_core_pd_set_state(core_pd_id, MOD_PD_STATE_SLEEP); + + TEST_ASSERT_EQUAL(status, FWK_SUCCESS); +} + +void test_start_deeper_locking_alarm(void) +{ + int status; + fwk_id_t core_pd_id; + + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + + start_alarm_api_ExpectAndReturn( + ppu_v1_ctx.pd_ctx_table[0].config->alarm_id, + ppu_v1_ctx.pd_ctx_table[0].config->alarm_delay, + MOD_TIMER_ALARM_TYPE_ONCE, + deeper_locking_alarm_callback, + 0, + FWK_SUCCESS); + + status = start_deeper_locking_alarm(core_pd_id); + + TEST_ASSERT_EQUAL(status, FWK_SUCCESS); +} + +void test_start_deeper_locking_alarm_null_api(void) +{ + int status; + fwk_id_t core_pd_id; + + ppu_v1_ctx.pd_ctx_table[0].alarm_api = NULL; + + fwk_id_get_element_idx_ExpectAnyArgsAndReturn(0); + + status = start_deeper_locking_alarm(core_pd_id); + + TEST_ASSERT_EQUAL(status, FWK_E_SUPPORT); +} + +void test_deeper_locking_alarm_callback(void) +{ + uintptr_t param = (uintptr_t)0; + struct ppu_v1_pd_ctx *pd_ctx_temp; + pd_ctx_temp = &ppu_v1_ctx.pd_ctx_table[0]; + + ppu_v1_lock_off_disable_Expect(pd_ctx_temp->ppu); + ppu_v1_off_unlock_ExpectAnyArgs(); + + deeper_locking_alarm_callback(param); +} + int scmi_test_main(void) { UNITY_BEGIN(); @@ -118,6 +212,10 @@ int scmi_test_main(void) RUN_TEST(test_ppu_v1_mod_init); RUN_TEST(test_ppu_v1_pd_init_error); RUN_TEST(test_ppu_v1_pd_init); + RUN_TEST(test_ppu_v1_core_pd_set_state_sleep); + RUN_TEST(test_start_deeper_locking_alarm); + RUN_TEST(test_start_deeper_locking_alarm_null_api); + RUN_TEST(test_deeper_locking_alarm_callback); return UNITY_END(); }