summaryrefslogtreecommitdiff
path: root/lcmodule/test_cases/ADbg_cnh1606344_utilities.c
blob: 82c06061069faf3a50fd019389bbca9a911d8a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*******************************************************************************
 * Copyright (C) ST-Ericsson SA 2011
 * License terms: 3-clause BSD license
 ******************************************************************************/

/**
 * @file ADbg_cnh1606344_utilities.c
 *
 * @brief Interface functions for CNH1606344 module.
 *
 * This file consist of interface functions for setting preconditions
 * for automatic testing functions from CNH1606344 module.
 */

/*
 * @addtogroup ADbg
 * @{
 */

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "r_adbg.h"
#include "r_adbg_int_function.h"
#include "r_adbg_int_group.h"
#include "r_adbg_command.h"
#include "r_adbg_module.h"
#include "r_communication_service.h"
#include "ADbg_cnh1606344_utilities.h"

/*******************************************************************************
 * The interface functions declarations
 ******************************************************************************/

static void ADbg_IntGroup1_CNH1606344_Group(ADbg_Module_t *Module_p);
/** Functions used for set the global variables. */
static void ADbg_Test_Function1_CNH1606344(ADbg_IntFunction_t *IntFunction_p);

/*******************************************************************************
 * The interface group definitions
 ******************************************************************************/
//ADBG_INTERFACE_GROUP_DEFINE(InterfaceGroupName, InterfaceGroupId, ModuleId, InterfaceFunctionRunner)
ADBG_INTERFACE_GROUP_DEFINE(Test_IntGroup1_CNH1606344_Group, 1, 15, ADbg_IntGroup1_CNH1606344_Group);

/*******************************************************************************
 * The interface function definitions
 ******************************************************************************/

static uint8 Param1[2] = {1, WORD};
static uint8 Param2[4];
ADBG_INTERFACE_FUNCTION_DEFINE(Test_Function1_CNH1606344, 1, 1, 15, ADbg_Test_Function1_CNH1606344, Param1, Param2);

/*******************************************************************************
 * The interface group suite definition
 ******************************************************************************/
//ADBG_INTERFACE_GROUP_SUITE_DEFINE_BEGIN(TestIntGroup_CNH1606344, 0, ModuleId)
ADBG_INTERFACE_GROUP_SUITE_DEFINE_BEGIN(IntGroup_CNH1606344, 0, 15)

//ADBG_INTERFACE_GROUP_SUITE_ENTRY(InterfaceGroupName)
ADBG_INTERFACE_GROUP_SUITE_ENTRY(Test_IntGroup1_CNH1606344_Group)

ADBG_INTERFACE_GROUP_SUITE_DEFINE_END();

/*******************************************************************************
 * The interface functions suites definition
 ******************************************************************************/
//ADBG_INTERFACE_FUNCTION_SUITE_DEFINE_BEGIN(TestIntFunctionSuiteName, 0, IntGroupId, ModuleId)

ADBG_INTERFACE_FUNCTION_SUITE_DEFINE_BEGIN(IntGroup1_CNH1606344, 0, 1, 15)

ADBG_INTERFACE_FUNCTION_SUITE_ENTRY(Test_Function1_CNH1606344)           //InterfaceFunctionName

ADBG_INTERFACE_FUNCTION_SUITE_DEFINE_END();

/*******************************************************************************
 * Interface group runner
 ******************************************************************************/
void Do_CNH1606344_Module_Interface_Run(ADbg_MainModule_t *MainModule_p)
{
    ADbg_Module_t *Module_p = Do_ADbg_Module_Create(NULL, IntGroup_CNH1606344, MainModule_p->Command_p, MainModule_p->Result_p);
    Do_ADbg_InModule_Command(Module_p);
    Do_ADbg_Module_Destroy(Module_p);
}

/*******************************************************************************
 * Interface functions from group1 runner
 ******************************************************************************/
static void ADbg_IntGroup1_CNH1606344_Group(ADbg_Module_t *Module_p)
{
    ADbg_IntGroup_t *IntGroup1_p = Do_ADbg_IntGroup_Create(IntGroup1_CNH1606344, Module_p->Command_p, Module_p->Result_p);
    Do_ADbg_InIntGroup_Command(IntGroup1_p);
    Do_ADbg_IntGroup_Destroy(IntGroup1_p);
}

/**
 * @brief Interface function.
 *
 * This function...
 *
 * @param [in] IntFunction_p is pointer.
 * @return     void.
 */
static void ADbg_Test_Function1_CNH1606344(ADbg_IntFunction_t *IntFunction_p)
{
    uint32 Param;

    //...
    Do_ADbg_SetAndRecoveryCondition((void *)&Param, Param2, sizeof(uint32), IntFunction_p);
}

/* @} */