STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Dio.h
Go to the documentation of this file.
1
26#ifndef DIO_H__
27#define DIO_H__
28
29#include "Dio_Cfg.h"
30
32void Dio_WriteChannel( Dio_ChannelType ChannelId, Dio_LevelType Level );
33#if DIO_FLIP_CHANNEL_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
35#endif
37void Dio_WritePort( Dio_PortType PortId, Dio_PortLevelType Level );
39void Dio_WriteChannelGroup( const Dio_ChannelGroupType *ChannelGroupIdPtr, Dio_PortLevelType Level );
40#if DIO_GET_VERSION_INFO_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
41void Dio_GetVersionInfo( Std_VersionInfoType *versioninfo );
42#endif
43#if DIO_MASKED_WRITE_PORT_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
45#endif
46
47#endif /* DIO_H_ */
Dio_LevelType Dio_FlipChannel(Dio_ChannelType ChannelId)
Flip Channel.
Definition Dio.c:121
void Dio_WritePort(Dio_PortType PortId, Dio_PortLevelType Level)
Write Port.
Definition Dio.c:185
void Dio_GetVersionInfo(Std_VersionInfoType *versioninfo)
Get Version Info.
Definition Dio.c:275
void Dio_WriteChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr, Dio_PortLevelType Level)
Write Channel Group.
Definition Dio.c:248
void Dio_MaskedWritePort(Dio_PortType PortId, Dio_PortLevelType Level, Dio_PortLevelType Mask)
Masked Write Port.
Definition Dio.c:308
Dio_PortLevelType Dio_ReadPort(Dio_PortType PortId)
Read Port.
Definition Dio.c:154
Dio_LevelType Dio_ReadChannel(Dio_ChannelType ChannelId)
Read Channel.
Definition Dio.c:58
void Dio_WriteChannel(Dio_ChannelType ChannelId, Dio_LevelType Level)
Write Channel.
Definition Dio.c:90
Dio_PortLevelType Dio_ReadChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr)
Read Channel Group.
Definition Dio.c:214
uint32 Dio_PortLevelType
The type for the value of a DIO port.
Definition Dio_Types.h:95
uint8 Dio_LevelType
The type for the possible levels that a DIO channel can have (input or output).
Definition Dio_Types.h:84
uint8 Dio_PortType
Parameters of type Dio_PortType contain the numeric ID of a DIO port.
Definition Dio_Types.h:75
uint8 Dio_ChannelType
Parameters of type Dio_ChannelType contain the numeric ID of a DIO channel.
Definition Dio_Types.h:65
struct Std_VersionInfoType_Tag Std_VersionInfoType
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...
Type for the definition of a channel group, which consists of several adjoining channels within a por...
Definition Dio_Types.h:104