STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Port_Types.h
Go to the documentation of this file.
1
10#ifndef PORT_TYPES_H__
11#define PORT_TYPES_H__
12
13#include "Std_Types.h"
14
19#ifndef UTEST
20#define PORT_STATIC static
21#else
22#define PORT_STATIC
23#endif
26
33#define PORT_E_PARAM_PIN 0x0Au
34#define PORT_E_DIRECTION_UNCHANGEABLE 0x0Bu
35#define PORT_E_INIT_FAILED 0x0Cu
36#define PORT_E_PARAM_INVALID_MODE 0x0Du
37#define PORT_E_MODE_UNCHANGEABLE 0x0Eu
38#define PORT_E_UNINIT 0x0Fu
39#define PORT_E_PARAM_POINTER 0x10u
42
47#define PORT_ID_INIT 0x00u
48#define PORT_ID_SET_PIN_DIRECTION 0x10u
49#define PORT_ID_SET_PIN_MODE 0x0fu
50#define PORT_ID_GET_VERSION_INFO 0x03u
51#define PORT_ID_REFRESH_PORT_DIRECTION 0x04u
54
63
71
81
106
119
120
121#endif /* PORT_TYPES_H__ */
unsigned short uint16
Definition Platform_Types.h:96
unsigned char uint8
Definition Platform_Types.h:94
uint16 Port_PinType
Data type for the symbolic name of a port pin. the 8 most significant bits represent the port of the ...
Definition Port_Types.h:62
struct _Port_ConfigType Port_ConfigType
Driver configuration structure
uint8 Port_PinModeType
Data type for the altern functions of a pin. range: PORT_PIN_MODE_AF0, PORT_PIN_MODE_AF1,...
Definition Port_Types.h:80
struct _Port_PinConfigType Port_PinConfigType
Definition of the external data structure containing the initialization data
uint8 Port_PinDirectionType
Data type for the symbolic direction of a pin. range: PORT_PIN_IN and PORT_PIN_OUT.
Definition Port_Types.h:70
Specification of Standard Types
Driver configuration structure
Definition Port_Types.h:115
Port_PinType NumbersOfPins
Definition Port_Types.h:117
const Port_PinConfigType * PortPins
Definition Port_Types.h:116
Definition of the external data structure containing the initialization data
Definition Port_Types.h:96
uint8 ModeChange
Definition Port_Types.h:104
uint8 OutputDrive
Definition Port_Types.h:100
uint8 Mode
Definition Port_Types.h:102
uint8 Pull
Definition Port_Types.h:99
uint8 Speed
Definition Port_Types.h:101
uint8 Pin
Definition Port_Types.h:97
uint8 Port
Definition Port_Types.h:98
uint8 DirChange
Definition Port_Types.h:103