Defines C API functions for Autosar E2E Profile 4 library.
Data Structures | |
| struct | E2EP04Config |
| Configuration of transmitted Data (Data Element), for E2E Profile 4. More... | |
Typedefs | |
| typedef struct E2EP04Config | E2EP04Config |
| Configuration of transmitted Data (Data Element), for E2E Profile 4. More... | |
| typedef struct dwE2EP04ProtectObject * | dwE2EP04ProtectHandle_t |
| Handle represents a dwE2EP04Protect object. More... | |
| typedef struct dwE2EP04CheckObject * | dwE2EP04CheckHandle_t |
| Handle represents a dwE2EP04Check object. More... | |
Enumerations | |
| enum | E2EDataID { INVALID = 0, VIO_ASIL_STATE, VIO_ASIL_COMMAND } |
| Define a system-unique identifier of the Data. More... | |
| enum | E2EStatus { STATUS_OK = 0x00U, INPUTERR_NULL = 0x13U, INPUTERR_WRONG = 0x17U } |
| E2E function return status. More... | |
| enum | E2EP04CheckStatus { OK = 0x00U, NONEWDATA = 0x01U, CHECK_STATUS_ERROR = 0x07U, REPEATED = 0x08U, OKSOMELOST = 0x20U, WRONGSEQUENCE = 0x40U } |
| Status of the reception on one single Data in one cycle, protected with E2E Profile 4. More... | |
Functions | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_initialize (dwE2EP04ProtectHandle_t *const protect, const uint32_t dataID, const uint8_t maxDeltaCounter, const uint16_t offset, const uint16_t minDataLength, const uint16_t maxDataLength) |
| Creates an E2E Profile 4 protect handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_initializeFromConfig (dwE2EP04ProtectHandle_t *const protect, E2EP04Config const *const config) |
| Creates an E2E Profile 4 protect handle from config. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_getConfig (E2EP04Config const **const config, dwE2EP04ProtectHandle_t const protect) |
| Get the current config from E2E Profile 4 protect handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_configVerify (E2EStatus *const e2eStatus, dwE2EP04ProtectHandle_t const protect) |
| Verify the config of E2E Profile 4 protect handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_protect (E2EStatus *const e2eStatus, void *dataPtr, const uint16_t length, dwE2EP04ProtectHandle_t const protect) |
| Protects the array/buffer to be transmitted using the E2E profile 4. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Protect_release (dwE2EP04ProtectHandle_t const protect) |
| Releases a E2E Profile 4 protect handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_initialize (dwE2EP04CheckHandle_t *const check, uint32_t dataID, uint8_t maxDeltaCounter, uint16_t offset, uint16_t minDataLength, const uint16_t maxDataLength) |
| Creates a E2E Profile 4 check handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_initializeFromConfig (dwE2EP04CheckHandle_t *const check, E2EP04Config const *const config) |
| Creates a E2E Profile 4 check handle from config. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_getConfig (E2EP04Config const **const config, dwE2EP04CheckHandle_t const check) |
| Get the current config from E2E Profile 4 check handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_configVerify (E2EStatus *const e2eStatus, dwE2EP04CheckHandle_t const check) |
| Verify the config of E2E Profile 4 check handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_check (E2EStatus *const e2eStatus, void *const dataPtr, uint16_t const length, dwE2EP04CheckHandle_t const check) |
| Checks the Data received using the E2E profile 4 check handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_getCheckStatus (E2EP04CheckStatus const **const e2eCheckStatus, dwE2EP04CheckHandle_t const check) |
| Retrieve the latest check status of E2E Profile 4 check handle. More... | |
| DW_API_PUBLIC dwStatus | dwE2EP04Check_release (dwE2EP04CheckHandle_t const check) |
| Releases a E2E Profile 4 check handle. More... | |
| typedef struct dwE2EP04CheckObject* dwE2EP04CheckHandle_t |
| typedef struct dwE2EP04ProtectObject* dwE2EP04ProtectHandle_t |
| typedef struct E2EP04Config E2EP04Config |
Configuration of transmitted Data (Data Element), for E2E Profile 4.
For each transmitted Data, there is an instance of this typedef.
| enum E2EDataID |
Define a system-unique identifier of the Data.
| Enumerator | |
|---|---|
| INVALID | invalid data id |
| VIO_ASIL_STATE | data id for dwVehicleIOASILStateE2EWrapper structure |
| VIO_ASIL_COMMAND | data id for dwVehicleIOASILCommandE2EWrapper |
| enum E2EP04CheckStatus |
Status of the reception on one single Data in one cycle, protected with E2E Profile 4.
| enum E2EStatus |
| DW_API_PUBLIC dwStatus dwE2EP04Check_check | ( | E2EStatus *const | e2eStatus, |
| void *const | dataPtr, | ||
| uint16_t const | length, | ||
| dwE2EP04CheckHandle_t const | check | ||
| ) |
Checks the Data received using the E2E profile 4 check handle.
| [out] | e2eStatus | Result of this function call. Error code (E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK). |
| [in] | dataPtr | Pointer to Data to be transmitted. |
| [in] | length | Length of the data in bytes. |
| [in] | check | E2E Profile 4 check handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_configVerify | ( | E2EStatus *const | e2eStatus, |
| dwE2EP04CheckHandle_t const | check | ||
| ) |
Verify the config of E2E Profile 4 check handle.
| [out] | e2eStatus | Verification result of the config. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK). |
| [in] | check | E2E Profile 4 check handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_getCheckStatus | ( | E2EP04CheckStatus const **const | e2eCheckStatus, |
| dwE2EP04CheckHandle_t const | check | ||
| ) |
Retrieve the latest check status of E2E Profile 4 check handle.
| [out] | e2eCheckStatus | Latest check status of E2E Profile 4 check handle. |
| [in] | check | E2E Profile 4 check handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_getConfig | ( | E2EP04Config const **const | config, |
| dwE2EP04CheckHandle_t const | check | ||
| ) |
Get the current config from E2E Profile 4 check handle.
| [out] | config | Current config of E2E Profile 4 check handle. |
| [in] | check | E2E Profile 4 check handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_initialize | ( | dwE2EP04CheckHandle_t *const | check, |
| uint32_t | dataID, | ||
| uint8_t | maxDeltaCounter, | ||
| uint16_t | offset, | ||
| uint16_t | minDataLength, | ||
| const uint16_t | maxDataLength | ||
| ) |
Creates a E2E Profile 4 check handle.
| [out] | check | A pointer to E2E Profile 4 check handle. |
| [in] | dataID | A system-unique identifier of the Data. |
| [in] | maxDeltaCounter | Maximum allowed gap between two counter values of two consecutively received valid Data. |
| [in] | offset | E2E Profile 4 header's offset inside the data buffer (in bits) |
| [in] | minDataLength | Minimal allowed data length in bits. The value shall be <= 4096*8 (4kB) and shall be >= E2EP04_MIN_DATA_LENGTH (Header size in bits). |
| [in] | maxDataLength | Maximal allowed data length in bits. The value shall be <= 4096*8 (4kB) and it shall be >= minDataLength. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_initializeFromConfig | ( | dwE2EP04CheckHandle_t *const | check, |
| E2EP04Config const *const | config | ||
| ) |
Creates a E2E Profile 4 check handle from config.
| [out] | check | A pointer to E2E Profile 4 check handle. |
| [in] | config | An instance of E2E Profile 4 config. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Check_release | ( | dwE2EP04CheckHandle_t const | check | ) |
Releases a E2E Profile 4 check handle.
| [in] | check | E2E Profile 4 check handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_configVerify | ( | E2EStatus *const | e2eStatus, |
| dwE2EP04ProtectHandle_t const | protect | ||
| ) |
Verify the config of E2E Profile 4 protect handle.
| [out] | e2eStatus | Verification result of the config. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK). |
| [in] | protect | E2E Profile 4 protect handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_getConfig | ( | E2EP04Config const **const | config, |
| dwE2EP04ProtectHandle_t const | protect | ||
| ) |
Get the current config from E2E Profile 4 protect handle.
| [out] | config | Current config of E2E Profile 4 protect handle. |
| [in] | protect | E2E Profile 4 protect handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_initialize | ( | dwE2EP04ProtectHandle_t *const | protect, |
| const uint32_t | dataID, | ||
| const uint8_t | maxDeltaCounter, | ||
| const uint16_t | offset, | ||
| const uint16_t | minDataLength, | ||
| const uint16_t | maxDataLength | ||
| ) |
Creates an E2E Profile 4 protect handle.
| [out] | protect | A pointer to E2E Profile 4 protect handle. |
| [in] | dataID | A system-unique identifier of the Data. |
| [in] | maxDeltaCounter | Maximum allowed gap between two counter values of two consecutively received valid Data. |
| [in] | offset | E2E Profile 4 header's offset inside the data buffer (in bits). |
| [in] | minDataLength | Minimal allowed data length in bits. The value shall be <= 4096*8 (4kB) and shall be >= E2EP04_MIN_DATA_LENGTH (Header size in bits). |
| [in] | maxDataLength | Maximal allowed data length in bits. The value shall be <= 4096*8 (4kB) and it shall be >= minDataLength. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_initializeFromConfig | ( | dwE2EP04ProtectHandle_t *const | protect, |
| E2EP04Config const *const | config | ||
| ) |
Creates an E2E Profile 4 protect handle from config.
| [out] | protect | A pointer to E2E Profile 4 protect handle. |
| [in] | config | An instance of E2E Profile 4 config. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_protect | ( | E2EStatus *const | e2eStatus, |
| void * | dataPtr, | ||
| const uint16_t | length, | ||
| dwE2EP04ProtectHandle_t const | protect | ||
| ) |
Protects the array/buffer to be transmitted using the E2E profile 4.
This includes checksum calculation, handling of counter.
| [out] | e2eStatus | Result of this function call. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK). |
| [in] | dataPtr | Pointer to Data to be transmitted. |
| [in] | length | Length of the data in bytes. |
| [in] | protect | E2E Profile 4 protect handle. |
@req{GID-AV_REQ-7506545}
| DW_API_PUBLIC dwStatus dwE2EP04Protect_release | ( | dwE2EP04ProtectHandle_t const | protect | ) |
Releases a E2E Profile 4 protect handle.
| [in] | protect | E2E Profile 4 protect handle. |
@req{GID-AV_REQ-7506545}