DEENESPTFRRUARHIKOZHNL

Port Driver (Port)

ModulPort (Port Driver)
BSW-Modul-ID124
Standard-Header#include "Port.h"
SWS-SpezifikationAUTOSAR_CP_SWS_PortDriver.pdf, AUTOSAR_SWS_PortDriver.pdf, AUTOSAR_SWS_Port_Driver.pdf
Umfang16 Records · 2 Snippets
ClusterMikrocontroller-Abstraktion (MCAL & I/O)

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

Typen — Übersicht

Anforderungen — Übersicht

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_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.

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_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#e1112898
Content hash
e1112898
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_PortDriver.pdf#nameddest=SWS_Port_00140

Карта тем

Подробный вид

Выберите элемент в оглавлении.

Инициализация и состояние

Port_GetVersionInfo функция

Returns the version information of this module.

void Port_GetVersionInfo(Std_VersionInfoType* versioninfo);
Port_Init функция

Initializes the Port Driver module.

void Port_Init(const Port_ConfigType* ConfigPtr);

Сервисы

Refreshes port direction.

void Port_RefreshPortDirection(void);
Port_SetPinDirection функция

Sets the port pin direction

void Port_SetPinDirection(Port_PinType Pin, Port_PinDirectionType Direction);
Port_SetPinMode функция

Sets the port pin mode.

void Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode);

Типы

Type of the external data structure containing the initialization data for this module.

Possible directions of a port pin.

Different port pin modes.

Data type for the symbolic name of a port pin.

Требования

SWS_Port_00051 requirement

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

SWS_Port_00060 requirement

[SWS_Port_00060] ⌈The function Port_RefreshPortDirection shall refresh the direction of all configured ports to the configured direction (PortPinDirection).⌋ (SRS_Port_12406)

SWS_Port_00061 requirement

[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.

SWS_Port_00129 requirement

Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

SWS_Port_00146 requirement

Det _ Report Error Det.h Service to report development errors.

SWS_Port_00225 requirement

[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.⌋

SWS_Port_NA_00227 requirement

[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