EasyManuals Logo
Home>Renesas>Computer Hardware>RL78 Series

Renesas RL78 Series Application Note

Renesas RL78 Series
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #13 background imageLoading...
Page #13 background image
RL78 Family VDE Certified IEC60730/60335 Self Test Library
R01AN0749EG0201 Rev.2.01 Page 13 of 50
Mar 04, 2014
2.2.2 Software CRC - Software API
The functions in the remainder of this section are used to calculate a CRC value and verify its correctness against a
reference value stored in Flash ROM.
Table 6: Source files: Software CRC
STL File name Header Files
stl_RL78_sw_crc.asm stl.h
Test Harness File Names Header Files
main.c
stl_global_data_example.c
stl_main_example_support function.c
stl_peripheralinit.c
main.h
stl_gobal_data_example.h
Syntax
uint16_t stl_RL78_sw_crc_asm (uint16_t crc, CHECKSUM_CRC_TEST_AREA *p);
Description
This function calculates a CRC value over the address range supplied using the software CRC calculation module.
The start address and calculation range (Length) are passed by the calling function via the structure shown in the
table below. The partial or full calculated result is returned for verification (if required) against the reference CRC
value.
The function “indicate_test_result.c” will be called by the test harness control files (main.c) to process the test result
Note Function “indicate_test_result.c “is located in the module stl_main_example_support function.c
Input Parameters
uint16_t crc
Value for starting the CRC calculation
CHECKSUM_CRC_TEST_AREA *p
Pointer to the structure where the start address and calculation range is located
Output Parameters
NONE
N/A
Return Values
uint16_t
16 bit calculated CRC value (Full or partial result) is returned in
CPU Register AX

Other manuals for Renesas RL78 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78 Series and is the answer not in the manual?

Renesas RL78 Series Specifications

General IconGeneral
BrandRenesas
ModelRL78 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals