3.15.30 diag_sram_marchc.c File Reference

This file contains APIs to test SRAM using March C algorithm.

Includes

  1. diag_sram_marchc.h
  2. ../../../diag_common/config/diag_config.h

Functions

Table 3-72. diag_sram_status_tMarchC_Global (void)
Parameters
void
Returns
diag_sram_status_t SRAM_OK - Success, SRAM_GLOBAL_ERROR - Failure
Table 3-73. diag_sram_status_tDIAG_SRAM_MarchC (uint16_t startAddress, uint8_t length, uint16_t bufferAddress)
Parameters

[in] startAddress

uint16_t

- pointer to an array declared in user memory for test

[in] length

uint8_t

- number of bytes to test

[in] bufferAddress

uint16_t

- pointer to location in memory where array will be stored during test

Returns
diag_sram_status_t SRAM_OK - Success, SRAM_ERROR - Failure, SRAM_GLOBAL_ERROR - Failure at test variables, SRAM_ADDR_ERROR - Invalid address, SRAM_LENGTH_ERROR - Invalid length