Port Driver (Port)
AUTOSAR Classic I/O Drivers-Modul Port Driver (Port, Spezifikation: AUTOSAR_CP_SWS_PortDriver.pdf, AUTOSAR_SWS_PortDriver.pdf, AUTOSAR_SWS_Port_Driver.pdf).
Funktionen — Übersicht
void Port_Init (const Port_ConfigType* ConfigPtr);Initializes the Port Driver module.void Port_SetPinDirection (Port_PinType Pin, Port_PinDirectionType Direction);Sets the port pin directionvoid Port_RefreshPortDirection (void);Refreshes port direction.void Port_GetVersionInfo (Std_VersionInfoType* versioninfo);Returns the version information of this module.void Port_SetPinMode (Port_PinType Pin, Port_PinModeType Mode);Sets the port pin mode.
Typen — Übersicht
struct Port_ConfigTypeType of the external data structure containing the initialization data for this module.struct Port_PinTypeData type for the symbolic name of a port pin.enum Port_PinDirectionTypePossible directions of a port pin.struct Port_PinModeTypeDifferent port pin modes.
Anforderungen — Übersicht
SWS_Port_00051Type of error Related error code Error value Invalid Port Pin ID requested PORT_ E_ PARAM_ PIN 0x0A Port Pin not configured as...SWS_Port_00060[SWS_Port_00060] ⌈The function Port_RefreshPortDirection shall refresh the direction of all configured ports to the configured...SWS_Port_00061[SWS_Port_00061] ⌈The function Port_RefreshPortDirection shall exclude those port pins from refreshing that are configured as...SWS_Port_00129Module Header File Imported Type Std Std_ Types.SWS_Port_00146Det _ Report Error Det.SWS_Port_00225[SWS_Port_00225] ⌈if Det is enabled, the parameter versioninfo shall be checked for being NULL.SWS_Port_NA_00227[SWS_Port_NA_00227] to SRS_BSW_00371 • No content changes • Editorial changes • Extended support for Software Clusters •...
Funktionen & Typen — Detailansicht
फ़ंक्शन Port_Init [SWS_Port_00140] 📄 PDF
void Port_Init(const Port_ConfigType* ConfigPtr);
Initializes the Port Driver module.
फ़ंक्शन Port_SetPinDirection [SWS_Port_00141] 📄 PDF
void Port_SetPinDirection(Port_PinType Pin, Port_PinDirectionType Direction);
Sets the port pin direction
फ़ंक्शन Port_RefreshPortDirection [SWS_Port_00142] 📄 PDF
void Port_RefreshPortDirection(void);
Refreshes port direction.
फ़ंक्शन Port_GetVersionInfo [SWS_Port_00143] 📄 PDF
void Port_GetVersionInfo(Std_VersionInfoType* versioninfo);
Returns the version information of this module.
फ़ंक्शन Port_SetPinMode [SWS_Port_00145] 📄 PDF
void Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode);
Sets the port pin mode.
टाइप Port_ConfigType [SWS_Port_00228] 📄 PDF
Type of the external data structure containing the initialization data for this module.
टाइप Port_PinType [SWS_Port_00229] 📄 PDF
Data type for the symbolic name of a port pin.
टाइप Port_PinDirectionType [SWS_Port_00230] 📄 PDF
Possible directions of a port pin.
टाइप Port_PinModeType [SWS_Port_00231] 📄 PDF
Different port pin modes.
requirement SWS_Port_00051 [SWS_Port_00051] 📄 PDF
Type of error Related error code Error value Invalid Port Pin ID requested PORT_ E_ PARAM_ PIN 0x0A Port Pin not configured as changeable PORT_ E_ DIRECTION_ UNCHANGEABLE 0x0B API Port_ Init service called with wrong parameter PORT_ E_ INIT_ FAILED 0x0C API Port_ Set Pin Mode service called when mode is unchangeable. PORT_ E_ PARAM_ INVALID_ MODE 0x0D API Port_ Set Pin Mode service called when mode is unchangeable. PORT_ E_ MODE_ UNCHANGEABLE 0x0E API service called without module initialization PORT_ E_ UNINIT 0x0F APIs called with a Null Pointer PORT_ E_ PARAM_ POINTER 0x10
requirement SWS_Port_00060 [SWS_Port_00060] 📄 PDF
[SWS_Port_00060] ⌈The function Port_RefreshPortDirection shall refresh the direction of all configured ports to the configured direction (PortPinDirection).⌋ (SRS_Port_12406)
requirement SWS_Port_00061 [SWS_Port_00061] 📄 PDF
[SWS_Port_00061] ⌈The function Port_RefreshPortDirection shall exclude those port pins from refreshing that are configured as ’pin direction changeable dur- ing runtime’.⌋(SRS_Port_12406) The configuration tool shall provide names for each configured port pin.
requirement SWS_Port_00129 [SWS_Port_00129] 📄 PDF
Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type
requirement SWS_Port_00146 [SWS_Port_00146] 📄 PDF
Det _ Report Error Det.h Service to report development errors.
requirement SWS_Port_00225 [SWS_Port_00225] 📄 PDF
[SWS_Port_00225] ⌈if Det is enabled, the parameter versioninfo shall be checked for being NULL. The error PORT_E_PARAM_POINTER shall be reported in case the value is a NULL pointer.⌋
requirement SWS_Port_NA_00227 [SWS_Port_NA_00227] 📄 PDF
[SWS_Port_NA_00227] to SRS_BSW_00371 • No content changes • Editorial changes • Extended support for Software Clusters • Support for termination and restart of partitions removed • VFB tracing of mode switch request completion • Minor corrections / clarifications/ editorial changes • Updated naming of Security Events for IdsM • Minor corrections / clarifications / editorial changes • Added Secure SOME/IP-ACL • Minor bugfixes and editorial changes • Added SoAdSocketIpAddrAssignmentChgNotifUpperLayerRef. • Added ACL support. • Removed module prefix from security events. • Improved TCP stream handling. • Improved nPdu transmit requirements
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_Port- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_Port@rel:R20-11#450e09c1- Content hash
450e09c1- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_PortDriver.pdf#nameddest=SWS_Port_00140