tilluhlig / e2e

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status

Attention: This project is work in progress!!!

Description

This is an almost exact Autosar 4.4.0 and Misra 2004 compatible implementation of an E2E-Lib, an E2E-Protection Wrapper and an E2E-State-Machine. The usage is provided for private purposes.

The read and write functions are more generic than expected by the standard.

Profiles

The currently supported profiles are:

  • Profile 11

Tests

TODO

Usage

TODO

struct e2e_config config;

e2e_protectState var1_protectState;
e2e_checkState var1_checkState;
e2e_sm_state var1_smState;
uint8_t data[8];

rte_error_state var1_write(uint8_t *data, uint32_t length)
{
 return RTE_E_OK;
}

rte_error_state var1_read(uint8_t *data, uint32_t *length)
{
 return RTE_E_OK;
}
 
void main(void)
{
	E2E_P11Config(&config, 64, E2E_DATAID_BOTH, 0, 8, 0, 0x129, 2);
	E2E_SMConfig(&config, 5, 3, 3, 3, 1, 1, 1);
	E2EPW_Init(&config, &var1_checkState, &var1_protectState, &var1_smState, &var1_write, &var1_read);
	
	E2EPW_Write(&config, &var1_protectState, data, 8);
}

About


Languages

Language:C 74.1%Language:C++ 25.1%Language:CMake 0.8%