4.15.28 diag_sram_marchb.c File Reference

This file contains the API to test SRAM using March B algorithm.

Includes

  1. diag_sram_marchb.h
  2. stdbool.h
  3. ../../../diag_common/config/diag_config.h

Functions

Table 4-65. diag_sram_status_tMarchB_Global (void)
Parameters
void
Returns
diag_sram_status_t SRAM_OK - Success, SRAM_GLOBAL_ERROR - Failure
Table 4-66. diag_sram_status_tDIAG_SRAM_MarchB (uint16_t startAddress, uint16_t length, uint16_t bufferAddress)
Parameters

[in] startAddress

uint16_t

- pointer to an array declared in user memory for test

[in] length

uint16_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