STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Port.h
Go to the documentation of this file.
1
15#ifndef PORT_H__
16#define PORT_H__
17
18#include "Port_Cfg.h"
19
20void Port_Init( const Port_ConfigType *ConfigPtr );
21
22#if PORT_SET_PIN_DIRECTION_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
24#endif
25
26#if PORT_SET_PIN_MODE_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
28#endif
29
30#if PORT_VERSION_INFO_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
31void Port_GetVersionInfo( Std_VersionInfoType *versioninfo );
32#endif
33
34void Port_RefreshPortDirection( void );
35
36#endif
void Port_RefreshPortDirection(void)
Refresh port direction.
Definition Port.c:219
void Port_GetVersionInfo(Std_VersionInfoType *versioninfo)
Gets the current version.
Definition Port.c:191
void Port_SetPinDirection(Port_PinType Pin, Port_PinDirectionType Direction)
Set the direction of a GPIO during runtime.
Definition Port.c:95
void Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode)
Set the mode of a GPIO during runtime.
Definition Port.c:139
void Port_Init(const Port_ConfigType *ConfigPtr)
Initialize the GPIO pins to the configuration store on ConfigPTR.
Definition Port.c:61
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
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
struct Std_VersionInfoType_Tag Std_VersionInfoType
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...