9
9
* * Redistributions in binary form must reproduce the above copyright
10
10
* notice, this list of conditions and the following disclaimer in the
11
11
* documentation and/or other materials provided with the distribution.
12
- * * Neither the name of COVESA nor the names of its contributors may be
12
+ * * Neither the name of COVESA nor the names of its contributors may be
13
13
* used to endorse or promote products derived from this software without
14
14
* specific prior written permission.
15
15
*
31
31
#include <string.h>
32
32
33
33
#include "avtp/acf/Gpc.h"
34
- #include "avtp/Utils.h"
34
+ #include "avtp/Utils.h"
35
35
#include "avtp/Defines.h"
36
36
37
37
#define GET_FIELD (field ) \
@@ -46,21 +46,21 @@ static const Avtp_FieldDescriptor_t Avtp_GpcFieldDesc[AVTP_GPC_FIELD_MAX] =
46
46
{
47
47
/* ACF common header fields */
48
48
[AVTP_GPC_FIELD_ACF_MSG_TYPE ] = { .quadlet = 0 , .offset = 0 , .bits = 7 },
49
- [AVTP_GPC_FIELD_ACF_MSG_LENGTH ] = { .quadlet = 0 , .offset = 7 , .bits = 9 },
49
+ [AVTP_GPC_FIELD_ACF_MSG_LENGTH ] = { .quadlet = 0 , .offset = 7 , .bits = 9 },
50
50
/* ACF GPC header fields */
51
51
[AVTP_GPC_FIELD_GPC_MSG_ID ] = { .quadlet = 0 , .offset = 16 , .bits = 48 },
52
52
};
53
53
54
54
void Avtp_Gpc_Init (Avtp_Gpc_t * pdu )
55
55
{
56
56
if (pdu != NULL ) {
57
- memset (pdu , 0 , sizeof (Avtp_Gpc_t ));
57
+ memset (pdu , 0 , sizeof (Avtp_Gpc_t ));
58
58
Avtp_Gpc_SetField (pdu , AVTP_GPC_FIELD_ACF_MSG_TYPE , AVTP_ACF_TYPE_GPC );
59
59
}
60
60
}
61
61
62
62
uint64_t Avtp_Gpc_GetField (Avtp_Gpc_t * pdu , Avtp_GpcFields_t field )
63
- {
63
+ {
64
64
return GET_FIELD (field );
65
65
}
66
66
@@ -80,22 +80,22 @@ uint64_t Avtp_Gpc_GetGpcMsgId(Avtp_Gpc_t* pdu)
80
80
}
81
81
82
82
void Avtp_Gpc_SetField (Avtp_Gpc_t * pdu , Avtp_GpcFields_t field , uint64_t value )
83
- {
83
+ {
84
84
SET_FIELD (field , value );
85
85
}
86
86
87
87
void Avtp_Gpc_SetAcfMsgType (Avtp_Gpc_t * pdu , uint8_t value )
88
- {
88
+ {
89
89
SET_FIELD (AVTP_GPC_FIELD_ACF_MSG_TYPE , value );
90
90
}
91
91
92
92
void Avtp_Gpc_SetAcfMsgLength (Avtp_Gpc_t * pdu , uint16_t value )
93
- {
93
+ {
94
94
SET_FIELD (AVTP_GPC_FIELD_ACF_MSG_LENGTH , value );
95
95
}
96
96
97
97
void Avtp_Gpc_SetGpcMsgId (Avtp_Gpc_t * pdu , uint64_t value )
98
- {
98
+ {
99
99
SET_FIELD (AVTP_GPC_FIELD_GPC_MSG_ID , value );
100
100
}
101
101
0 commit comments