STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Std_Types.h
Go to the documentation of this file.
1
10#ifndef STD_TYPES_H /* @reqs SWS_Std_00014*/
11#define STD_TYPES_H
12
13/* @reqs SWS_Std_00004*/
14#include "Platform_Types.h"
15
23
24
35
36
43
44
54
55
65
66
75typedef Std_ReturnType ( *Std_ExtractProtocolHeaderFieldsType )( const uint8 *buffer, uint32 bufferLength, Std_MessageTypeType *messageType, Std_MessageResultType *messageResult );
76
77
92
93
105
106
114#ifndef STATUSTYPEDEFINED
115#define STATUSTYPEDEFINED
116#define E_OK 0u
117typedef unsigned char StatusType;
118#endif
119#define E_NOT_OK 1u
120#define CAN_BUSY 2u
122
123
131#define STD_HIGH 1u
132#define STD_LOW 0u
134
135
143#define STD_ACTIVE 1u
144#define STD_IDLE 0u
146
147
155#define STD_ON 1u
156#define STD_OFF 0u
158
159
165#define NULL_PTR ( (void *)0 )
166
167
168#endif /* STD_TYPES_H */
Specification of Platform Types
unsigned short uint16
Definition Platform_Types.h:96
unsigned int uint32
Definition Platform_Types.h:98
unsigned char uint8
Definition Platform_Types.h:94
Std_ReturnType(* Std_ExtractProtocolHeaderFieldsType)(const uint8 *buffer, uint32 bufferLength, Std_MessageTypeType *messageType, Std_MessageResultType *messageResult)
Type for the function pointer to extract the relevant protocol header fields of the message and the t...
Definition Std_Types.h:75
uint8 Std_TransformerClass
The type Std_TransformerClass shall be an enumeration with the following elements where each element ...
Definition Std_Types.h:34
uint8 Std_TransformerErrorCode
The type of the Std_TransformerError.
Definition Std_Types.h:42
uint8 Std_MessageResultType
This type is used to encode different types of results for response messages. Currently this encoding...
Definition Std_Types.h:64
struct Std_TransformerError_Tag Std_TransformerError
The Std_TransformerErrorCode represents a transformer error in the context of a certain transformer c...
unsigned char StatusType
Definition Std_Types.h:117
struct Std_VersionInfoType_Tag Std_VersionInfoType
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...
uint8 Std_ReturnType
This type can be used as standard API return type which is shared between the RTE and the BSW modules...
Definition Std_Types.h:22
uint8 Std_MessageTypeType
This type is used to encode the different type of messages. -Currently this encoding is limited to th...
Definition Std_Types.h:53
The Std_TransformerErrorCode represents a transformer error in the context of a certain transformer c...
Definition Std_Types.h:101
Std_TransformerErrorCode errorCode
Definition Std_Types.h:102
Std_TransformerClass transformerClass
Definition Std_Types.h:103
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...
Definition Std_Types.h:85
uint16 vendorID
Definition Std_Types.h:86
uint8 sw_major_version
Definition Std_Types.h:88
uint8 sw_patch_version
Definition Std_Types.h:90
uint8 sw_minor_version
Definition Std_Types.h:89
uint16 moduleID
Definition Std_Types.h:87