106 #include "Std_Types.h" 126 #define DIO_SW_MAJOR_VERSION (1U) 128 #define DIO_SW_MINOR_VERSION (2U) 130 #define DIO_SW_PATCH_VERSION (1U) 140 #define DIO_AR_RELEASE_MAJOR_VERSION (4U) 142 #define DIO_AR_RELEASE_MINOR_VERSION (3U) 144 #define DIO_AR_RELEASE_REVISION_VERSION (1U) 152 #define DIO_VENDOR_ID ((uint16) 44U) 154 #define DIO_MODULE_ID ((uint16) 120U) 162 #if defined (SOC_AM65XX) 163 #define DIO_HW_UNIT_CNT (3U) 164 #elif defined (SOC_J721E) 165 #define DIO_HW_UNIT_CNT (10U) 174 #ifndef DIO_E_PARAM_INVALID_CHANNEL_ID 176 #define DIO_E_PARAM_INVALID_CHANNEL_ID (0x0AU) 179 #ifndef DIO_E_PARAM_INVALID_PORT_ID 181 #define DIO_E_PARAM_INVALID_PORT_ID (0x14U) 184 #ifndef DIO_E_PARAM_INVALID_GROUP 186 #define DIO_E_PARAM_INVALID_GROUP (0x1FU) 189 #ifndef DIO_E_PARAM_POINTER 191 #define DIO_E_PARAM_POINTER (0x20U) 204 #define DIO_SID_READ_CHANNEL (0U) 206 #define DIO_SID_WRITE_CHANNEL (1U) 208 #define DIO_SID_READ_PORT (2U) 210 #define DIO_SID_WRITE_PORT (3U) 212 #define DIO_SID_READ_CHL_GROUP (4U) 214 #define DIO_SID_WRITE_CHL_GROUP (5U) 216 #define DIO_SID_FLIP_CHANNEL (7U) 218 #define DIO_SID_GET_VERSION_INFO (18U) 224 #define DIO_PORT_WIDTH (32U) 227 #define DIO_MCAL_2139_FIXED (0U) 308 FUNC(Dio_LevelType, DIO_CODE)
Dio_ReadChannel(Dio_ChannelType ChannelId);
329 Dio_ChannelType ChannelId, Dio_LevelType Level);
347 FUNC(Dio_PortLevelType, DIO_CODE)
Dio_ReadPort(Dio_PortType PortId);
368 Dio_PortType PortId, Dio_PortLevelType Level);
415 #if (STD_ON == DIO_VERSION_INFO_API) 435 P2VAR(Std_VersionInfoType, AUTOMATIC, DIO_APPL_DATA) versioninfo);
438 #if (STD_ON == DIO_FLIP_CHANNEL_API) 464 FUNC(Dio_LevelType, DIO_CODE)
Dio_FlipChannel(Dio_ChannelType ChannelId);
467 #if (STD_ON == DIO_REGISTER_READBACK_API) void Dio_GetVersionInfo(Std_VersionInfoType *versioninfo)
Service to get the version information of this module.
uint32 Dio_ChannelType
type definition for identifying DIO channels (meaning single port pins)
Definition: Dio.h:242
void Dio_WriteChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr, Dio_PortLevelType Level)
Service to set a subset of the adjoining bits of a port to a specified level.
void Dio_WriteChannel(Dio_ChannelType ChannelId, Dio_LevelType Level)
Service to set a level of a channel.
uint32 Dio_PortLevelType
type definition for setting port level values
Definition: Dio.h:255
Type definition for identifying channel groups (meaning a set of pins in one port) ...
Definition: Dio.h:260
uint32 Dio_RegisterReadback(Dio_ChannelType ChannelId)
This function reads the important registers of the hardware unit and returns the value in the structu...
Dio_LevelType Dio_ReadChannel(Dio_ChannelType ChannelId)
Returns the value of the specified DIO channel.
void Dio_WritePort(Dio_PortType PortId, Dio_PortLevelType Level)
Service to set a value of the port.
uint8 Dio_LevelType
type definition for setting DIO channnel level values (allowed values: STD_HIGH and STD_LOW) ...
Definition: Dio.h:276
Dio_PortLevelType Dio_ReadChannelGroup(const Dio_ChannelGroupType *ChannelGroupIdPtr)
This Service reads a subset of the adjoining bits of a port.
Dio_PortLevelType mask
Definition: Dio.h:264
This file contains generated pre compile configuration file for DIO MCAL driver.
uint32 Dio_PortType
type definition for identifying ports
Definition: Dio.h:246
Dio_PortLevelType Dio_ReadPort(Dio_PortType PortId)
Returns the level of all channels of that port.
Dio_LevelType Dio_FlipChannel(Dio_ChannelType ChannelId)
Service to flip (change from 1 to 0 or from 0 to 1) the level of a channel and return the level of th...
Dio_PortType port
Definition: Dio.h:262
uint8 offset
Definition: Dio.h:266