aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Stub_Status.c
blob: b657b627424a36acb0d881862207bc3b0ff1ad53 (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
#include "include.h"


int status_response(uint32_t Rstatus,char *status[20],uint32_t *statusword ,protobuf_c_boolean *has_statusword)
{
    if(Rstatus==PASSED)
    {
        *status = "PASSED";
        *has_statusword = false;
    }
    else if(Rstatus==VERIFIED)
    {
        *status = "PASSED (VERIFIED)";
        *has_statusword = false;
    }
    else if(Rstatus==NOT_SUPPORTED)
    {
        *status = "NOT_SUPPORTED";
        *statusword = Rstatus;
        *has_statusword = false;
    }
    else
    {
        *status = "FAILED";
        *statusword = Rstatus;
        *has_statusword = true;
    }
    return 0;
}

int Write_status_response(uint32_t Rstatus)
{
    return 0;
}