STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Dio_Arch.h
Go to the documentation of this file.
1
11#ifndef DIO_ARCH_H__
12#define DIO_ARCH_H__
13
14#include "Dio_Types.h"
15
22/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
23#define DIO_PORT_A 0u
24/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
25#define DIO_PORT_B 1u
26/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
27#define DIO_PORT_C 2u
28/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
29#define DIO_PORT_D 3u
30/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
31#define DIO_PORT_E 4u
32/* cppcheck-suppress misra-c2012-2.5 ; these defines have been use in Dio_Lcfg.c */
33#define DIO_PORT_F 5u
36
37
44void Dio_Arch_WriteChannelGroup( const Dio_ChannelGroupType *ChannelGroupIdPtr, Dio_PortLevelType Level );
46
47#endif /* DIO_ARCH_H__ */
void Dio_Arch_MaskedWritePort(Dio_PortType Port, Dio_PortLevelType Level, Dio_PortLevelType Mask)
Masked Write Port.
Definition Dio_Arch.c:171
Dio_PortLevelType Dio_Arch_ReadChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr)
Read Channel Group.
Definition Dio_Arch.c:128
void Dio_Arch_WriteChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr, Dio_PortLevelType Level)
Write Channel Group.
Definition Dio_Arch.c:152
Dio_LevelType Dio_Arch_ReadChannel(Dio_PortType Port, uint8 Pin)
Read Channel.
Definition Dio_Arch.c:36
void Dio_Arch_WriteChannel(Dio_PortType Port, uint8 Pin, Dio_LevelType Level)
Write Channel.
Definition Dio_Arch.c:53
Dio_LevelType Dio_Arch_FlipChannel(Dio_PortType Port, uint8 Pin)
Flip Channel.
Definition Dio_Arch.c:73
void Dio_Arch_WritePort(Dio_PortType Port, Dio_PortLevelType Level)
Write Port.
Definition Dio_Arch.c:111
Dio_PortLevelType Dio_Arch_ReadPort(Dio_PortType Port)
Read Port.
Definition Dio_Arch.c:95
Dio Driver Types
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
unsigned char uint8
Definition Platform_Types.h:94
Type for the definition of a channel group, which consists of several adjoining channels within a por...
Definition Dio_Types.h:104