NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Autosar E2E Profile 4 Library API

Detailed Description

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 Documentation

◆ dwE2EP04CheckHandle_t

typedef struct dwE2EP04CheckObject* dwE2EP04CheckHandle_t

Handle represents a dwE2EP04Check object.

Definition at line 114 of file E2EP04.h.

◆ dwE2EP04ProtectHandle_t

typedef struct dwE2EP04ProtectObject* dwE2EP04ProtectHandle_t

Handle represents a dwE2EP04Protect object.

Definition at line 111 of file E2EP04.h.

◆ E2EP04Config

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.

Enumeration Type Documentation

◆ E2EDataID

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

Definition at line 42 of file E2EP04.h.

◆ E2EP04CheckStatus

Status of the reception on one single Data in one cycle, protected with E2E Profile 4.

Enumerator
OK 

OK.

The checks of the Data in this cycle were successful (including counter check, which was incremented by 1).

NONEWDATA 

Error.

The Check function has been invoked but no new Data is available since the last call, according to communication medium (e.g. RTE, COM). As a result, no E2E checks of Data have been consequently executed. This may be considered similar to REPEATED.

CHECK_STATUS_ERROR 

Error. Error not related to counters occurred (e.g. wrong crc, wrong length, wrong options, wrong Data ID).

REPEATED 

Error. The checks of the Data in this cycle were successful, with the exception of the repetition.

OKSOMELOST 

OK.

The checks of the Data in this cycle were successful (including counter check, which was incremented within the allowed configured delta).

WRONGSEQUENCE 

Error.

The checks of the Data in this cycle were successful, with the exception of counter jump, which changed more than the allowed delta

Definition at line 84 of file E2EP04.h.

◆ E2EStatus

enum E2EStatus

E2E function return status.

Enumerator
STATUS_OK 
INPUTERR_NULL 
INPUTERR_WRONG 

Definition at line 52 of file E2EP04.h.

Function Documentation

◆ dwE2EP04Check_check()

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.

Parameters
[out]e2eStatusResult of this function call. Error code (E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK).
[in]dataPtrPointer to Data to be transmitted.
[in]lengthLength of the data in bytes.
[in]checkE2E Profile 4 check handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 check handle is NULL.
DW_INVALID_ARGUMENT if e2eStatus parameter is NULL.
DW_INVALID_ARGUMENT if dataPtr parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_configVerify()

DW_API_PUBLIC dwStatus dwE2EP04Check_configVerify ( E2EStatus *const  e2eStatus,
dwE2EP04CheckHandle_t const  check 
)

Verify the config of E2E Profile 4 check handle.

Parameters
[out]e2eStatusVerification result of the config. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK).
[in]checkE2E Profile 4 check handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 check handle is NULL.
DW_INVALID_ARGUMENT if e2eStatus parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_getCheckStatus()

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.

Parameters
[out]e2eCheckStatusLatest check status of E2E Profile 4 check handle.
[in]checkE2E Profile 4 check handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 check handle is NULL.
DW_INVALID_ARGUMENT if e2eCheckStatus parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_getConfig()

DW_API_PUBLIC dwStatus dwE2EP04Check_getConfig ( E2EP04Config const **const  config,
dwE2EP04CheckHandle_t const  check 
)

Get the current config from E2E Profile 4 check handle.

Parameters
[out]configCurrent config of E2E Profile 4 check handle.
[in]checkE2E Profile 4 check handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 check handle is NULL.
DW_INVALID_ARGUMENT if config parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_initialize()

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.

Parameters
[out]checkA pointer to E2E Profile 4 check handle.
[in]dataIDA system-unique identifier of the Data.
[in]maxDeltaCounterMaximum allowed gap between two counter values of two consecutively received valid Data.
[in]offsetE2E Profile 4 header's offset inside the data buffer (in bits)
[in]minDataLengthMinimal allowed data length in bits. The value shall be <= 4096*8 (4kB) and shall be >= E2EP04_MIN_DATA_LENGTH (Header size in bits).
[in]maxDataLengthMaximal allowed data length in bits. The value shall be <= 4096*8 (4kB) and it shall be >= minDataLength.
Returns
DW_INVALID_ARGUMENT if pointer to the E2E Profile 4 check handle is NULL.
DW_SUCCESS if initialization is done without any error.
DW_FAILURE if failed to create a E2E Profile 4 check handle.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_initializeFromConfig()

DW_API_PUBLIC dwStatus dwE2EP04Check_initializeFromConfig ( dwE2EP04CheckHandle_t *const  check,
E2EP04Config const *const  config 
)

Creates a E2E Profile 4 check handle from config.

Parameters
[out]checkA pointer to E2E Profile 4 check handle.
[in]configAn instance of E2E Profile 4 config.
Returns
DW_INVALID_ARGUMENT if pointer to the E2E Profile 4 check handle is NULL.
DW_SUCCESS if initialization is done without any error.
DW_FAILURE if failed to create a E2E Profile 4 check handle.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Check_release()

DW_API_PUBLIC dwStatus dwE2EP04Check_release ( dwE2EP04CheckHandle_t const  check)

Releases a E2E Profile 4 check handle.

Parameters
[in]checkE2E Profile 4 check handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 check handle is NULL.
DW_SUCCESS if E2E Profile 4 check handle is released successfully.
DW_FAILURE if failed to release E2E Profile 4 check handle.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_configVerify()

DW_API_PUBLIC dwStatus dwE2EP04Protect_configVerify ( E2EStatus *const  e2eStatus,
dwE2EP04ProtectHandle_t const  protect 
)

Verify the config of E2E Profile 4 protect handle.

Parameters
[out]e2eStatusVerification result of the config. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK).
[in]protectE2E Profile 4 protect handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 protect handle is NULL.
DW_INVALID_ARGUMENT if e2eStatus parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_getConfig()

DW_API_PUBLIC dwStatus dwE2EP04Protect_getConfig ( E2EP04Config const **const  config,
dwE2EP04ProtectHandle_t const  protect 
)

Get the current config from E2E Profile 4 protect handle.

Parameters
[out]configCurrent config of E2E Profile 4 protect handle.
[in]protectE2E Profile 4 protect handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 protect handle is NULL.
DW_INVALID_ARGUMENT if config parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_initialize()

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.

Parameters
[out]protectA pointer to E2E Profile 4 protect handle.
[in]dataIDA system-unique identifier of the Data.
[in]maxDeltaCounterMaximum allowed gap between two counter values of two consecutively received valid Data.
[in]offsetE2E Profile 4 header's offset inside the data buffer (in bits).
[in]minDataLengthMinimal allowed data length in bits. The value shall be <= 4096*8 (4kB) and shall be >= E2EP04_MIN_DATA_LENGTH (Header size in bits).
[in]maxDataLengthMaximal allowed data length in bits. The value shall be <= 4096*8 (4kB) and it shall be >= minDataLength.
Returns
DW_INVALID_ARGUMENT if pointer to the E2E Profile 4 protect handle is NULL.
DW_SUCCESS if initialization is done without any error.
DW_FAILURE if failed to create a E2E Profile 4 protect handle.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_initializeFromConfig()

DW_API_PUBLIC dwStatus dwE2EP04Protect_initializeFromConfig ( dwE2EP04ProtectHandle_t *const  protect,
E2EP04Config const *const  config 
)

Creates an E2E Profile 4 protect handle from config.

Parameters
[out]protectA pointer to E2E Profile 4 protect handle.
[in]configAn instance of E2E Profile 4 config.
Returns
DW_INVALID_ARGUMENT if pointer to the E2E Profile 4 protect handle is NULL.
DW_INVALID_ARGUMENT if config parameter is NULL.
DW_SUCCESS if initialization is done without any error.
DW_FAILURE if failed to create a E2E Profile 4 protect handle.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_protect()

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.

Parameters
[out]e2eStatusResult of this function call. Error code(E2E_E_INPUTERR_NULL || E2E_E_INPUTERR_WRONG || E2E_E_OK).
[in]dataPtrPointer to Data to be transmitted.
[in]lengthLength of the data in bytes.
[in]protectE2E Profile 4 protect handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 protect handle is NULL.
DW_INVALID_ARGUMENT if e2eStatus parameter is NULL.
DW_INVALID_ARGUMENT if dataPtr parameter is NULL.
DW_SUCCESS if function call is executed without any error.
DW_FAILURE if function call is not completed successfully.

@req{GID-AV_REQ-7506545}

◆ dwE2EP04Protect_release()

DW_API_PUBLIC dwStatus dwE2EP04Protect_release ( dwE2EP04ProtectHandle_t const  protect)

Releases a E2E Profile 4 protect handle.

Parameters
[in]protectE2E Profile 4 protect handle.
Returns
DW_INVALID_ARGUMENT if E2E Profile 4 protect handle is NULL.
DW_SUCCESS if E2E Profile 4 protect handle is released successfully.
DW_FAILURE if failed to release E2E Profile 4 protect handle.

@req{GID-AV_REQ-7506545}